public interface GadgetPermissionManager
Modifier and Type | Method and Description |
---|---|
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.
|
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 userscom.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 userscom.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.Copyright © 2002-2017 Atlassian. All Rights Reserved.