View Javadoc

1   /*
2    */
3   package com.atlassian.jira.migrate;
4   
5   import java.util.Collection;
6   
7   import org.ofbiz.core.entity.GenericValue;
8   
9   import com.atlassian.jira.issue.Issue;
10  
11  /**
12   */
13  public interface MigrateTask {
14  
15  	/**
16  	 * A short (<50 chars) description of the upgrade action
17  	 */
18  	public String getShortDescription();
19  
20  	/**
21  	 * Perform the default migration.
22  	 */
23  	public void migrate() throws Exception;
24  
25  	/**
26  	 * Perform the Project migration.
27  	 */
28  	public void migrateProject(final GenericValue _project) throws Exception;
29  
30  	/**
31  	 * Perform the Issue migration.
32  	 */
33  	public void migrateIssue(final Issue _issue) throws Exception;
34  
35  	/**
36  	 * Return any errors that occur.  Each entry is a string.
37  	 */
38  	public Collection getErrors();
39  
40  }