com.atlassian.bamboo.migration.stream
Class ProjectChainMapper

java.lang.Object
  extended by com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T>
      extended by com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<Project>
          extended by com.atlassian.bamboo.migration.stream.AbstractProjectMapper
              extended by com.atlassian.bamboo.migration.stream.ProjectChainMapper
All Implemented Interfaces:
BambooStAXMappingHelper<Project>, BambooStAXRootMapper

public class ProjectChainMapper
extends AbstractProjectMapper


Field Summary
 
Fields inherited from class com.atlassian.bamboo.migration.stream.AbstractProjectMapper
authorMap, buildResultsSummaryManager, extendedAuthorManager, labelDao, labelMap, notificationManager, planManager, planVcsRevisionHistoryDao, projectManager, repositoryDefinitionManager, sessionFactory
 
Constructor Summary
ProjectChainMapper(net.sf.hibernate.SessionFactory sessionFactory, ProjectManager projectManager, BuildResultsSummaryManager buildResultsSummaryManager, ExtendedAuthorManager extendedAuthorManager, LabelDao labelDao, NotificationManager notificationManager, PlanManager planManager, BuildResultsSummaryDao buildResultsSummaryDao, PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao, RepositoryDefinitionManager repositoryDefinitionManager)
           
 
Method Summary
protected  void importProperties(Project project, org.codehaus.staxmate.in.SMInputCursor inputCursor, net.sf.hibernate.Session session)
          Import properties to the object.
 
Methods inherited from class com.atlassian.bamboo.migration.stream.AbstractProjectMapper
createItemInstance, exportData, exportProperties, getXmlElementNodeName, getXmlRootNodeName, importData, initialiseAuthorMap, initialiseLabelMap
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl
afterImportListItem, beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, importListXml, importListXml
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
commitClearSession, commitSession, exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, isShouldExport, saveBambooObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.migration.BambooStAXRootMapper
isShouldExport
 
Methods inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
exportXml, importXml
 

Constructor Detail

ProjectChainMapper

public ProjectChainMapper(net.sf.hibernate.SessionFactory sessionFactory,
                          ProjectManager projectManager,
                          BuildResultsSummaryManager buildResultsSummaryManager,
                          ExtendedAuthorManager extendedAuthorManager,
                          LabelDao labelDao,
                          NotificationManager notificationManager,
                          PlanManager planManager,
                          BuildResultsSummaryDao buildResultsSummaryDao,
                          PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao,
                          @NotNull
                          RepositoryDefinitionManager repositoryDefinitionManager)
Method Detail

importProperties

protected void importProperties(@NotNull
                                Project project,
                                @NotNull
                                org.codehaus.staxmate.in.SMInputCursor inputCursor,
                                @NotNull
                                net.sf.hibernate.Session session)
                         throws java.lang.Exception
Description copied from class: BambooStAXMappingHelperAbstractImpl
Import properties to the object. Due to nature of XML parsing this method is called for each child node in the node that was passed to importXml method

Overrides:
importProperties in class AbstractProjectMapper
Parameters:
project - object being imported
inputCursor - input cursor pointing to the child node of node that was passed to importXml method
session - Hibernate session object
Throws:
java.lang.Exception - when something went wrong


Copyright © 2012 Atlassian. All Rights Reserved.