com.atlassian.bamboo.migration
Class ProjectMapper

java.lang.Object
  extended by com.atlassian.bamboo.migration.BambooMapper
      extended by com.atlassian.bamboo.migration.ProjectMapper
All Implemented Interfaces:
Mapper

public class ProjectMapper
extends BambooMapper


Field Summary
static java.lang.String BUILD_XML_BUILDKEY
           
static java.lang.String BUILD_XML_BUILDNAME
           
static java.lang.String BUILD_XML_DEFINITION
           
static java.lang.String BUILD_XML_DEFINITION_XML
           
static java.lang.String BUILD_XML_FIRSTBUILD
           
static java.lang.String BUILD_XML_KEY
           
static java.lang.String BUILD_XML_LAST_VCS_KEY
           
static java.lang.String BUILD_XML_LASTBUILD
           
static java.lang.String BUILD_XML_LASTSTART
           
static java.lang.String BUILD_XML_NEXTBUILD
           
static java.lang.String BUILD_XML_NODE
           
static java.lang.String BUILD_XML_ROOT
           
static java.lang.String BUILD_XML_SUSPENDED
           
static java.lang.String BUILDSUMMARY_LINKEDJIRAISSUE_TYPE_FIXED
           
static java.lang.String BUILDSUMMARY_LINKEDJIRAISSUE_TYPE_RELATES
           
static java.lang.String BUILDSUMMARY_XML_AGENTID
           
static java.lang.String BUILDSUMMARY_XML_BUILDCOMPLETEDDATE
           
static java.lang.String BUILDSUMMARY_XML_BUILDDATE
           
static java.lang.String BUILDSUMMARY_XML_BUILDNUMBER
           
static java.lang.String BUILDSUMMARY_XML_BUILDSTATE
           
static java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA
           
static java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE
           
static java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE_KEY
           
static java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE_VALUE
           
static java.lang.String BUILDSUMMARY_XML_DELTASTATE
           
static java.lang.String BUILDSUMMARY_XML_DURATION
           
static java.lang.String BUILDSUMMARY_XML_FAILED_TEST
           
static java.lang.String BUILDSUMMARY_XML_JIRAISSUES
           
static java.lang.String BUILDSUMMARY_XML_JIRAISSUES_KEY
           
static java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUE
           
static java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUE_KEY
           
static java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUE_TYPE
           
static java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUES
           
static java.lang.String BUILDSUMMARY_XML_NODE
           
static java.lang.String BUILDSUMMARY_XML_ROOT
           
static java.lang.String BUILDSUMMARY_XML_SUCCESS_TEST
           
static java.lang.String BUILDSUMMARY_XML_TRIGGERREASON
           
static java.lang.String BUILDSUMMARY_XML_VCS_KEY
           
static java.lang.String COMMENTS_XML_CONTENT
           
static java.lang.String COMMENTS_XML_NODE
           
static java.lang.String COMMENTS_XML_ROOT
           
static java.lang.String COMMENTS_XML_USER
           
static java.lang.String COMMITS_XML_AUTHOR
           
static java.lang.String COMMITS_XML_COMMENT
           
static java.lang.String COMMITS_XML_DATE
           
static java.lang.String COMMITS_XML_FILES
           
static java.lang.String COMMITS_XML_FILES_NODE
           
static java.lang.String COMMITS_XML_FILES_NODE_NAME
           
static java.lang.String COMMITS_XML_FILES_NODE_REVISION
           
static java.lang.String COMMITS_XML_NODE
           
static java.lang.String COMMITS_XML_ROOT
           
static java.lang.String LABELS_XML_LABEL
           
static java.lang.String LABELS_XML_NODE
           
static java.lang.String LABELS_XML_ROOT
           
static java.lang.String LABELS_XML_USER
           
static java.lang.String PROJECT_XML_KEY
           
static java.lang.String PROJECT_XML_NAME
           
static java.lang.String PROJECT_XML_NODE
           
static java.lang.String PROJECT_XML_ROOT
           
 
Fields inherited from class com.atlassian.bamboo.migration.BambooMapper
GENERIC_XML_CREATIONDATE, GENERIC_XML_ID, GENERIC_XML_MODIFICATIONDATE
 
Constructor Summary
ProjectMapper()
           
 
Method Summary
 org.dom4j.Element exportCommits(ExtendedBuildResultsSummary buildResultsSummary)
           
 void exportJiraIssues(java.util.Set<LinkedJiraIssue> jiraIssues, org.dom4j.Element jiraIssuesElement)
           
 org.dom4j.Element exportNotifications(Build build)
           
 org.dom4j.Element exportXml()
          EXPORT
 void importXml(org.dom4j.Element root)
          IMPORT
 void setBuildManager(BuildManager buildManager)
           
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setLabelDao(LabelDao labelDao)
           
 void setNotificationManager(NotificationManager notificationManager)
           
 void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Methods inherited from class com.atlassian.bamboo.migration.BambooMapper
addElementIfNotBlank, addElementIfNotBlank, addElementIfNotBlank, addElementIfNotBlank, exportDefaults, getOptionalString, getOptionalValue, getOptionalValue, getOptionalValue, parseDateElement, populateDefaults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_XML_ROOT

public static final java.lang.String PROJECT_XML_ROOT
See Also:
Constant Field Values

PROJECT_XML_NODE

public static final java.lang.String PROJECT_XML_NODE
See Also:
Constant Field Values

PROJECT_XML_KEY

public static final java.lang.String PROJECT_XML_KEY
See Also:
Constant Field Values

PROJECT_XML_NAME

public static final java.lang.String PROJECT_XML_NAME
See Also:
Constant Field Values

BUILD_XML_ROOT

public static final java.lang.String BUILD_XML_ROOT
See Also:
Constant Field Values

BUILD_XML_NODE

public static final java.lang.String BUILD_XML_NODE
See Also:
Constant Field Values

BUILD_XML_KEY

public static final java.lang.String BUILD_XML_KEY
See Also:
Constant Field Values

BUILD_XML_BUILDKEY

public static final java.lang.String BUILD_XML_BUILDKEY
See Also:
Constant Field Values

BUILD_XML_BUILDNAME

public static final java.lang.String BUILD_XML_BUILDNAME
See Also:
Constant Field Values

BUILD_XML_FIRSTBUILD

public static final java.lang.String BUILD_XML_FIRSTBUILD
See Also:
Constant Field Values

BUILD_XML_LASTBUILD

public static final java.lang.String BUILD_XML_LASTBUILD
See Also:
Constant Field Values

BUILD_XML_LASTSTART

public static final java.lang.String BUILD_XML_LASTSTART
See Also:
Constant Field Values

BUILD_XML_NEXTBUILD

public static final java.lang.String BUILD_XML_NEXTBUILD
See Also:
Constant Field Values

BUILD_XML_SUSPENDED

public static final java.lang.String BUILD_XML_SUSPENDED
See Also:
Constant Field Values

BUILD_XML_DEFINITION

public static final java.lang.String BUILD_XML_DEFINITION
See Also:
Constant Field Values

BUILD_XML_DEFINITION_XML

public static final java.lang.String BUILD_XML_DEFINITION_XML
See Also:
Constant Field Values

BUILD_XML_LAST_VCS_KEY

public static final java.lang.String BUILD_XML_LAST_VCS_KEY
See Also:
Constant Field Values

BUILDSUMMARY_XML_ROOT

public static final java.lang.String BUILDSUMMARY_XML_ROOT
See Also:
Constant Field Values

BUILDSUMMARY_XML_NODE

public static final java.lang.String BUILDSUMMARY_XML_NODE
See Also:
Constant Field Values

BUILDSUMMARY_XML_BUILDNUMBER

public static final java.lang.String BUILDSUMMARY_XML_BUILDNUMBER
See Also:
Constant Field Values

BUILDSUMMARY_XML_BUILDDATE

public static final java.lang.String BUILDSUMMARY_XML_BUILDDATE
See Also:
Constant Field Values

BUILDSUMMARY_XML_BUILDCOMPLETEDDATE

public static final java.lang.String BUILDSUMMARY_XML_BUILDCOMPLETEDDATE
See Also:
Constant Field Values

BUILDSUMMARY_XML_BUILDSTATE

public static final java.lang.String BUILDSUMMARY_XML_BUILDSTATE
See Also:
Constant Field Values

BUILDSUMMARY_XML_VCS_KEY

public static final java.lang.String BUILDSUMMARY_XML_VCS_KEY
See Also:
Constant Field Values

BUILDSUMMARY_XML_AGENTID

public static final java.lang.String BUILDSUMMARY_XML_AGENTID
See Also:
Constant Field Values

BUILDSUMMARY_XML_SUCCESS_TEST

public static final java.lang.String BUILDSUMMARY_XML_SUCCESS_TEST
See Also:
Constant Field Values

BUILDSUMMARY_XML_FAILED_TEST

public static final java.lang.String BUILDSUMMARY_XML_FAILED_TEST
See Also:
Constant Field Values

BUILDSUMMARY_XML_DURATION

public static final java.lang.String BUILDSUMMARY_XML_DURATION
See Also:
Constant Field Values

BUILDSUMMARY_XML_TRIGGERREASON

public static final java.lang.String BUILDSUMMARY_XML_TRIGGERREASON
See Also:
Constant Field Values

BUILDSUMMARY_XML_DELTASTATE

public static final java.lang.String BUILDSUMMARY_XML_DELTASTATE
See Also:
Constant Field Values

BUILDSUMMARY_XML_JIRAISSUES

public static final java.lang.String BUILDSUMMARY_XML_JIRAISSUES
See Also:
Constant Field Values

BUILDSUMMARY_XML_JIRAISSUES_KEY

public static final java.lang.String BUILDSUMMARY_XML_JIRAISSUES_KEY
See Also:
Constant Field Values

BUILDSUMMARY_XML_LINKEDJIRAISSUES

public static final java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUES
See Also:
Constant Field Values

BUILDSUMMARY_XML_LINKEDJIRAISSUE

public static final java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUE
See Also:
Constant Field Values

BUILDSUMMARY_XML_LINKEDJIRAISSUE_KEY

public static final java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUE_KEY
See Also:
Constant Field Values

BUILDSUMMARY_XML_LINKEDJIRAISSUE_TYPE

public static final java.lang.String BUILDSUMMARY_XML_LINKEDJIRAISSUE_TYPE
See Also:
Constant Field Values

BUILDSUMMARY_LINKEDJIRAISSUE_TYPE_FIXED

public static final java.lang.String BUILDSUMMARY_LINKEDJIRAISSUE_TYPE_FIXED
See Also:
Constant Field Values

BUILDSUMMARY_LINKEDJIRAISSUE_TYPE_RELATES

public static final java.lang.String BUILDSUMMARY_LINKEDJIRAISSUE_TYPE_RELATES
See Also:
Constant Field Values

BUILDSUMMARY_XML_CUSTOMBUILDDATA

public static final java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA
See Also:
Constant Field Values

BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE

public static final java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE
See Also:
Constant Field Values

BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE_KEY

public static final java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE_KEY
See Also:
Constant Field Values

BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE_VALUE

public static final java.lang.String BUILDSUMMARY_XML_CUSTOMBUILDDATA_NODE_VALUE
See Also:
Constant Field Values

COMMITS_XML_ROOT

public static final java.lang.String COMMITS_XML_ROOT
See Also:
Constant Field Values

COMMITS_XML_NODE

public static final java.lang.String COMMITS_XML_NODE
See Also:
Constant Field Values

COMMITS_XML_AUTHOR

public static final java.lang.String COMMITS_XML_AUTHOR
See Also:
Constant Field Values

COMMITS_XML_FILES

public static final java.lang.String COMMITS_XML_FILES
See Also:
Constant Field Values

COMMITS_XML_FILES_NODE

public static final java.lang.String COMMITS_XML_FILES_NODE
See Also:
Constant Field Values

COMMITS_XML_FILES_NODE_NAME

public static final java.lang.String COMMITS_XML_FILES_NODE_NAME
See Also:
Constant Field Values

COMMITS_XML_FILES_NODE_REVISION

public static final java.lang.String COMMITS_XML_FILES_NODE_REVISION
See Also:
Constant Field Values

COMMITS_XML_COMMENT

public static final java.lang.String COMMITS_XML_COMMENT
See Also:
Constant Field Values

COMMITS_XML_DATE

public static final java.lang.String COMMITS_XML_DATE
See Also:
Constant Field Values

LABELS_XML_ROOT

public static final java.lang.String LABELS_XML_ROOT
See Also:
Constant Field Values

LABELS_XML_NODE

public static final java.lang.String LABELS_XML_NODE
See Also:
Constant Field Values

LABELS_XML_LABEL

public static final java.lang.String LABELS_XML_LABEL
See Also:
Constant Field Values

LABELS_XML_USER

public static final java.lang.String LABELS_XML_USER
See Also:
Constant Field Values

COMMENTS_XML_ROOT

public static final java.lang.String COMMENTS_XML_ROOT
See Also:
Constant Field Values

COMMENTS_XML_NODE

public static final java.lang.String COMMENTS_XML_NODE
See Also:
Constant Field Values

COMMENTS_XML_CONTENT

public static final java.lang.String COMMENTS_XML_CONTENT
See Also:
Constant Field Values

COMMENTS_XML_USER

public static final java.lang.String COMMENTS_XML_USER
See Also:
Constant Field Values
Constructor Detail

ProjectMapper

public ProjectMapper()
Method Detail

exportXml

public org.dom4j.Element exportXml()
                            throws java.text.ParseException
EXPORT

Returns:
Throws:
java.text.ParseException

exportJiraIssues

public void exportJiraIssues(@NotNull
                             java.util.Set<LinkedJiraIssue> jiraIssues,
                             @NotNull
                             org.dom4j.Element jiraIssuesElement)
                      throws java.text.ParseException
Throws:
java.text.ParseException

exportCommits

public org.dom4j.Element exportCommits(ExtendedBuildResultsSummary buildResultsSummary)
                                throws java.text.ParseException
Throws:
java.text.ParseException

exportNotifications

public org.dom4j.Element exportNotifications(Build build)
                                      throws java.text.ParseException
Throws:
java.text.ParseException

importXml

public void importXml(org.dom4j.Element root)
               throws java.lang.Exception
IMPORT

Parameters:
root -
Throws:
java.lang.Exception

setBuildManager

public void setBuildManager(BuildManager buildManager)

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)

setSessionFactory

public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)

setExtendedAuthorManager

public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)

setLabelDao

public void setLabelDao(LabelDao labelDao)

setNotificationManager

public void setNotificationManager(NotificationManager notificationManager)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.