|
||||||||||
| 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,
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. |
| Method Detail |
|---|
com.atlassian.gadgets.Vote voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec,
com.atlassian.crowd.embedded.api.User remoteUser)
pluginGadgetSpec - The gadget spec to check permissions forremoteUser - The user viewing the dashboard. May be null for anonymous users
com.atlassian.gadgets.dashboard.DashboardState filterGadgets(com.atlassian.gadgets.dashboard.DashboardState dashboardState,
com.atlassian.crowd.embedded.api.User remoteUser)
dashboardState - The dashboard state to filterremoteUser - The user viewing the dashboard. May be null for anonymous users
com.atlassian.gadgets.Vote voteOn(String completeGadgetKey,
com.atlassian.crowd.embedded.api.User 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 | |||||||||