|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl
public class BackupOverviewBuilderImpl
Nested Class Summary | |
---|---|
static class |
BackupOverviewBuilderImpl.ConfigurationContext
Represents the CustomField configuration context as stored in the XML Backup. |
static class |
BackupOverviewBuilderImpl.FieldConfigSchemeIssueType
Represents the CustomField field configuration issue type context as stored in the XML Backup. |
Constructor Summary | |
---|---|
BackupOverviewBuilderImpl()
|
Method Summary | |
---|---|
void |
addComponent(ExternalComponent component)
Allows you to add a reference to an ExternalComponent . |
void |
addConfigurationContext(BackupOverviewBuilderImpl.ConfigurationContext configuration)
Regiserters a portion of a projects custom field configuration so that the builder can collate this with the BackupOverviewBuilder.addFieldConfigSchemeIssueType(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.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(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.ConfigurationContext)
and BackupOverviewBuilder.addFieldConfigSchemeIssueType(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.FieldConfigSchemeIssueType) data to produce a
project relevant custom field configuration. |
void |
addFieldConfigSchemeIssueType(BackupOverviewBuilderImpl.FieldConfigSchemeIssueType fieldConfigSchemeIssueType)
Regiserters a portion of a projects custom field configuration so that the builder can collate this with the BackupOverviewBuilder.addConfigurationContext(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackupOverviewBuilderImpl()
Method Detail |
---|
public void addProject(ExternalProject project)
BackupOverviewBuilder
ExternalProject
.
addProject
in interface BackupOverviewBuilder
project
- the project to add.public void addPluginVersion(PluginVersion pluginVersion)
BackupOverviewBuilder
PluginVersion
.
addPluginVersion
in interface BackupOverviewBuilder
pluginVersion
- the plugin version to add.public void addVersion(ExternalVersion version)
BackupOverviewBuilder
ExternalVersion
.
addVersion
in interface BackupOverviewBuilder
version
- the version information to associate with the project.public void addComponent(ExternalComponent component)
BackupOverviewBuilder
ExternalComponent
.
addComponent
in interface BackupOverviewBuilder
component
- the component information to associate with the project.public void addIssue(ExternalIssue issue)
BackupOverviewBuilder
BackupProject.getIssueIds()
method.
addIssue
in interface BackupOverviewBuilder
issue
- which has its id and project set. We should be able to convert the issue id to a long.public void setBuildNumber(String buildNumber)
BackupOverviewBuilder
setBuildNumber
in interface BackupOverviewBuilder
buildNumber
- the build number as contained in the JIRA backup.public void setEdition(String edition)
BackupOverviewBuilder
setEdition
in interface BackupOverviewBuilder
edition
- the edition as contained in the JIRA backup.public void setUnassignedIssuesAllowed(boolean unassignedIssuesAllowed)
BackupOverviewBuilder
setUnassignedIssuesAllowed
in interface BackupOverviewBuilder
unassignedIssuesAllowed
- The value of the "UnassignedIssuesAllowed" setting.public BackupOverview getBackupOverview()
BackupOverviewBuilder
BackupOverview
that is populated by the current
state of the builder.
getBackupOverview
in interface BackupOverviewBuilder
BackupProject
's and
JIRA system information that has been registered with the builder.public void populateInformationFromElement(String elementName, Map attributes) throws ParseException
BackupOverviewBuilder
BackupOverviewPopulator
.
This will then populate this object with the information it gains from the XML information.
populateInformationFromElement
in interface BackupOverviewBuilder
elementName
- 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)
BackupOverviewBuilder
BackupOverviewBuilder.addConfigurationContext(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.ConfigurationContext)
and BackupOverviewBuilder.addFieldConfigSchemeIssueType(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.FieldConfigSchemeIssueType)
data to produce a
project relevant custom field configuration.
addExternalCustomField
in interface BackupOverviewBuilder
externalCustomField
- is the custom field information represented in the backup XML.public void addConfigurationContext(BackupOverviewBuilderImpl.ConfigurationContext configuration)
BackupOverviewBuilder
BackupOverviewBuilder.addFieldConfigSchemeIssueType(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.FieldConfigSchemeIssueType)
and BackupOverviewBuilder.addExternalCustomField(com.atlassian.jira.external.beans.ExternalCustomField)
data to produce a
project relevant custom field configuration.
addConfigurationContext
in interface BackupOverviewBuilder
configuration
- is the configuration represented in the backup XML.public void addFieldConfigSchemeIssueType(BackupOverviewBuilderImpl.FieldConfigSchemeIssueType fieldConfigSchemeIssueType)
BackupOverviewBuilder
BackupOverviewBuilder.addConfigurationContext(com.atlassian.jira.imports.project.core.BackupOverviewBuilderImpl.ConfigurationContext)
and BackupOverviewBuilder.addExternalCustomField(com.atlassian.jira.external.beans.ExternalCustomField)
data to produce a
project relevant custom field configuration.
addFieldConfigSchemeIssueType
in interface BackupOverviewBuilder
fieldConfigSchemeIssueType
- is the linked issue type information represented in the backup XML.protected void registerOverviewPopulators()
protected void registerOverviewPopulator(BackupOverviewPopulator populator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |