com.atlassian.jira.workflow.migration
Class DefaultWorkflowSchemeMigrationTaskAccessor

java.lang.Object
  extended by com.atlassian.jira.workflow.migration.DefaultWorkflowSchemeMigrationTaskAccessor
All Implemented Interfaces:
WorkflowSchemeMigrationTaskAccessor

public class DefaultWorkflowSchemeMigrationTaskAccessor
extends Object
implements WorkflowSchemeMigrationTaskAccessor

Since:
v5.2

Constructor Summary
DefaultWorkflowSchemeMigrationTaskAccessor(TaskManager taskManager, WorkflowSchemeManager manager)
           
 
Method Summary
 TaskDescriptor<WorkflowMigrationResult> findSchemeMigrationTask(com.atlassian.jira.workflow.migration.DefaultWorkflowSchemeMigrationTaskAccessor.AbstractSchemeMigrationTaskMatcher taskMatcher)
           
 TaskDescriptor<WorkflowMigrationResult> getActive(Project project)
          Returns the currently active task associated with the given project, or null if there are now such tasks.
 TaskDescriptor<WorkflowMigrationResult> getActive(WorkflowScheme scheme)
          Returns the currently active task that is migrating the passed scheme.
 TaskDescriptor<WorkflowMigrationResult> getActiveByProjects(DraftWorkflowScheme scheme, boolean onlyDraftMigrations)
          Returns the currently active task that is migrating any of the projects associated with the passed draft scheme.
 TaskDescriptor<WorkflowMigrationResult> 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWorkflowSchemeMigrationTaskAccessor

public DefaultWorkflowSchemeMigrationTaskAccessor(TaskManager taskManager,
                                                  WorkflowSchemeManager manager)
Method Detail

getActive

public TaskDescriptor<WorkflowMigrationResult> getActive(@Nonnull
                                                         Project project)
Description copied from interface: WorkflowSchemeMigrationTaskAccessor
Returns the currently active task associated with the given project, or null if there are now such tasks.

Specified by:
getActive in interface WorkflowSchemeMigrationTaskAccessor
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: WorkflowSchemeMigrationTaskAccessor
Returns the currently active task that is migrating any of the projects associated with the passed draft scheme.

Specified by:
getActiveByProjects in interface WorkflowSchemeMigrationTaskAccessor
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: WorkflowSchemeMigrationTaskAccessor
Returns the currently active task that is migrating any of the projects associated with the passed draft scheme.

Specified by:
getActiveByProjects in interface WorkflowSchemeMigrationTaskAccessor
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

public TaskDescriptor<WorkflowMigrationResult> getActive(@Nonnull
                                                         WorkflowScheme scheme)
Description copied from interface: WorkflowSchemeMigrationTaskAccessor
Returns the currently active task that is migrating the passed scheme.

Specified by:
getActive in interface WorkflowSchemeMigrationTaskAccessor
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)


Copyright © 2002-2013 Atlassian. All Rights Reserved.