|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletAccessManager
This provides access to Portlet
objects
Method Summary | |
---|---|
boolean |
canUserSeePortlet(com.atlassian.crowd.embedded.api.User user,
Portlet portlet)
This returns true if the specified user is allowed to see the passed Portlet |
boolean |
canUserSeePortlet(User user,
Portlet portlet)
This returns true if the specified user is allowed to see the passed Portlet |
boolean |
canUserSeePortlet(com.atlassian.crowd.embedded.api.User user,
String portletKey)
This returns true if the specified user is allowed to see the Portlet represented by the given portletKey |
boolean |
canUserSeePortlet(User user,
String portletKey)
This returns true if the specified user is allowed to see the Portlet represented by the given portletKey |
Collection<Portlet> |
getAllPortlets()
Return all the portlets available on the system. |
Portlet |
getPortlet(String portletKey)
This returns a Portlet based on portletKey |
Portlet |
getPortlet(com.atlassian.crowd.embedded.api.User user,
String portletKey)
Called to return a Portlet that can be seen by the User and which
has the key of portletKey |
Portlet |
getPortlet(User user,
String portletKey)
Called to return a Portlet that can be seen by the User and which
has the key of portletKey |
Collection<Portlet> |
getVisiblePortlets(com.atlassian.crowd.embedded.api.User user)
This returns all Portlet 's that a user can see |
Collection<Portlet> |
getVisiblePortlets(User user)
This returns all Portlet 's that a user can see |
Method Detail |
---|
Portlet getPortlet(com.atlassian.crowd.embedded.api.User user, String portletKey)
Portlet
that can be seen by the User and which
has the key of portletKey
user
- the user context in which to return the PortletportletKey
- the key of the Portlet
Portlet getPortlet(User user, String portletKey)
Portlet
that can be seen by the User and which
has the key of portletKey
user
- the user context in which to return the PortletportletKey
- the key of the Portlet
Portlet getPortlet(String portletKey)
portletKey
- the key of the Portlet
Collection<Portlet> getAllPortlets()
Collection<Portlet> getVisiblePortlets(com.atlassian.crowd.embedded.api.User user)
Portlet
's that a user can see
user
- the User in play
Collection<Portlet> getVisiblePortlets(User user)
Portlet
's that a user can see
user
- the User in play
boolean canUserSeePortlet(com.atlassian.crowd.embedded.api.User user, String portletKey)
user
- the user to test.portletKey
- the key of the Portlet
boolean canUserSeePortlet(User user, String portletKey)
user
- the user to test.portletKey
- the key of the Portlet
boolean canUserSeePortlet(com.atlassian.crowd.embedded.api.User user, Portlet portlet)
user
- the user to test.portlet
- the portlet the check
boolean canUserSeePortlet(User user, Portlet portlet)
user
- the user to test.portlet
- the portlet the check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |