Fórumok

Nyitólap » Liferay Portal » English » 3. Development

Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
toggle
Luigi Candita
Document Media Library: Find on DB role and permission of folder
2013. március 1. 0:19
Válasz

Luigi Candita

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2009. május 4.

Legújabb hozzászólások

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
2013. március 1. 1:52
Válasz

Subhash Pavuskar

Rangsorolás: Regular Member

Hozzászólások: 184

Csatlakozás dátuma: 2012. március 12.

Legújabb hozzászólások

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
2013. március 15. 8:42
Válasz

Luigi Candita

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2009. május 4.

Legújabb hozzászólások

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