Class ReferenceAoOverview
java.lang.Object
com.atlassian.jira.dev.reference.plugin.imports.project.ReferenceAoOverview
- All Implemented Interfaces:
AoEntityHandler,PluggableOverviewAoEntityHandler
Reference plugin to gather AO data and add it to the Backup project overview
- 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.voidProvides the implementation an opportunity to perform some action once all rows of a table are processed.voidhandleEntity(String entityName, Map<String, Object> attributes) This is the main method to implement when using this ImportEntityHandler.booleanhandlesEntity(String entityName) Return true if the handler should handle this entity.voidsetBackupOverviewBuilder(BackupOverviewBuilder backupOverviewBuilder) voidProvides the implementation an opportunity to perform some action when the document is starting to be read.
-
Constructor Details
-
ReferenceAoOverview
public ReferenceAoOverview()
-
-
Method Details
-
handleEntity
public void handleEntity(String entityName, Map<String, Object> attributes) throws ParseException, AbortImportExceptionDescription copied from interface:AoEntityHandlerThis 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 interfaceAoEntityHandler- 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:AoEntityHandlerReturn true if the handler should handle this entity.- Specified by:
handlesEntityin interfaceAoEntityHandler- Returns:
- true if the handler should handle this entity.
-
startDocument
public void startDocument()Description copied from interface:AoEntityHandlerProvides the implementation an opportunity to perform some action when the document is starting to be read.- Specified by:
startDocumentin interfaceAoEntityHandler
-
endDocument
public void endDocument()Description copied from interface:AoEntityHandlerProvides the implementation an opportunity to perform some action when the document is finished being read.- Specified by:
endDocumentin interfaceAoEntityHandler
-
endTable
Description copied from interface:AoEntityHandlerProvides the implementation an opportunity to perform some action once all rows of a table are processed.- Specified by:
endTablein interfaceAoEntityHandler
-
setBackupOverviewBuilder
- Specified by:
setBackupOverviewBuilderin interfacePluggableOverviewAoEntityHandler
-