com.atlassian.bamboo.migration.stream
Class GroupMemberMapper
java.lang.Object
com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T>
com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<java.lang.String>
com.atlassian.bamboo.migration.stream.GroupMemberMapper
- All Implemented Interfaces:
- BambooStAXMappingHelper<java.lang.String>
public class GroupMemberMapper
- extends BambooStAXMappingListHelperAbstractImpl<java.lang.String>
Constructor Summary |
GroupMemberMapper(net.sf.hibernate.SessionFactory sessionFactory)
|
Method Summary |
protected java.lang.String |
createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
Creates empty instance of the imported object |
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
java.lang.String object,
net.sf.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties. |
java.lang.String |
getXmlElementNodeName()
|
java.lang.String |
getXmlRootNodeName()
Returns local name of the XML parent node that will contain exported/imported object's properties |
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl |
commitClearSession, commitSession, 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 |
GroupMemberMapper
public GroupMemberMapper(net.sf.hibernate.SessionFactory sessionFactory)
getXmlRootNodeName
@NotNull
public java.lang.String getXmlRootNodeName()
- Description copied from interface:
BambooStAXMappingHelper
- Returns local name of the XML parent node that will contain exported/imported object's properties
- Returns:
- local name of the XML parent node
getXmlElementNodeName
@NotNull
public java.lang.String getXmlElementNodeName()
createItemInstance
@NotNull
protected java.lang.String createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
throws java.lang.Exception
- Description copied from class:
BambooStAXMappingHelperAbstractImpl
- Creates empty instance of the imported object
- Specified by:
createItemInstance
in class BambooStAXMappingHelperAbstractImpl<java.lang.String>
- Parameters:
inputCursor
- input cursor that points to the parent node containing object properties
- Returns:
- empty instance of the imported object
- Throws:
javax.xml.stream.XMLStreamException
- when something went wrong
java.lang.Exception
exportProperties
protected void exportProperties(@NotNull
org.codehaus.staxmate.out.SMOutputElement outputElement,
@NotNull
java.lang.String object,
@NotNull
net.sf.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
throws java.lang.Exception
- Description copied from class:
BambooStAXMappingHelperAbstractImpl
- Export object properties.
Implementing classed should override this method to export custom properties.
- Overrides:
exportProperties
in class BambooStAXMappingHelperAbstractImpl<java.lang.String>
- Parameters:
outputElement
- the parent nodeobject
- object being exportedsession
- Hibernate session object
- Throws:
java.lang.Exception
- when something went wrong
Copyright © 2012 Atlassian. All Rights Reserved.