Class ReferenceOfBizPreImport
java.lang.Object
com.atlassian.jira.dev.reference.plugin.imports.project.ReferenceOfBizPreImport
- All Implemented Interfaces:
ImportOfBizEntityHandler,PluggableImportHandler,PluggableImportOfBizEntityHandler
Reference plugin to observe AO data during the initial stages of a project import.
- Since:
- v7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidProvides the implementation an opportunity to perform some action when the document is finished being read.voidhandleEntity(String entityName, Map<String, String> attributes) This is the main method to implement when using this ImportEntityHandler.booleanhandlesEntity(String entityName) Return true if this handler should process the entity.booleanbooleanvoidsetBackupProject(BackupProject backupProject) Set the backup project.voidsetBackupSystemInformation(BackupSystemInformation backupSystemInformation) Set the backup system information.voidsetProjectImportMapper(ProjectImportMapper projectImportMapper) Set the project import mapper.voidsetProjectImportResults(ProjectImportResults projectImportResults) Set the project import results.voidProvides the implementation an opportunity to perform some action when the document is starting to be read.
-
Constructor Details
-
ReferenceOfBizPreImport
public ReferenceOfBizPreImport()
-
-
Method Details
-
handleEntity
public void handleEntity(String entityName, Map<String, String> attributes) throws ParseException, AbortImportExceptionDescription copied from interface:ImportOfBizEntityHandlerThis is the main method to implement when using this ImportEntityHandler. This method will provide the entity name and a complete map of attribute key/value pairs. This includes any nested element tags that will have CDATA bodies.- Specified by:
handleEntityin interfaceImportOfBizEntityHandler- Parameters:
entityName- identifies the entity (i.e. Issue)attributes- complete list of the attributes listed in the XML element including the nested elements.- Throws:
ParseException- if the entity is invalid a ParseException will be thrown.AbortImportException- to indicate to project import that it should abort its SAX parsing.
-
handlesEntity
Description copied from interface:PluggableImportOfBizEntityHandlerReturn true if this handler should process the entity.- Specified by:
handlesEntityin interfacePluggableImportOfBizEntityHandler- Parameters:
entityName- Entities to process.
-
startDocument
public void startDocument()Description copied from interface:PluggableImportOfBizEntityHandlerProvides the implementation an opportunity to perform some action when the document is starting to be read.- Specified by:
startDocumentin interfaceImportOfBizEntityHandler- Specified by:
startDocumentin interfacePluggableImportOfBizEntityHandler
-
endDocument
public void endDocument()Description copied from interface:PluggableImportOfBizEntityHandlerProvides the implementation an opportunity to perform some action when the document is finished being read.- Specified by:
endDocumentin interfaceImportOfBizEntityHandler- Specified by:
endDocumentin interfacePluggableImportOfBizEntityHandler
-
setBackupProject
Description copied from interface:PluggableImportHandlerSet the backup project. This will be injected after the handler is constructed, before any entities are processed.- Specified by:
setBackupProjectin interfacePluggableImportHandler- Parameters:
backupProject- The backup project
-
setBackupSystemInformation
Description copied from interface:PluggableImportHandlerSet the backup system information. This will be injected after the handler is constructed, before any entities are processed.- Specified by:
setBackupSystemInformationin interfacePluggableImportHandler- Parameters:
backupSystemInformation- The backup system information
-
setProjectImportMapper
Description copied from interface:PluggableImportHandlerSet the project import mapper. This will be injected after the handler is constructed, before any entities are processed.- Specified by:
setProjectImportMapperin interfacePluggableImportHandler- Parameters:
projectImportMapper- The project import mapper
-
setProjectImportResults
Description copied from interface:PluggableImportHandlerSet the project import results. This will be injected after the handler is constructed, before any entities are processed. For pre-import handlers this will be null.- Specified by:
setProjectImportResultsin interfacePluggableImportHandler- Parameters:
projectImportResults- The project import results
-
isDocStarted
public boolean isDocStarted() -
isDocEnded
public boolean isDocEnded() -
getBackupProject
-
getBackupSystemInformation
-
getProjectImportMapper
-
getProjectImportResults
-