java.lang.Object | |
↳ | com.atlassian.jira.dashboard.permission.JiraGadgetPermissionManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes any gadgets a user doesn't have permission to see in the passed in dashboard state.
| |||||||||||
Retrieve the equivalent of
PluginGadgetSpec object from gadgetUri . | |||||||||||
Decides if a user has permission to view a particular gadget.
|
[Expand]
Inherited Methods | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||||
From interface
com.atlassian.jira.dashboard.permission.GadgetPermissionManager
|
Removes any gadgets a user doesn't have permission to see in the passed in dashboard state. This will only be done for dashboards where the user has read only permission. If the user has write permission, the gadget will be left in place, and the dashboard plugin will render a place holder with an appropriate error message. The user can the remove the gadget him/herself.
dashboardState | The dashboard state to filter |
---|---|
remoteUser | The user viewing the dashboard. May be null for anonymous users |
Retrieve the equivalent of PluginGadgetSpec
object from gadgetUri
.
gadgetUri | The url to be used to retrieve the PluginGadgetSpec object. |
---|
PluginGadgetSpec
if it exists, otherwise nothing.
Decides if a user has permission to view a particular gadget.
pluginGadgetSpec | The gadget spec to check permissions for |
---|---|
remoteUser | The user viewing the dashboard. May be null for anonymous users |