public class AoPartitionHandler extends Object implements PluggableImportAoEntityHandler
WEIGHT_NONE| Constructor and Description |
|---|
AoPartitionHandler(AoImportTemporaryFiles aoImportTemporaryFiles,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument()
Provides the implementation an opportunity to perform some action when the document is finished being read.
|
void |
endTable(String tableName)
Provides the implementation an opportunity to perform some action once all rows of a table are processed.
|
Long |
getEntityWeight(String entityName)
Return the weight for this entity.
|
void |
handleEntity(String entityName,
Map<String,Object> attributes)
This is the main method to implement when using this ImportEntityHandler.
|
boolean |
handlesEntity(String entityName)
Return true if the handler should handle this entity.
|
void |
setBackupProject(BackupProject backupProject)
Set the backup project.
|
void |
setBackupSystemInformation(BackupSystemInformation backupSystemInformation)
Set the backup system information.
|
void |
setProjectImportMapper(ProjectImportMapper projectImportMapper)
Set the project import mapper.
|
void |
setProjectImportResults(ProjectImportResults projectImportResults)
Set the project import results.
|
void |
startDocument()
Provides the implementation an opportunity to perform some action when the document is starting to
be read.
|
public AoPartitionHandler(AoImportTemporaryFiles aoImportTemporaryFiles, String encoding)
public boolean handlesEntity(String entityName)
AoEntityHandlerhandlesEntity in interface AoEntityHandlerpublic Long getEntityWeight(String entityName)
PluggableImportAoEntityHandlerPluggableImportAoEntityHandler.WEIGHT_NONE.
This is ignored (not called) during the pre-import stage where the entities are supplied in the backup XML order.
getEntityWeight in interface PluggableImportAoEntityHandlerpublic void handleEntity(String entityName, Map<String,Object> attributes) throws ParseException, AbortImportException
AoEntityHandlerhandleEntity in interface AoEntityHandlerentityName - identifies the entity (i.e. Issue)attributes - complete list of the attributes listed in the XML element including the nested
elements.ParseException - if the entity is invalid a ParseException will be thrown.AbortImportException - to indicate to Project Import
that it should abort its SAX parsing.public void startDocument()
AoEntityHandlerstartDocument in interface AoEntityHandlerpublic void endDocument()
AoEntityHandlerendDocument in interface AoEntityHandlerpublic void endTable(String tableName)
AoEntityHandlerendTable in interface AoEntityHandlerpublic void setBackupProject(BackupProject backupProject)
PluggableImportHandlersetBackupProject in interface PluggableImportHandlerbackupProject - The backup projectpublic void setBackupSystemInformation(BackupSystemInformation backupSystemInformation)
PluggableImportHandlersetBackupSystemInformation in interface PluggableImportHandlerbackupSystemInformation - The backup system informationpublic void setProjectImportMapper(ProjectImportMapper projectImportMapper)
PluggableImportHandlersetProjectImportMapper in interface PluggableImportHandlerprojectImportMapper - The project import mapperpublic void setProjectImportResults(@Nullable ProjectImportResults projectImportResults)
PluggableImportHandlersetProjectImportResults in interface PluggableImportHandlerprojectImportResults - The project import resultsCopyright © 2002-2021 Atlassian. All Rights Reserved.