com.atlassian.bamboo.migration.stream
Class ProjectChainMapper
java.lang.Object
com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T>
com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<Project>
com.atlassian.bamboo.migration.stream.AbstractProjectMapper
com.atlassian.bamboo.migration.stream.ProjectChainMapper
- All Implemented Interfaces:
- BambooStAXMappingHelper<Project>, BambooStAXRootMapper
public class ProjectChainMapper
- extends AbstractProjectMapper
Method Summary |
java.lang.String |
getXmlElementNodeName()
|
java.lang.String |
getXmlRootNodeName()
Returns local name of the XML parent node handled by this mapper |
protected void |
importProperties(Project project,
org.codehaus.staxmate.in.SMInputCursor inputCursor,
net.sf.hibernate.Session session)
Import properties to the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectChainMapper
public ProjectChainMapper(net.sf.hibernate.SessionFactory sessionFactory,
ProjectManager projectManager,
BuildResultsSummaryManager buildResultsSummaryManager,
ExtendedAuthorManager extendedAuthorManager,
LabelDao labelDao,
NotificationManager notificationManager,
PlanManager planManager,
BuildResultsSummaryDao buildResultsSummaryDao)
getXmlElementNodeName
@NotNull
public java.lang.String getXmlElementNodeName()
- Overrides:
getXmlElementNodeName
in class AbstractProjectMapper
getXmlRootNodeName
@NotNull
public java.lang.String getXmlRootNodeName()
- Description copied from interface:
BambooStAXRootMapper
- Returns local name of the XML parent node handled by this mapper
- Specified by:
getXmlRootNodeName
in interface BambooStAXMappingHelper<Project>
- Specified by:
getXmlRootNodeName
in interface BambooStAXRootMapper
- Overrides:
getXmlRootNodeName
in class AbstractProjectMapper
- Returns:
- local name of the XML parent node
importProperties
protected void importProperties(@NotNull
Project project,
@NotNull
org.codehaus.staxmate.in.SMInputCursor inputCursor,
@NotNull
net.sf.hibernate.Session session)
throws java.lang.Exception
- Description copied from class:
BambooStAXMappingHelperAbstractImpl
- Import properties to the object.
Due to nature of XML parsing this method is called for each child node in the node that was passed to importXml method
- Overrides:
importProperties
in class AbstractProjectMapper
- Parameters:
project
- object being importedinputCursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session object
- Throws:
java.lang.Exception
- when something went wrong
Copyright © 2010 Atlassian. All Rights Reserved.