Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nivas Kulukuri
UserGroup and Organization
November 19, 2012 10:47 PM
Answer

Nivas Kulukuri

Rank: New Member

Posts: 13

Join Date: October 14, 2012

Recent Posts

Hi,

I have a journal article and a document . I want to add a view permissions to both journal article and document to a organization and usergroup.I want it programatically using LIFERAY API.

Can anybody come with the solution??
Juhi Kumari
RE: UserGroup and Organization
November 20, 2012 4:54 AM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi Nivas,

Try this one.

1ResourcePermissionLocalServiceUtil.setResourcePermissions(companyid, "com.liferay.portlet.documentlibrary.model.DLFolder", ResourceConstants.SCOPE_GROUP, ""+folder.getFolderId(), team.getTeamId(), new String[]
2{ActionKeys.VIEW} );



Regards
Juhi