|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.dashboard.permission.JiraGadgetPermissionManager
public class JiraGadgetPermissionManager
Constructor Summary | |
---|---|
JiraGadgetPermissionManager(PermissionManager permissionManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.gadgets.dashboard.spi.DashboardPermissionService permissionService)
|
Method Summary | |
---|---|
String |
extractModuleKey(String gadgetUri)
Used to extract/convert a url to a plugin key. |
com.atlassian.gadgets.dashboard.DashboardState |
filterGadgets(com.atlassian.gadgets.dashboard.DashboardState dashboardState,
com.atlassian.crowd.embedded.api.User remoteUser)
Removes any gadgets a user doesn't have permission to see in the passed in dashboard state. |
com.atlassian.gadgets.Vote |
voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec,
com.atlassian.crowd.embedded.api.User remoteUser)
Decides if a user has permission to view a particular gadget. |
com.atlassian.gadgets.Vote |
voteOn(String completeGadgetKey,
com.atlassian.crowd.embedded.api.User remoteUser)
Decides if a user has permission to view a particular gadget. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraGadgetPermissionManager(PermissionManager permissionManager, com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.gadgets.dashboard.spi.DashboardPermissionService permissionService)
Method Detail |
---|
public com.atlassian.gadgets.Vote voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec, com.atlassian.crowd.embedded.api.User remoteUser)
GadgetPermissionManager
voteOn
in interface GadgetPermissionManager
pluginGadgetSpec
- The gadget spec to check permissions forremoteUser
- The user viewing the dashboard. May be null for anonymous users
public com.atlassian.gadgets.dashboard.DashboardState filterGadgets(com.atlassian.gadgets.dashboard.DashboardState dashboardState, com.atlassian.crowd.embedded.api.User remoteUser)
GadgetPermissionManager
filterGadgets
in interface GadgetPermissionManager
dashboardState
- The dashboard state to filterremoteUser
- The user viewing the dashboard. May be null for anonymous users
public String extractModuleKey(String gadgetUri)
GadgetPermissionManager
extractModuleKey
in interface GadgetPermissionManager
gadgetUri
- The url to convert
public com.atlassian.gadgets.Vote voteOn(String completeGadgetKey, com.atlassian.crowd.embedded.api.User remoteUser)
GadgetPermissionManager
voteOn
in interface GadgetPermissionManager
completeGadgetKey
- The plugin key to check permissions forremoteUser
- The user viewing the dashboard. May be null for anonymous users
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |