Class CapabilitySetMapper
java.lang.Object
com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<Capability,Capability>
com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<Capability,Capability>
com.atlassian.bamboo.migration.stream.CapabilitySetMapper
- All Implemented Interfaces:
BambooStAXMappingHelper<Capability,Capability>
- Direct Known Subclasses:
LocalCapabilitySetMapper,RemoteCapabilitySetMapper
public class CapabilitySetMapper
extends BambooStAXMappingListHelperAbstractImpl<Capability,Capability>
-
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
ConstructorsModifierConstructorDescriptionprotectedCapabilitySetMapper(org.hibernate.SessionFactory sessionFactory, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull CapabilitycreateItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) Creates empty instance of the imported object<E extends Capability>
voidexportListXml(@NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull Iterable<E> list, ExportDetailsBean exportDetailsBean) Exports a collection to the XML.@NotNull String@NotNull StringReturns local name of the XML parent node that will contain exported/imported object's propertiesMethods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl
afterImportListItem, beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, flushIfNeeded, importListXml, importListXml, importListXmlInTransactionMethods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
exportProperties, exportXml, exportXml, getSession, getSessionFactory, importProperties, importXml, importXml, isShouldExport, saveBambooObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
exportXml, importXml
-
Constructor Details
-
CapabilitySetMapper
protected CapabilitySetMapper(org.hibernate.SessionFactory sessionFactory, @NotNull @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
-
-
Method Details
-
getXmlRootNodeName
Description copied from interface:BambooStAXMappingHelperReturns local name of the XML parent node that will contain exported/imported object's properties- Specified by:
getXmlRootNodeNamein interfaceBambooStAXMappingHelper<Capability,Capability> - Overrides:
getXmlRootNodeNamein classBambooStAXMappingListHelperAbstractImpl<Capability,Capability> - Returns:
- local name of the XML parent node
-
getXmlElementNodeName
- Overrides:
getXmlElementNodeNamein classBambooStAXMappingListHelperAbstractImpl<Capability,Capability>
-
createItemInstance
@NotNull protected @NotNull Capability createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception Description copied from class:BambooStAXMappingHelperAbstractImplCreates empty instance of the imported object- Specified by:
createItemInstancein classBambooStAXMappingHelperAbstractImpl<Capability,Capability> - Parameters:
inputCursor- input cursor that points to the parent node containing object properties- Returns:
- empty instance of the imported object
- Throws:
Exception
-
exportListXml
public <E extends Capability> void exportListXml(@NotNull @NotNull org.hibernate.Session session, @NotNull @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull @NotNull Iterable<E> list, ExportDetailsBean exportDetailsBean) throws Exception Description copied from class:BambooStAXMappingListHelperAbstractImplExports a collection to the XML. If collection is empty collection root not will not be created.- Overrides:
exportListXmlin classBambooStAXMappingListHelperAbstractImpl<Capability,Capability> - Parameters:
session- Hibernate session objectoutputElement- parent node for collection root nodelist- collection to be exportedexportDetailsBean-- Throws:
Exception- when something went wrong
-