Class AbstractProjectDependencyMapper
- java.lang.Object
-
- com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T,I>
-
- com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<PlanDependency,PlanDependency>
-
- com.atlassian.bamboo.migration.stream.build.AbstractProjectDependencyMapper
-
- All Implemented Interfaces:
BambooRootMapper
,BambooStAXMappingHelper<PlanDependency,PlanDependency>
,BambooStAXRootMapper
- Direct Known Subclasses:
ProjectDependencyMapper
public abstract class AbstractProjectDependencyMapper extends BambooStAXMappingListHelperAbstractImpl<PlanDependency,PlanDependency> implements BambooStAXRootMapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
BambooStAXMappingHelper.None
-
-
Field Summary
Fields Modifier and Type Field Description protected PlanDao
planDao
protected PlanDependencyManager
planDependencyManager
-
Fields inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
transactionOperations
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractProjectDependencyMapper(org.hibernate.SessionFactory sessionFactory, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
protected
AbstractProjectDependencyMapper(org.hibernate.SessionFactory sessionFactory, PlanDao planDao, PlanDependencyManager planDependencyManager, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull List<PlanDependency> planDependencies, @NotNull PlanDependency object, long objectIndex, @NotNull org.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, importListXmlInTransaction
-
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
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.BambooRootMapper
isShouldExport
-
Methods inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
exportXml, importXml
-
Methods inherited from interface com.atlassian.bamboo.migration.BambooStAXRootMapper
exportData, getXmlRootNodeName, importData
-
-
-
-
Field Detail
-
planDao
protected PlanDao planDao
-
planDependencyManager
protected PlanDependencyManager planDependencyManager
-
-
Constructor Detail
-
AbstractProjectDependencyMapper
protected AbstractProjectDependencyMapper(org.hibernate.SessionFactory sessionFactory, PlanDao planDao, PlanDependencyManager planDependencyManager, @NotNull @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
-
AbstractProjectDependencyMapper
protected AbstractProjectDependencyMapper(org.hibernate.SessionFactory sessionFactory, @NotNull @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
-
-
Method Detail
-
saveDependency
protected void saveDependency(PlanDependency planDependency)
-
afterImportListItem
public void afterImportListItem(@NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull @NotNull List<PlanDependency> planDependencies, @NotNull @NotNull PlanDependency object, long objectIndex, @NotNull @NotNull org.hibernate.Session session) throws Exception
Description copied from class:BambooStAXMappingListHelperAbstractImpl
Called after parser completes parsing all child nodes in list's element node.- Overrides:
afterImportListItem
in classBambooStAXMappingListHelperAbstractImpl<PlanDependency,PlanDependency>
- Parameters:
inputCursor
- cursor pointing to the list's element opening nodeplanDependencies
- list of elements being importedobject
- object that has been importedobjectIndex
- one-based index of the object being parsedsession
- Hibernate session object- Throws:
Exception
- when something went wrong
-
-