public final class PortletService extends Object
Modifier and Type | Method and Description |
---|---|
Collection<Portlet> |
getAuthorizedPortletCollection(Collection<Portlet> collectionPortlet,
AdminUser user)
Filter a collection of portlet associated to a given user
|
static PortletService |
getInstance()
Get the unique instance of the service
|
boolean |
isAuthorized(int idPortlet,
AdminUser user)
Check if a portlet should be visible to the user
|
boolean |
isAuthorized(Portlet portlet,
AdminUser user)
Check if a portlet should be visible to the user
|
public static PortletService getInstance()
public Collection<Portlet> getAuthorizedPortletCollection(Collection<Portlet> collectionPortlet, AdminUser user)
collectionPortlet
- the The collection to filteruser
- the current userpublic boolean isAuthorized(int idPortlet, AdminUser user)
idPortlet
- the id of the portletuser
- the current userCopyright © 2020 City of Paris. All rights reserved.