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
Constructors Modifier Constructor Description protectedCapabilitySetMapper(org.hibernate.SessionFactory sessionFactory, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @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 StringgetXmlElementNodeName()@NotNull StringgetXmlRootNodeName()Returns local name of the XML parent node that will contain exported/imported object's properties-
Methods 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
-
-
-
-
Method Detail
-
getXmlRootNodeName
@NotNull public @NotNull String 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
@NotNull public @NotNull String 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:
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: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 exported- Throws:
Exception- when something went wrong
-
-