com.atlassian.jira.workflow.WorkflowSchemeManager |
Known Indirect Subclasses |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.scheme.SchemeManager
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a builder that can be used to create a new
AssignableWorkflowScheme . | |||||||||||
If the project's workflow scheme is only used by one project and if this scheme has a draft,
then the draft is copied to a separate scheme and deleted.
| |||||||||||
Create the passed draft workflow scheme.
| |||||||||||
Create a draft for the passed workflow scheme.
| |||||||||||
Create a new workflow scheme.
| |||||||||||
Delete the passed workflow scheme.
| |||||||||||
Return a builder that can be used to create a new
DraftWorkflowScheme for the passed workflow scheme. | |||||||||||
Return all the assignable workflow schemes.
| |||||||||||
Return the draft workflow scheme with the given id.
| |||||||||||
Return the draft workflow scheme for the passed workflow scheme.
| |||||||||||
Return the original workflow scheme for the passed draft workflow scheme.
| |||||||||||
Return the list of projects that use the passed workflow scheme.
| |||||||||||
Returns all workflow schemes that the passed workflow is assigned to, not including draft schemes.
| |||||||||||
Returns all workflow schemes that the passed workflow is assigned to, including draft schemes.
| |||||||||||
Returns a map representation of a workflow scheme for a passed project.
| |||||||||||
Get the name of the workflow from the passed scheme associated with the passed issue type.
| |||||||||||
Get the name of the workflow associated with the passed project and issue type.
| |||||||||||
Return the workflow scheme with the passed id.
| |||||||||||
Return the workflow scheme with the passed name.
| |||||||||||
Return the workflow scheme associated with the passed project.
| |||||||||||
Tells the caller if the passed workflow scheme has a draft.
| |||||||||||
Return true if the passed workflow scheme is being used by a project.
| |||||||||||
Tells the caller if the passed project is using the default workflow scheme.
| |||||||||||
Save changes to the passed draft workflow scheme.
| |||||||||||
Updates Workflow Schemes's such that schemes associated to the workflow with name oldWorkflowName will be changed
to newWorkflowName.
| |||||||||||
Save changes to the passed workflow scheme.
| |||||||||||
If the passed workflow scheme is currently being edited, then this method blocks until the editing is finished.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.scheme.SchemeManager
|
GenericEntityException |
---|
Return a builder that can be used to create a new AssignableWorkflowScheme
.
If the project's workflow scheme is only used by one project and if this scheme has a draft, then the draft is copied to a separate scheme and deleted.
project | project who's workflow scheme draft is to be copied to a separate scheme. |
---|---|
user | the user making the changes. |
Create the passed draft workflow scheme. A draft can be created using the draftBuilder(AssignableWorkflowScheme)
method.
creator | the user that is going to create the draft. This user is recorded as the person who last modified the new draftscheme. |
---|---|
workflowScheme | the workflow scheme to create. |
Create a draft for the passed workflow scheme. It is illegal to pass:
creator | the user that is going to create the draft. This user is recorded as the person who last modified the new draftscheme. |
---|---|
workflowScheme | the workflow scheme to create a draft of. It cannot be a draft, the default scheme, a scheme that already has a draft or a scheme that is not already in the database (i.e. does not have an ID). |
Create a new workflow scheme.
workflowScheme | the workflow scheme to create a draft of. It cannot be a draft, the default scheme, a scheme that already has a draft or a scheme that is not already in the database (i.e. does not have an ID). |
---|
Delete the passed workflow scheme. It is illegal to delete an active scheme, the default scheme or a scheme that is not already in the database.
scheme | the scheme to delete. Cannot be the default scheme, active scheme or a scheme that is not already in the database. |
---|
Return a builder that can be used to create a new DraftWorkflowScheme
for the passed workflow scheme.
GenericEntityException | |
---|---|
WorkflowException |
Return all the assignable workflow schemes.
GenericEntityException |
---|
Return the draft workflow scheme with the given id.
id | the id of the draft workflow scheme to be returned |
---|
Return the draft workflow scheme for the passed workflow scheme.
workflowScheme | the workflow scheme whose draft is being sought. |
---|
Return the original workflow scheme for the passed draft workflow scheme.
draftSchemeId | the id of the draft workflow scheme whose parent is being sought. |
---|
Return the list of projects that use the passed workflow scheme.
workflowScheme | the workflow scheme to check. |
---|
Returns all workflow schemes that the passed workflow is assigned to, not including draft schemes.
workflow | the workflow whose schemes must be returned |
---|
Returns all workflow schemes that the passed workflow is assigned to, including draft schemes.
workflow | the workflow whose schemes must be returned |
---|
Returns a map representation of a workflow scheme for a passed project. The returned map stores {issuetype -> workflowName}. A null issuetype points out the default workflow for the scheme.
project | the project whose scheme should be returned. |
---|
Get the name of the workflow from the passed scheme associated with the passed issue type.
scheme | the scheme to search. |
---|---|
issueType | the issue type used in the search. |
Get the name of the workflow associated with the passed project and issue type.
project | the project used in the search. |
---|---|
issueType | the issue type used in the search. |
GenericEntityException |
---|
Return the workflow scheme with the passed id.
id | the id to search. |
---|
Return the workflow scheme with the passed name.
name | the name to search. |
---|
Return the workflow scheme associated with the passed project.
project | the project whose scheme is to be returned. |
---|
Tells the caller if the passed workflow scheme has a draft.
workflowScheme | the workflow scheme to check. It is illegal to pass a draft workflow scheme to this method. |
---|
Return true if the passed workflow scheme is being used by a project.
workflowScheme | the workflow scheme to test. |
---|
Tells the caller if the passed project is using the default workflow scheme.
project | the project to check. |
---|
Save changes to the passed draft workflow scheme.
user | the user making the changes. |
---|---|
scheme | the draft scheme to change. |
Updates Workflow Schemes's such that schemes associated to the workflow with name oldWorkflowName will be changed to newWorkflowName.
Note: There is no validation performed by this method to determine if the provided oldWorkflowName or newWorkflowName are valid workflow names or if the workflow is active/inactive. These validations must be done by the caller.oldWorkflowName | name of the workflow to re-assign all its associated schemes from |
---|---|
newWorkflowName | name of the workflow to assign all the schemes associated to targetWorkflow |
Save changes to the passed workflow scheme.
scheme | the scheme to change. |
---|
If the passed workflow scheme is currently being edited, then this method blocks until the editing is finished. Executes the passed Callable task in the end and returns its result. Workflow scheme editing will be blocked until the task execution finishes.
scheme | the workflow scheme. |
---|---|
task | task to execute. |
Exception | any exception occurred during task execution. |
---|