java.lang.Object |
↳ |
com.atlassian.jira.config.managedconfiguration.DefaultManagedConfigurationItemService |
Public Constructors
Public Methods
public
boolean
doesUserHavePermission
(User user, ConfigurationItemAccessLevel configurationItemAccessLevel)
Parameters
user
| the user |
configurationItemAccessLevel
| the level |
Parameters
user
| the user |
item
| the item |
Retrieves all of the ManagedConfigurationItem
s of the specified type which are currently "available"
(meaning their owner is currently available).
Parameters
type
| the type to retrieve |
Given the CustomField
, attempt to retrieve the ManagedConfigurationItem
that describes it. If it
does not exist, a default implementation will be returned.
If the manager of this item is no longer available (e.g. if a plugin manages a JIRA custom field and the plugin
is disabled) then the item can not be considered managed.
Parameters
customField
| the custom field |
Returns
- the item's representation
Given the JiraWorkflow
, attempt to retrieve the ManagedConfigurationItem
that describes it. If it
does not exist, a default implementation will be returned.
If the manager of this item is no longer available (e.g. if a plugin manages a workflow and the plugin
is disabled) then the item can not be considered managed.
Returns
- the item's representation
Given the workflow scheme ID, attempt to retrieve the ManagedConfigurationItem
that describes it. If it
does not exist, a default implementation will be returned.
If the manager of this item is no longer available (e.g. if a plugin manages a workflow scheme and the plugin
is disabled) then the item can not be considered managed.
Parameters
schemeId
| the workflow scheme ID |
Returns
- the item's representation
Given the WorkflowScheme
, attempt to retrieve the ManagedConfigurationItem
that describes it. If it
does not exist, a default implementation will be returned.
If the manager of this item is no longer available (e.g. if a plugin manages a workflow scheme and the plugin
is disabled) then the item can not be considered managed.
Parameters
workflowScheme
| the workflow scheme |
Returns
- the item's representation
Remove the registration of this ManagedConfigurationItem
. If the item was not previously managed, an
error will be returned.
Parameters
item
| the item to stop managing |
Returns
- the result; errors if saving the item failed
Update the registration of this ManagedConfigurationItem
. If the item was not previously managed, it
will now be managed.
Returns
- the result; errors if saving the item failed