com.atlassian.bamboo.migration.stream
Class AbstractProjectDependencyMapper

java.lang.Object
  extended by com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T>
      extended by com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<PlanDependency>
          extended by com.atlassian.bamboo.migration.stream.AbstractProjectDependencyMapper
All Implemented Interfaces:
BambooRootMapper, BambooStAXMappingHelper<PlanDependency>, BambooStAXRootMapper
Direct Known Subclasses:
ProjectDependencyMapper

public abstract class AbstractProjectDependencyMapper
extends BambooStAXMappingListHelperAbstractImpl<PlanDependency>
implements BambooStAXRootMapper


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
BambooStAXMappingHelper.None
 
Field Summary
protected  PlanDao planDao
           
protected  PlanDependencyManager planDependencyManager
           
 
Constructor Summary
protected AbstractProjectDependencyMapper(net.sf.hibernate.SessionFactory sessionFactory)
           
protected AbstractProjectDependencyMapper(net.sf.hibernate.SessionFactory sessionFactory, PlanDao planDao, PlanDependencyManager planDependencyManager)
           
 
Method Summary
 void afterImportListItem(org.codehaus.staxmate.in.SMInputCursor inputCursor, java.util.List<PlanDependency> planDependencies, PlanDependency object, long objectIndex, net.sf.hibernate.Session session)
          Called after parser completes parsing all child nodes in list's element node.
protected  void saveDependency(PlanDependency planDependency)
           
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, getXmlElementNodeName, getXmlRootNodeName, importListXml, importListXml
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
commitClearSession, commitSession, createItemInstance, exportProperties, exportXml, exportXml, getSession, getSessionFactory, importProperties, 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
exportData, getXmlRootNodeName, importData
 
Methods inherited from interface com.atlassian.bamboo.migration.BambooRootMapper
isShouldExport
 
Methods inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
exportXml, importXml
 

Field Detail

planDao

protected PlanDao planDao

planDependencyManager

protected PlanDependencyManager planDependencyManager
Constructor Detail

AbstractProjectDependencyMapper

protected AbstractProjectDependencyMapper(net.sf.hibernate.SessionFactory sessionFactory,
                                          PlanDao planDao,
                                          PlanDependencyManager planDependencyManager)

AbstractProjectDependencyMapper

protected AbstractProjectDependencyMapper(net.sf.hibernate.SessionFactory sessionFactory)
Method Detail

saveDependency

protected void saveDependency(PlanDependency planDependency)

afterImportListItem

public void afterImportListItem(@NotNull
                                org.codehaus.staxmate.in.SMInputCursor inputCursor,
                                @NotNull
                                java.util.List<PlanDependency> planDependencies,
                                @NotNull
                                PlanDependency object,
                                long objectIndex,
                                @NotNull
                                net.sf.hibernate.Session session)
                         throws java.lang.Exception
Description copied from class: BambooStAXMappingListHelperAbstractImpl
Called after parser completes parsing all child nodes in list's element node.

Overrides:
afterImportListItem in class BambooStAXMappingListHelperAbstractImpl<PlanDependency>
Parameters:
inputCursor - cursor pointing to the list's element opening node
planDependencies - list of elements being imported
object - object that has been imported
objectIndex - one-based index of the object being parsed
session - Hibernate session object
Throws:
java.lang.Exception - when something went wrong


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.