|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.imports.project.handler.AbstractPersisterHandler
com.atlassian.jira.imports.project.handler.IssuePersisterHandler
public class IssuePersisterHandler
Used to inspect issue entries in a backup file, transform the entities and persist them to the database.
Constructor Summary | |
---|---|
IssuePersisterHandler(ProjectImportPersister projectImportPersister,
ProjectImportMapper projectImportMapper,
com.atlassian.crowd.embedded.api.User importAuthor,
ProjectImportResults projectImportResults,
Executor executor)
|
Method Summary | |
---|---|
void |
endDocument()
Provides the implementation an opportunity to perform some action when the document is finished being read. |
long |
getLargestIssueKeyNumber()
While running through all the issues this handler keeps track of what the largest issue key number it has encountered. |
void |
handleEntity(String entityName,
Map<String,String> attributes)
Will read the issue, transform it, save it, and keep the new mapped value. |
void |
startDocument()
Provides the implementation an opportunity to perform some action when the document is starting to be read. |
Methods inherited from class com.atlassian.jira.imports.project.handler.AbstractPersisterHandler |
---|
execute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IssuePersisterHandler(ProjectImportPersister projectImportPersister, ProjectImportMapper projectImportMapper, com.atlassian.crowd.embedded.api.User importAuthor, ProjectImportResults projectImportResults, Executor executor)
Method Detail |
---|
public void handleEntity(String entityName, Map<String,String> attributes) throws ParseException, AbortImportException
handleEntity
in interface ImportEntityHandler
entityName
- the entity that is being processedattributes
- the map containing all the attributes
ParseException
- if something goes wrong interpreting the attributes into an objec
AbortImportException
- to indicate to the ChainedSaxHandler
that it should abort its SAX parsing.public long getLargestIssueKeyNumber()
public void startDocument()
ImportEntityHandler
startDocument
in interface ImportEntityHandler
public void endDocument()
ImportEntityHandler
endDocument
in interface ImportEntityHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |