com.atlassian.jira.migrate
Class AbstractMigrateTask

java.lang.Object
  extended by com.atlassian.jira.migrate.AbstractMigrateTask
All Implemented Interfaces:
MigrateTask

public abstract class AbstractMigrateTask
extends java.lang.Object
implements MigrateTask


Constructor Summary
AbstractMigrateTask()
           
 
Method Summary
protected  void addError(java.lang.String error)
           
 void addErrors(java.util.Collection errors)
           
 void addErrors(java.lang.String prefix, java.util.Collection errors)
          Useful for adding a bunch of errors (like from a command) with a prefix
 java.util.Collection getErrors()
          Return any errors that occur.
 java.util.Collection getProjectsCandidateForMigration()
           
 java.util.Collection getProjectsToMigrate()
           
 boolean isCandidateForMigration(org.ofbiz.core.entity.GenericValue _project)
           
 boolean isReadyForMigration(org.ofbiz.core.entity.GenericValue _project)
           
 void migrate()
          Perform the default migration.
 void migrateIssue(com.atlassian.jira.issue.Issue _issue)
          Perform the Issue migration.
 void migrateProject(org.ofbiz.core.entity.GenericValue _project)
          Perform the Project migration.
 void migrateProjects()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.migrate.MigrateTask
getShortDescription
 

Constructor Detail

AbstractMigrateTask

public AbstractMigrateTask()
Method Detail

migrate

public void migrate()
             throws java.lang.Exception
Description copied from interface: MigrateTask
Perform the default migration.

Specified by:
migrate in interface MigrateTask
Throws:
java.lang.Exception
See Also:
MigrateTask.migrateIssue(com.atlassian.jira.issue.Issue)

migrateIssue

public void migrateIssue(com.atlassian.jira.issue.Issue _issue)
                  throws java.lang.Exception
Description copied from interface: MigrateTask
Perform the Issue migration.

Specified by:
migrateIssue in interface MigrateTask
Throws:
java.lang.Exception
See Also:
MigrateTask.migrateIssue(com.atlassian.jira.issue.Issue)

migrateProject

public void migrateProject(org.ofbiz.core.entity.GenericValue _project)
                    throws java.lang.Exception
Description copied from interface: MigrateTask
Perform the Project migration.

Specified by:
migrateProject in interface MigrateTask
Throws:
java.lang.Exception
See Also:
MigrateTask.migrateProject(org.ofbiz.core.entity.GenericValue)

getProjectsToMigrate

public java.util.Collection getProjectsToMigrate()
                                          throws java.lang.Exception
Returns:
True is Project assumed as CMM Project
Throws:
org.ofbiz.core.entity.GenericEntityException
java.lang.Exception

isCandidateForMigration

public boolean isCandidateForMigration(org.ofbiz.core.entity.GenericValue _project)
                                throws java.lang.Exception
Returns:
True if Project is identified to be migrate
Throws:
org.ofbiz.core.entity.GenericEntityException
java.lang.Exception

isReadyForMigration

public boolean isReadyForMigration(org.ofbiz.core.entity.GenericValue _project)
                            throws java.lang.Exception
Returns:
True if Project is ready to be migrate (All issue may be migrated)
Throws:
org.ofbiz.core.entity.GenericEntityException
java.lang.Exception

getProjectsCandidateForMigration

public java.util.Collection getProjectsCandidateForMigration()
                                                      throws java.lang.Exception
Returns:
Project List candidates to Migration
Throws:
org.ofbiz.core.entity.GenericEntityException
java.lang.Exception

migrateProjects

public void migrateProjects()
                     throws java.lang.Exception
Throws:
org.ofbiz.core.entity.GenericEntityException
java.lang.Exception

addError

protected void addError(java.lang.String error)

addErrors

public void addErrors(java.lang.String prefix,
                      java.util.Collection errors)
Useful for adding a bunch of errors (like from a command) with a prefix


addErrors

public void addErrors(java.util.Collection errors)

getErrors

public java.util.Collection getErrors()
Description copied from interface: MigrateTask
Return any errors that occur. Each entry is a string.

Specified by:
getErrors in interface MigrateTask


Copyright © 2007-2008 Kaamelot Plugins. All Rights Reserved.