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:
BambooStAXMappingHelper<PlanDependency>, BambooStAXRootMapper
Direct Known Subclasses:
LegacyProjectDependencyMapper, ProjectDependencyMapper

public abstract class AbstractProjectDependencyMapper
extends BambooStAXMappingListHelperAbstractImpl<PlanDependency>
implements BambooStAXRootMapper


Field Summary
protected  PlanDependencyManager planDependencyManager
           
protected  PlanManager planManager
           
 
Constructor Summary
protected AbstractProjectDependencyMapper(net.sf.hibernate.SessionFactory sessionFactory)
           
protected AbstractProjectDependencyMapper(net.sf.hibernate.SessionFactory sessionFactory, PlanManager planManager, 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.
 java.lang.String getXmlElementNodeName()
          Returns local name of list element node
protected  void saveDependency(PlanDependency planDependency)
           
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, importListXml, importListXml, setListImportStrategy
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
commitClearSession, commitSession, createItemInstance, exportProperties, exportXml, exportXml, getSession, getSessionFactory, importProperties, importXml, importXml, 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.BambooStAXMappingHelper
exportXml, getXmlRootNodeName, importXml
 

Field Detail

planManager

protected PlanManager planManager

planDependencyManager

protected PlanDependencyManager planDependencyManager
Constructor Detail

AbstractProjectDependencyMapper

protected AbstractProjectDependencyMapper(net.sf.hibernate.SessionFactory sessionFactory,
                                          PlanManager planManager,
                                          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

getXmlElementNodeName

@NotNull
public java.lang.String getXmlElementNodeName()
Returns local name of list element node

Returns:
local name of list element node


Copyright © 2011 Atlassian. All Rights Reserved.