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 inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
transactionOperations
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionvoid
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 Details
-
planDao
-
planDependencyManager
-
-
Constructor Details
-
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 Details
-
saveDependency
-
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
-