Interface WorkflowSchemeMigrationTaskAccessor
- All Known Implementing Classes:
DefaultWorkflowSchemeMigrationTaskAccessor
public interface WorkflowSchemeMigrationTaskAccessor
Provides access to worklow scheme migration tasks.
- Since:
- v5.2
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Method Details
-
getActive
Returns the currently active task associated with the given project, or null if there are now such tasks.- 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
@Nullable TaskDescriptor<WorkflowMigrationResult> getActiveByProjects(@Nonnull DraftWorkflowScheme scheme, boolean onlyDraftMigrations) Returns the currently active task that is migrating any of the projects associated with the passed draft scheme.- 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
@Nullable TaskDescriptor<WorkflowMigrationResult> getActiveByProjects(@Nonnull DraftWorkflowScheme scheme, boolean onlyDraftMigrations, boolean onlyNonSafeToDelete) Returns the currently active task that is migrating any of the projects associated with the passed draft scheme.- 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
Returns the currently active task that is migrating the passed scheme.- Parameters:
scheme
- the scheme.- Returns:
- the task performing the migration, or null if there are now such tasks.
-