Class PortletService
- java.lang.Object
-
- fr.paris.lutece.portal.service.portlet.PortletService
-
public final class PortletService extends java.lang.Objectclass PortletService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Portlet>getAuthorizedPortletCollection(java.util.Collection<Portlet> collectionPortlet, AdminUser user)Filter a collection of portlet associated to a given userstatic PortletServicegetInstance()Get the unique instance of the servicebooleanisAuthorized(int idPortlet, AdminUser user)Check if a portlet should be visible to the userbooleanisAuthorized(Portlet portlet, AdminUser user)Check if a portlet should be visible to the user
-
-
-
Method Detail
-
getInstance
public static PortletService getInstance()
Get the unique instance of the service- Returns:
- The unique instance
-
getAuthorizedPortletCollection
public java.util.Collection<Portlet> getAuthorizedPortletCollection(java.util.Collection<Portlet> collectionPortlet, AdminUser user)
Filter a collection of portlet associated to a given user- Parameters:
collectionPortlet- the The collection to filteruser- the current user- Returns:
- a collection of portlet associated to a given user
-
isAuthorized
public boolean isAuthorized(int idPortlet, AdminUser user)Check if a portlet should be visible to the user- Parameters:
idPortlet- the id of the portletuser- the current user- Returns:
- true if authorized, otherwise false
-
-