public class ChainBranchMapper extends AbstractChainMapper<ChainBranch>
BambooStAXMappingHelper.None
Modifier and Type | Field and Description |
---|---|
static String |
XML_BRANCH_COMMIT_INFORMATION |
static String |
XML_LINKED_JIRA_ISSUE |
static String |
XML_NODE |
static String |
XML_REMOTE_JIRA_LINK_REQUIRED |
static String |
XML_ROOT |
PLAN_XML_SPECS_SOURCE
authorMap, labelMap, labels, notificationSetMapper, planBuildNumbers, planRepositoryLinkDao, planVcsRevisionHistoryDao, project, repositoryDefinitionDao
transactionOperations
Constructor and Description |
---|
ChainBranchMapper(org.hibernate.SessionFactory sessionFactory,
Project project,
Map<Long,Label> labelMap,
Map<Long,ExtendedAuthor> authorMap,
PlanDao planDao,
ResultsSummaryManager resultsSummaryManager,
BuildResultsSummaryDao buildResultSummaryDao,
PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao,
RepositoryDefinitionDao repositoryDefinitionDao,
PlanRepositoryLinkDao planRepositoryLinkDao,
NotificationSetMapper notificationSetMapper,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
ChainBranch |
createPlanEntity() |
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
ChainBranch plan,
org.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties.
|
String |
getXmlElementNodeName()
Returns local name of list element node
|
String |
getXmlRootNodeName()
Returns local name of the XML parent node that will contain exported/imported object's properties
|
protected void |
importProperties(ChainBranch chain,
org.codehaus.staxmate.in.SMInputCursor inputCursor,
org.hibernate.Session session)
Import properties to the object.
|
afterImportListItem
createItemInstance
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, importListXml, importListXml, importListXmlInTransaction
exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, isShouldExport, saveBambooObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportXml, importXml
public static final String XML_ROOT
public static final String XML_NODE
public static final String XML_BRANCH_COMMIT_INFORMATION
public static final String XML_LINKED_JIRA_ISSUE
public static final String XML_REMOTE_JIRA_LINK_REQUIRED
public ChainBranchMapper(@NotNull org.hibernate.SessionFactory sessionFactory, @NotNull Project project, @NotNull Map<Long,Label> labelMap, @NotNull Map<Long,ExtendedAuthor> authorMap, PlanDao planDao, ResultsSummaryManager resultsSummaryManager, BuildResultsSummaryDao buildResultSummaryDao, PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao, @NotNull RepositoryDefinitionDao repositoryDefinitionDao, @NotNull PlanRepositoryLinkDao planRepositoryLinkDao, @NotNull NotificationSetMapper notificationSetMapper, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
public ChainBranch createPlanEntity()
createPlanEntity
in class AbstractPlanMapper<ChainBranch>
@NotNull public String getXmlRootNodeName()
BambooStAXMappingHelper
getXmlRootNodeName
in interface BambooStAXMappingHelper<ChainBranch>
getXmlRootNodeName
in class BambooStAXMappingListHelperAbstractImpl<ChainBranch>
@NotNull public String getXmlElementNodeName()
getXmlElementNodeName
in class BambooStAXMappingListHelperAbstractImpl<ChainBranch>
protected void exportProperties(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull ChainBranch plan, @NotNull org.hibernate.Session session, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingHelperAbstractImpl
exportProperties
in class AbstractChainMapper<ChainBranch>
outputElement
- the parent nodeplan
- object being exportedsession
- Hibernate session objectException
- when something went wrongprotected void importProperties(@NotNull ChainBranch chain, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class AbstractChainMapper<ChainBranch>
chain
- object being importedinputCursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session objectException
- when something went wrongCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.