Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Luigi Candita
Document Media Library: Find on DB role and permission of folder
March 1, 2013 12:19 AM
Answer

Luigi Candita

Rank: Junior Member

Posts: 27

Join Date: May 4, 2009

Recent Posts

Hi

I uploaded by code, many documents in DL. By the code I've applied logic to set specific role and permission. Now I need a fast way (query on Demoticon to find which role and permission are on my DLFolders.

How can do it?

Thanks!
Subhash Pavuskar
RE: Document Media Library: Find on DB role and permission of folder
March 1, 2013 1:52 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

Hi Luigi Candita,

Try this in your jsp file add the below code to check the permission of signed in user to display folders

 1
 2boolean showfolder = DLFolderPermission.contains(permissionChecker, curFolder, ActionKeys.VIEW);
 3
 4if(showfolder == true)
 5{
 6    * then display the folder */
 7    <a href="<%= folderURL %>"><%= curFolder.getName() %></a>
 8    ---------------------------------------
 9    ---------------------------------------
10}


Pls have a look Click Here
Luigi Candita
RE: Document Media Library: Find on DB role and permission of folder
March 15, 2013 8:42 AM
Answer

Luigi Candita

Rank: Junior Member

Posts: 27

Join Date: May 4, 2009

Recent Posts

Subhash Pavuskar:
Hi Luigi Candita,

Try this in your jsp file add the below code to check the permission of signed in user to display folders

 1
 2boolean showfolder = DLFolderPermission.contains(permissionChecker, curFolder, ActionKeys.VIEW);
 3
 4if(showfolder == true)
 5{
 6    * then display the folder */
 7    <a href="<%= folderURL %>"><%= curFolder.getName() %></a>
 8    ---------------------------------------
 9    ---------------------------------------
10}


Pls have a look Click Here


I think that is no good for me.. this is an old version... I have 6.0.1