|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GadgetPermissionManager
Permission Manager to decide if a gadget should be shown to a user or not. Also responsible for filtering out gadgets from a dashboardState that shouldn't be shown.
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,
ApplicationUser remoteUser)
Removes any gadgets a user doesn't have permission to see in the passed in dashboard state. |
com.atlassian.gadgets.dashboard.DashboardState |
filterGadgets(com.atlassian.gadgets.dashboard.DashboardState dashboardState,
com.atlassian.crowd.embedded.api.User remoteUser)
Deprecated. since 6.1 use filterGadgets(com.atlassian.gadgets.dashboard.DashboardState, com.atlassian.jira.user.ApplicationUser) instead |
com.atlassian.gadgets.Vote |
voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec,
ApplicationUser remoteUser)
Decides if a user has permission to view a particular gadget. |
com.atlassian.gadgets.Vote |
voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec,
com.atlassian.crowd.embedded.api.User remoteUser)
Deprecated. since 6.1 use voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec, com.atlassian.jira.user.ApplicationUser) instead |
com.atlassian.gadgets.Vote |
voteOn(String completeGadgetKey,
ApplicationUser 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)
Deprecated. since 6.1 use voteOn(String, com.atlassian.jira.user.ApplicationUser) instead |
Method Detail |
---|
com.atlassian.gadgets.Vote voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec, ApplicationUser remoteUser)
pluginGadgetSpec
- The gadget spec to check permissions forremoteUser
- The user viewing the dashboard. May be null for anonymous users
@Deprecated com.atlassian.gadgets.Vote voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec, com.atlassian.crowd.embedded.api.User remoteUser)
voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec, com.atlassian.jira.user.ApplicationUser)
instead
pluginGadgetSpec
- The gadget spec to check permissions forremoteUser
- The user viewing the dashboard. May be null for anonymous users
@Deprecated com.atlassian.gadgets.dashboard.DashboardState filterGadgets(com.atlassian.gadgets.dashboard.DashboardState dashboardState, com.atlassian.crowd.embedded.api.User remoteUser)
filterGadgets(com.atlassian.gadgets.dashboard.DashboardState, com.atlassian.jira.user.ApplicationUser)
instead
dashboardState
- The dashboard state to filterremoteUser
- The user viewing the dashboard. May be null for anonymous users
com.atlassian.gadgets.dashboard.DashboardState filterGadgets(com.atlassian.gadgets.dashboard.DashboardState dashboardState, ApplicationUser remoteUser)
dashboardState
- The dashboard state to filterremoteUser
- The user viewing the dashboard. May be null for anonymous users
@Deprecated com.atlassian.gadgets.Vote voteOn(String completeGadgetKey, com.atlassian.crowd.embedded.api.User remoteUser)
voteOn(String, com.atlassian.jira.user.ApplicationUser)
instead
completeGadgetKey
- The plugin key to check permissions forremoteUser
- The user viewing the dashboard. May be null for anonymous users
com.atlassian.gadgets.Vote voteOn(String completeGadgetKey, ApplicationUser remoteUser)
completeGadgetKey
- The plugin key to check permissions forremoteUser
- The user viewing the dashboard. May be null for anonymous users
String extractModuleKey(String gadgetUri)
gadgetUri
- The url to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |