public class ReferenceOfBizImport extends Object implements PluggableImportOfBizEntityHandler
Constructor and Description |
---|
ReferenceOfBizImport() |
Modifier and Type | Method and Description |
---|---|
void |
endDocument()
Provides the implementation an opportunity to perform some action when the document is finished being read.
|
BackupProject |
getBackupProject() |
BackupSystemInformation |
getBackupSystemInformation() |
ProjectImportMapper |
getProjectImportMapper() |
ProjectImportResults |
getProjectImportResults() |
void |
handleEntity(String entityName,
Map<String,String> attributes)
This is the main method to implement when using this ImportEntityHandler.
|
boolean |
handlesEntity(String entityName)
Return true if this handler should process the entity.
|
boolean |
isDocEnded() |
boolean |
isDocStarted() |
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 void handleEntity(String entityName, Map<String,String> attributes) throws ParseException, AbortImportException
ImportOfBizEntityHandler
handleEntity
in interface ImportOfBizEntityHandler
entityName
- 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 boolean handlesEntity(String entityName)
PluggableImportOfBizEntityHandler
handlesEntity
in interface PluggableImportOfBizEntityHandler
entityName
- Entities to process.public void startDocument()
PluggableImportOfBizEntityHandler
startDocument
in interface ImportOfBizEntityHandler
startDocument
in interface PluggableImportOfBizEntityHandler
public void endDocument()
PluggableImportOfBizEntityHandler
endDocument
in interface ImportOfBizEntityHandler
endDocument
in interface PluggableImportOfBizEntityHandler
public void setBackupProject(BackupProject backupProject)
PluggableImportHandler
setBackupProject
in interface PluggableImportHandler
backupProject
- The backup projectpublic void setBackupSystemInformation(BackupSystemInformation backupSystemInformation)
PluggableImportHandler
setBackupSystemInformation
in interface PluggableImportHandler
backupSystemInformation
- The backup system informationpublic void setProjectImportMapper(ProjectImportMapper projectImportMapper)
PluggableImportHandler
setProjectImportMapper
in interface PluggableImportHandler
projectImportMapper
- The project import mapperpublic void setProjectImportResults(@Nullable ProjectImportResults projectImportResults)
PluggableImportHandler
setProjectImportResults
in interface PluggableImportHandler
projectImportResults
- The project import resultspublic boolean isDocStarted()
public boolean isDocEnded()
public BackupProject getBackupProject()
public BackupSystemInformation getBackupSystemInformation()
public ProjectImportMapper getProjectImportMapper()
@Nullable public ProjectImportResults getProjectImportResults()
Copyright © 2002-2015 Atlassian. All Rights Reserved.