Class PortletService
java.lang.Object
fr.paris.lutece.portal.service.portlet.PortletService
class PortletService
-
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizedPortletCollection(Collection<Portlet> collectionPortlet, AdminUser user) Filter a collection of portlet associated to a given userstatic PortletServiceGet 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 Details
-
getInstance
Get the unique instance of the service- Returns:
- The unique instance
-
getAuthorizedPortletCollection
public Collection<Portlet> getAuthorizedPortletCollection(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
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
-
isAuthorized
Check if a portlet should be visible to the user- Parameters:
portlet- the portletuser- the current user- Returns:
- true if authorized, otherwise false
-