Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Luigi Candita
Document Media Library: Find on DB role and permission of folder
1 marzo 2013 0.19
Risposta

Luigi Candita

Punteggio: Junior Member

Messaggi: 27

Data di Iscrizione: 4 maggio 2009

Messaggi recenti

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
1 marzo 2013 1.52
Risposta

Subhash Pavuskar

Punteggio: Regular Member

Messaggi: 234

Data di Iscrizione: 12 marzo 2012

Messaggi recenti

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
15 marzo 2013 8.42
Risposta

Luigi Candita

Punteggio: Junior Member

Messaggi: 27

Data di Iscrizione: 4 maggio 2009

Messaggi recenti

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