Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Luigi Candita
Document Media Library: Find on DB role and permission of folder
1 de Março de 2013 00:19
Resposta

Luigi Candita

Ranking: Junior Member

Mensagens: 27

Data de entrada: 4 de Maio de 2009

Mensagens recentes

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 de Março de 2013 01:52
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

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 de Março de 2013 08:42
Resposta

Luigi Candita

Ranking: Junior Member

Mensagens: 27

Data de entrada: 4 de Maio de 2009

Mensagens recentes

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