public class BackupOverviewBuilderImpl extends Object implements BackupOverviewBuilder
BackupOverviewBuilder.ConfigurationContext, BackupOverviewBuilder.FieldConfigSchemeIssueType| Constructor and Description |
|---|
BackupOverviewBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalData(String key,
String projectId,
Object data)
Set additional data into the backup overview that is gathered from plugins.
|
void |
addComment(ExternalComment comment)
Allows you to register a comment against a project.
|
void |
addComponent(ExternalComponent component)
Allows you to add a reference to an
ExternalComponent. |
void |
addConfigurationContext(BackupOverviewBuilder.ConfigurationContext configuration)
Registers a portion of a projects custom field configuration so that the builder can collate this with the
BackupOverviewBuilder.addFieldConfigSchemeIssueType(FieldConfigSchemeIssueType)
and BackupOverviewBuilder.addExternalCustomField(com.atlassian.jira.external.beans.ExternalCustomField) data to produce a
project relevant custom field configuration. |
void |
addExternalCustomField(ExternalCustomField externalCustomField)
Registers the custom field information portion of a projects custom field configuration so that the builder can collate this with the
BackupOverviewBuilder.addConfigurationContext(ConfigurationContext)
and BackupOverviewBuilder.addFieldConfigSchemeIssueType(FieldConfigSchemeIssueType) data to produce a
project relevant custom field configuration. |
void |
addFieldConfigSchemeIssueType(BackupOverviewBuilder.FieldConfigSchemeIssueType fieldConfigSchemeIssueType)
Registers a portion of a projects custom field configuration so that the builder can collate this with the
BackupOverviewBuilder.addConfigurationContext(ConfigurationContext)
and BackupOverviewBuilder.addExternalCustomField(com.atlassian.jira.external.beans.ExternalCustomField) data to produce a
project relevant custom field configuration. |
void |
addIssue(ExternalIssue issue)
Allows you to register an issue against a project.
|
void |
addPluginVersion(PluginVersion pluginVersion)
Allows you to add a reference to a
PluginVersion. |
void |
addProject(ExternalProject project)
Allows you to add a reference to an
ExternalProject. |
void |
addVersion(ExternalVersion version)
Allows you to add a reference to an
ExternalVersion. |
BackupOverview |
getBackupOverview()
Returns a
BackupOverview that is populated by the current
state of the builder. |
void |
populateInformationFromElement(String elementName,
Map attributes)
Used to handle populating the builder from a SAX parser.
|
protected void |
registerOverviewPopulator(BackupOverviewPopulator populator) |
protected void |
registerOverviewPopulators() |
void |
setBuildNumber(String buildNumber)
Registers the JIRA build number with this object.
|
void |
setEdition(String edition)
Registers the JIRA edition with this object.
|
void |
setUnassignedIssuesAllowed(boolean unassignedIssuesAllowed)
Registers the value of the "UnassignedIssuesAllowed" setting.
|
public void addProject(ExternalProject project)
BackupOverviewBuilderExternalProject.addProject in interface BackupOverviewBuilderproject - the project to add.public void addPluginVersion(PluginVersion pluginVersion)
BackupOverviewBuilderPluginVersion.addPluginVersion in interface BackupOverviewBuilderpluginVersion - the plugin version to add.public void addVersion(ExternalVersion version)
BackupOverviewBuilderExternalVersion.addVersion in interface BackupOverviewBuilderversion - the version information to associate with the project.public void addComponent(ExternalComponent component)
BackupOverviewBuilderExternalComponent.addComponent in interface BackupOverviewBuildercomponent - the component information to associate with the project.public void addIssue(ExternalIssue issue)
BackupOverviewBuilderBackupProject.getIssueIds() method.addIssue in interface BackupOverviewBuilderissue - which has its id and project set. We should be able to convert the issue id to a long.public void addComment(ExternalComment comment)
BackupOverviewBuilderaddComment in interface BackupOverviewBuildercomment - which has its id and issue set.public void setBuildNumber(String buildNumber)
BackupOverviewBuildersetBuildNumber in interface BackupOverviewBuilderbuildNumber - the build number as contained in the JIRA backup.public void setEdition(String edition)
BackupOverviewBuildersetEdition in interface BackupOverviewBuilderedition - the edition as contained in the JIRA backup.public void setUnassignedIssuesAllowed(boolean unassignedIssuesAllowed)
BackupOverviewBuildersetUnassignedIssuesAllowed in interface BackupOverviewBuilderunassignedIssuesAllowed - The value of the "UnassignedIssuesAllowed" setting.public BackupOverview getBackupOverview()
BackupOverviewBuilderBackupOverview that is populated by the current
state of the builder.getBackupOverview in interface BackupOverviewBuilderBackupProject's and
JIRA system information that has been registered with the builder.public void populateInformationFromElement(String elementName, Map attributes) throws ParseException
BackupOverviewBuilderBackupOverviewPopulator.
This will then populate this object with the information it gains from the XML information.populateInformationFromElement in interface BackupOverviewBuilderelementName - identifies the XML element.attributes - identifies the attributes associated with the XML element.ParseException - if the attributes are invalid for this element.public void addExternalCustomField(ExternalCustomField externalCustomField)
BackupOverviewBuilderBackupOverviewBuilder.addConfigurationContext(ConfigurationContext)
and BackupOverviewBuilder.addFieldConfigSchemeIssueType(FieldConfigSchemeIssueType) data to produce a
project relevant custom field configuration.addExternalCustomField in interface BackupOverviewBuilderexternalCustomField - is the custom field information represented in the backup XML.public void addConfigurationContext(BackupOverviewBuilder.ConfigurationContext configuration)
BackupOverviewBuilderBackupOverviewBuilder.addFieldConfigSchemeIssueType(FieldConfigSchemeIssueType)
and BackupOverviewBuilder.addExternalCustomField(com.atlassian.jira.external.beans.ExternalCustomField) data to produce a
project relevant custom field configuration.addConfigurationContext in interface BackupOverviewBuilderconfiguration - is the configuration represented in the backup XML.public void addFieldConfigSchemeIssueType(BackupOverviewBuilder.FieldConfigSchemeIssueType fieldConfigSchemeIssueType)
BackupOverviewBuilderBackupOverviewBuilder.addConfigurationContext(ConfigurationContext)
and BackupOverviewBuilder.addExternalCustomField(com.atlassian.jira.external.beans.ExternalCustomField) data to produce a
project relevant custom field configuration.addFieldConfigSchemeIssueType in interface BackupOverviewBuilderfieldConfigSchemeIssueType - is the linked issue type information represented in the backup XML.protected void registerOverviewPopulators()
protected void registerOverviewPopulator(BackupOverviewPopulator populator)
public void addAdditionalData(String key, String projectId, Object data)
BackupOverviewBuilderaddAdditionalData in interface BackupOverviewBuilderkey - A unique key for the plugin.projectId - The project the data relates to.data - Data to be stored against the key. The data will be added to a list and eventually stored in the
and accessible via Copyright © 2002-2023 Atlassian. All Rights Reserved.