|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.portal.DefaultPortletAccessManager
public class DefaultPortletAccessManager
An implementation of PortletAccessManager
Constructor Summary | |
---|---|
DefaultPortletAccessManager(PermissionManager permissionManager,
com.atlassian.plugin.PluginAccessor pluginAccessor)
|
Method Summary | |
---|---|
boolean |
canUserSeePortlet(com.opensymphony.user.User user,
Portlet portlet)
This returns true if the specified user is allowed to see the passed Portlet |
boolean |
canUserSeePortlet(com.opensymphony.user.User user,
java.lang.String portletKey)
This returns true if the specified user is allowed to see the Portlet represented by the given portletKey |
java.util.Collection<Portlet> |
getAllPortlets()
Return all the portlets available on the system. |
Portlet |
getPortlet(java.lang.String portletKey)
This returns a Portlet based on portletKey |
Portlet |
getPortlet(com.opensymphony.user.User user,
java.lang.String portletKey)
Called to return a Portlet that can be seen by the User and which
has the key of portletKey |
java.util.Collection<Portlet> |
getVisiblePortlets(com.opensymphony.user.User user)
This returns all Portlet 's that a user can see |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPortletAccessManager(PermissionManager permissionManager, com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail |
---|
public Portlet getPortlet(com.opensymphony.user.User user, java.lang.String portletKey)
PortletAccessManager
Portlet
that can be seen by the User and which
has the key of portletKey
getPortlet
in interface PortletAccessManager
user
- the user context in which to return the PortletportletKey
- the key of the Portlet
public Portlet getPortlet(java.lang.String portletKey)
PortletAccessManager
getPortlet
in interface PortletAccessManager
portletKey
- the key of the Portlet
public java.util.Collection<Portlet> getAllPortlets()
PortletAccessManager
getAllPortlets
in interface PortletAccessManager
public java.util.Collection<Portlet> getVisiblePortlets(com.opensymphony.user.User user)
PortletAccessManager
Portlet
's that a user can see
getVisiblePortlets
in interface PortletAccessManager
user
- the User in play
public boolean canUserSeePortlet(com.opensymphony.user.User user, java.lang.String portletKey)
PortletAccessManager
canUserSeePortlet
in interface PortletAccessManager
user
- the user to test.portletKey
- the key of the Portlet
public boolean canUserSeePortlet(com.opensymphony.user.User user, Portlet portlet)
PortletAccessManager
canUserSeePortlet
in interface PortletAccessManager
user
- the user to test.portlet
- the portlet the check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |