Class DefaultWorkflowSchemeMigrationTaskAccessor
java.lang.Object
com.atlassian.jira.workflow.migration.DefaultWorkflowSchemeMigrationTaskAccessor
- All Implemented Interfaces:
WorkflowSchemeMigrationTaskAccessor
public class DefaultWorkflowSchemeMigrationTaskAccessor
extends Object
implements WorkflowSchemeMigrationTaskAccessor
- Since:
- v5.2
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkflowSchemeMigrationTaskAccessor(TaskManager taskManager, WorkflowSchemeManager manager) -
Method Summary
Modifier and TypeMethodDescriptionfindSchemeMigrationTask(com.atlassian.jira.workflow.migration.DefaultWorkflowSchemeMigrationTaskAccessor.AbstractSchemeMigrationTaskMatcher taskMatcher) Returns the currently active task associated with the given project, or null if there are now such tasks.getActive(WorkflowScheme scheme) Returns the currently active task that is migrating the passed scheme.getActiveByProjects(DraftWorkflowScheme scheme, boolean onlyDraftMigrations) Returns the currently active task that is migrating any of the projects associated with the passed draft scheme.getActiveByProjects(DraftWorkflowScheme scheme, boolean onlyDraftMigrations, boolean onlyNonSafeToDelete) Returns the currently active task that is migrating any of the projects associated with the passed draft scheme.
-
Constructor Details
-
DefaultWorkflowSchemeMigrationTaskAccessor
public DefaultWorkflowSchemeMigrationTaskAccessor(TaskManager taskManager, WorkflowSchemeManager manager)
-
-
Method Details
-
getActive
Description copied from interface:WorkflowSchemeMigrationTaskAccessorReturns the currently active task associated with the given project, or null if there are now such tasks.- Specified by:
getActivein interfaceWorkflowSchemeMigrationTaskAccessor- Parameters:
project- project who's tasks will be sought- Returns:
- currently active task associated with the given project, or null if there are now such tasks.
-
getActiveByProjects
public TaskDescriptor<WorkflowMigrationResult> getActiveByProjects(@Nonnull DraftWorkflowScheme scheme, boolean onlyDraftMigrations) Description copied from interface:WorkflowSchemeMigrationTaskAccessorReturns the currently active task that is migrating any of the projects associated with the passed draft scheme.- Specified by:
getActiveByProjectsin interfaceWorkflowSchemeMigrationTaskAccessor- Parameters:
scheme- the scheme.onlyDraftMigrations- if true, then only draft migration will be considered.- Returns:
- the task performing the migration, or null if there are now such tasks.
-
getActiveByProjects
public TaskDescriptor<WorkflowMigrationResult> getActiveByProjects(@Nonnull DraftWorkflowScheme scheme, boolean onlyDraftMigrations, boolean onlyNonSafeToDelete) Description copied from interface:WorkflowSchemeMigrationTaskAccessorReturns the currently active task that is migrating any of the projects associated with the passed draft scheme.- Specified by:
getActiveByProjectsin interfaceWorkflowSchemeMigrationTaskAccessor- Parameters:
scheme- the scheme.onlyDraftMigrations- if true, then only draft migration will be considered.onlyNonSafeToDelete- if true, then only migrations which are not marked as safe for deletion will be considered (see com.atlassian.jira.workflow.migration.EnterpriseWorkflowTaskContext#isSafeToDelete).- Returns:
- the task performing the migration, or null if there are now such tasks.
-
getActive
Description copied from interface:WorkflowSchemeMigrationTaskAccessorReturns the currently active task that is migrating the passed scheme.- Specified by:
getActivein interfaceWorkflowSchemeMigrationTaskAccessor- Parameters:
scheme- the scheme.- Returns:
- the task performing the migration, or null if there are now such tasks.
-
findSchemeMigrationTask
public TaskDescriptor<WorkflowMigrationResult> findSchemeMigrationTask(com.atlassian.jira.workflow.migration.DefaultWorkflowSchemeMigrationTaskAccessor.AbstractSchemeMigrationTaskMatcher taskMatcher)
-