@ExperimentalApi
public interface WorkflowSchemeService
Modifier and Type | Method and Description |
---|---|
AssignableWorkflowScheme.Builder |
assignableBuilder()
Return a builder that can be used to create a
AssignableWorkflowScheme . |
ServiceOutcome<DraftWorkflowScheme> |
createDraft(ApplicationUser creator,
DraftWorkflowScheme draftWorkflowScheme)
Create a draft workflow scheme.
|
ServiceOutcome<DraftWorkflowScheme> |
createDraft(ApplicationUser creator,
long parentId)
Create a draft for the passed workflow scheme.
|
ServiceOutcome<AssignableWorkflowScheme> |
createScheme(ApplicationUser creator,
AssignableWorkflowScheme scheme)
Create a new workflow scheme.
|
ServiceOutcome<Void> |
deleteWorkflowScheme(ApplicationUser user,
WorkflowScheme scheme)
Delete the passed workflow scheme.
|
DraftWorkflowScheme.Builder |
draftBuilder(AssignableWorkflowScheme parent)
Return a builder that can be used to create a
DraftWorkflowScheme for the passed workflow scheme. |
ServiceOutcome<DraftWorkflowScheme> |
getDraftWorkflowScheme(ApplicationUser user,
AssignableWorkflowScheme parentScheme)
Return draft of the passed workflow scheme if it actually exists.
|
ServiceOutcome<DraftWorkflowScheme> |
getDraftWorkflowSchemeNotNull(ApplicationUser user,
AssignableWorkflowScheme parentScheme)
Return draft of the passed workflow scheme if it actually exists.
|
ServiceOutcome<AssignableWorkflowScheme> |
getSchemeForProject(ApplicationUser user,
Project project)
Return the workflow scheme associated with passed project.
|
int |
getUsageCount(AssignableWorkflowScheme assignableWorkflowScheme)
Return the number of projects that use the passed scheme.
|
ServiceOutcome<AssignableWorkflowScheme> |
getWorkflowScheme(ApplicationUser user,
long id)
Return the workflow scheme for the passed id.
|
boolean |
isActive(WorkflowScheme workflowScheme)
Is the passed workflow scheme being used by a project in JIRA.
|
boolean |
isUsingDefaultScheme(Project project)
Tells the caller if the passed project is using the default workflow scheme.
|
ServiceOutcome<AssignableWorkflowScheme> |
updateWorkflowScheme(ApplicationUser user,
AssignableWorkflowScheme scheme)
Save changes to the passed workflow scheme.
|
ServiceOutcome<DraftWorkflowScheme> |
updateWorkflowScheme(ApplicationUser user,
DraftWorkflowScheme scheme)
Save changes to the passed workflow scheme.
|
ServiceOutcome<Void> |
validateUpdateWorkflowScheme(ApplicationUser user,
AssignableWorkflowScheme scheme)
Validate that the passed scheme can be saved.
|
AssignableWorkflowScheme.Builder assignableBuilder()
AssignableWorkflowScheme
. The actual scheme will not
be created in JIRA until the createScheme(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.workflow.AssignableWorkflowScheme)
method is called.AssignableWorkflowScheme
.DraftWorkflowScheme.Builder draftBuilder(AssignableWorkflowScheme parent)
DraftWorkflowScheme
for the passed workflow scheme.
The actual scheme will not be created in JIRA until the createDraft(com.atlassian.jira.user.ApplicationUser, DraftWorkflowScheme)
method is called.DraftWorkflowScheme
.@Nonnull ServiceOutcome<AssignableWorkflowScheme> createScheme(ApplicationUser creator, @Nonnull AssignableWorkflowScheme scheme)
creator
- the user creating the scheme.scheme
- the scheme to create.ServiceOutcome<DraftWorkflowScheme> createDraft(ApplicationUser creator, long parentId)
To create a draft scheme the parent must be:
creator
- the user creating the draft.parentId
- the workflow scheme to create a draft for.ServiceOutcome<DraftWorkflowScheme> createDraft(ApplicationUser creator, DraftWorkflowScheme draftWorkflowScheme)
draftBuilder(com.atlassian.jira.workflow.AssignableWorkflowScheme)
method.
To create a draft scheme the parent must be:
creator
- the user creating the draft.draftWorkflowScheme
- the draft to create.ServiceOutcome<AssignableWorkflowScheme> getWorkflowScheme(ApplicationUser user, long id)
user
- the user searching for the scheme.id
- the id of the workflow scheme to find.ServiceOutcome<DraftWorkflowScheme> getDraftWorkflowScheme(ApplicationUser user, @Nonnull AssignableWorkflowScheme parentScheme)
user
- the user making the request.parentScheme
- the workflow scheme whose draft we are searching for.ServiceOutcome<DraftWorkflowScheme> getDraftWorkflowSchemeNotNull(ApplicationUser user, @Nonnull AssignableWorkflowScheme parentScheme)
user
- the user making the request.parentScheme
- the workflow scheme whose draft we are searching for.ServiceOutcome<Void> deleteWorkflowScheme(ApplicationUser user, @Nonnull WorkflowScheme scheme)
user
- the user deleting the scheme.scheme
- the scheme.boolean isActive(WorkflowScheme workflowScheme)
workflowScheme
- the workflow scheme to test.ServiceOutcome<AssignableWorkflowScheme> getSchemeForProject(ApplicationUser user, @Nonnull Project project)
project
- the project.ServiceOutcome<AssignableWorkflowScheme> updateWorkflowScheme(ApplicationUser user, @Nonnull AssignableWorkflowScheme scheme)
user
- the user making the changes.scheme
- the scheme to change.ServiceOutcome<Void> validateUpdateWorkflowScheme(ApplicationUser user, @Nonnull AssignableWorkflowScheme scheme)
user
- the user making the changes.scheme
- the scheme to change.ServiceOutcome<DraftWorkflowScheme> updateWorkflowScheme(ApplicationUser user, @Nonnull DraftWorkflowScheme scheme)
user
- the user making the changes.scheme
- the scheme to change.int getUsageCount(@Nonnull AssignableWorkflowScheme assignableWorkflowScheme)
assignableWorkflowScheme
- the scheme to check.Copyright © 2002-2019 Atlassian. All Rights Reserved.