Class CapabilitySetMapper
java.lang.Object
com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T,I>
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
ModifierConstructorDescriptionprotected
CapabilitySetMapper
(org.hibernate.SessionFactory sessionFactory, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull Capability
createItemInstance
(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 String
Returns 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, importListXmlInTransaction
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
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.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:BambooStAXMappingHelper
Returns local name of the XML parent node that will contain exported/imported object's properties- Specified by:
getXmlRootNodeName
in interfaceBambooStAXMappingHelper<Capability,
Capability> - Overrides:
getXmlRootNodeName
in classBambooStAXMappingListHelperAbstractImpl<Capability,
Capability> - Returns:
- local name of the XML parent node
-
getXmlElementNodeName
- Overrides:
getXmlElementNodeName
in classBambooStAXMappingListHelperAbstractImpl<Capability,
Capability>
-
createItemInstance
@NotNull protected @NotNull Capability createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception Description copied from class:BambooStAXMappingHelperAbstractImpl
Creates empty instance of the imported object- Specified by:
createItemInstance
in classBambooStAXMappingHelperAbstractImpl<Capability,
Capability> - Parameters:
inputCursor
- input cursor that points to the parent node containing object properties- Returns:
- empty instance of the imported object
- Throws:
XMLStreamException
- when something went wrongException
-
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:BambooStAXMappingListHelperAbstractImpl
Exports a collection to the XML. If collection is empty collection root not will not be created.- Overrides:
exportListXml
in classBambooStAXMappingListHelperAbstractImpl<Capability,
Capability> - Parameters:
session
- Hibernate session objectoutputElement
- parent node for collection root nodelist
- collection to be exported- Throws:
Exception
- when something went wrong
-