public abstract class AbstractWorkflowSchemeMigrationHelper<T extends WorkflowScheme> extends Object implements WorkflowSchemeMigrationHelper<T>
Modifier and Type | Field and Description |
---|---|
protected ConstantsManager |
constantsManager |
protected OfBizDelegator |
delegator |
protected com.atlassian.event.api.EventPublisher |
eventPublisher |
protected I18nHelper |
i18nHelper |
protected IssueIndexManager |
issueIndexManager |
protected SchemeManager |
schemeManager |
protected String |
schemeName |
protected Map<IssueType,Collection<Status>> |
statusesNeedingMigration |
protected TaskManager |
taskManager |
protected List<IssueType> |
typesNeedingMigration |
protected ApplicationUser |
user |
protected WorkflowMigrationMapping |
workflowMigrationMapping |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(IssueType issueType,
Status oldStatus,
Status newStatus) |
protected void |
copyAndDeleteDraftsForInactiveWorkflowsIn(WorkflowScheme workflowScheme) |
boolean |
doQuickMigrate() |
org.apache.log4j.Logger |
getLogger() |
Collection<Status> |
getStatusesNeedingMigration(IssueType issueType) |
List<IssueType> |
getTypesNeedingMigration() |
boolean |
isHaveIssuesToMigrate() |
TaskDescriptor<WorkflowMigrationResult> |
migrateAsync() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
migrate
protected final SchemeManager schemeManager
protected final Map<IssueType,Collection<Status>> statusesNeedingMigration
protected final WorkflowMigrationMapping workflowMigrationMapping
protected final OfBizDelegator delegator
protected final ApplicationUser user
protected final ConstantsManager constantsManager
protected final I18nHelper i18nHelper
protected final String schemeName
protected final TaskManager taskManager
protected final IssueIndexManager issueIndexManager
protected final com.atlassian.event.api.EventPublisher eventPublisher
public List<IssueType> getTypesNeedingMigration()
getTypesNeedingMigration
in interface WorkflowSchemeMigrationHelper<T extends WorkflowScheme>
public Collection<Status> getStatusesNeedingMigration(IssueType issueType)
getStatusesNeedingMigration
in interface WorkflowSchemeMigrationHelper<T extends WorkflowScheme>
public void addMapping(IssueType issueType, Status oldStatus, Status newStatus)
addMapping
in interface WorkflowSchemeMigrationHelper<T extends WorkflowScheme>
public org.apache.log4j.Logger getLogger()
getLogger
in interface WorkflowSchemeMigrationHelper<T extends WorkflowScheme>
public boolean doQuickMigrate() throws org.ofbiz.core.entity.GenericEntityException
doQuickMigrate
in interface WorkflowSchemeMigrationHelper<T extends WorkflowScheme>
org.ofbiz.core.entity.GenericEntityException
public boolean isHaveIssuesToMigrate() throws org.ofbiz.core.entity.GenericEntityException
isHaveIssuesToMigrate
in interface WorkflowSchemeMigrationHelper<T extends WorkflowScheme>
org.ofbiz.core.entity.GenericEntityException
public TaskDescriptor<WorkflowMigrationResult> migrateAsync() throws RejectedExecutionException
migrateAsync
in interface WorkflowSchemeMigrationHelper<T extends WorkflowScheme>
RejectedExecutionException
protected void copyAndDeleteDraftsForInactiveWorkflowsIn(WorkflowScheme workflowScheme)
Copyright © 2002-2019 Atlassian. All Rights Reserved.