|
||||||||||
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 | |
---|---|
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.fugue.Option<com.atlassian.gadgets.plugins.PluginGadgetSpec> |
getPluginGadgetSpec(URI gadgetUri)
Retrieve the equivalent of PluginGadgetSpec object from gadgetUri . |
com.atlassian.gadgets.Vote |
voteOn(com.atlassian.gadgets.plugins.PluginGadgetSpec pluginGadgetSpec,
ApplicationUser 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, ApplicationUser 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, ApplicationUser remoteUser)
dashboardState
- The dashboard state to filterremoteUser
- The user viewing the dashboard. May be null for anonymous users
com.atlassian.fugue.Option<com.atlassian.gadgets.plugins.PluginGadgetSpec> getPluginGadgetSpec(URI gadgetUri)
PluginGadgetSpec
object from gadgetUri
.
gadgetUri
- The url to be used to retrieve the PluginGadgetSpec
object.
PluginGadgetSpec
if it exists, otherwise nothing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |