com.atlassian.jira.projectconfig.workflow
Class DefaultProjectConfigWorkflowDispatcher
java.lang.Object
com.atlassian.jira.projectconfig.workflow.DefaultProjectConfigWorkflowDispatcher
- All Implemented Interfaces:
- ProjectConfigWorkflowDispatcher
public class DefaultProjectConfigWorkflowDispatcher
- extends Object
- implements ProjectConfigWorkflowDispatcher
- Since:
- v5.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProjectConfigWorkflowDispatcher
public DefaultProjectConfigWorkflowDispatcher(WorkflowSchemeService workflowSchemeService,
WorkflowSchemeManager workflowSchemeManager,
ProjectService projectService,
JiraAuthenticationContext authCtx,
PermissionManager permissionManager,
WorkflowService workflowService,
MigrationHelperFactory migrationFactory)
editWorkflow
public ServiceOutcome<Pair<String,Long>> editWorkflow(long projectId)
- Description copied from interface:
ProjectConfigWorkflowDispatcher
- Called when the user tries to edit a workflow associated with the passed project. This method may try and create
a new workflow for that project.
- Specified by:
editWorkflow
in interface ProjectConfigWorkflowDispatcher
- Parameters:
projectId
- the project.
- Returns:
- an outcome with the name of the newly created workflow contained or null if the workflow was not created.
Any errors that occur will returned in the outcome.
editScheme
public ServiceOutcome<ProjectConfigWorkflowDispatcher.EditSchemeResult> editScheme(String projectKey)
- Description copied from interface:
ProjectConfigWorkflowDispatcher
- Creates a draft workflow scheme for the passed project. Will create a new scheme if the project is using the
default workflow scheme.
- Specified by:
editScheme
in interface ProjectConfigWorkflowDispatcher
- Parameters:
projectKey
- the project.
- Returns:
- the draft workflow scheme for the passed project, creating one if necessary.
Copyright © 2002-2014 Atlassian. All Rights Reserved.