public abstract class AbstractChainMapper<T extends Chain> extends AbstractPlanMapper<T>
BambooStAXMappingHelper.None
Modifier and Type | Field and Description |
---|---|
protected static String |
PLAN_XML_SPECS_SOURCE |
authorMap, labelMap, labels, notificationSetMapper, planBuildNumbers, planRepositoryLinkDao, planVcsRevisionHistoryDao, project, repositoryDefinitionDao
transactionOperations
Constructor and Description |
---|
AbstractChainMapper(org.hibernate.SessionFactory sessionFactory,
Project project,
Map<Long,Label> labelMap,
Map<Long,ExtendedAuthor> authorMap,
PlanDao planDao,
ResultsSummaryManager resultsSummaryManager,
BuildResultsSummaryDao buildResultSummaryDao,
BuildResultWarningSummaryDao buildResultWarningSummaryDao,
PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao,
RepositoryDefinitionDao repositoryDefinitionDao,
PlanRepositoryLinkDao planRepositoryLinkDao,
NotificationSetMapper notificationSetMapper,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
void |
afterImportListItem(org.codehaus.staxmate.in.SMInputCursor inputCursor,
List<T> list,
T object,
long objectIndex,
org.hibernate.Session session)
Called after parser completes parsing all child nodes in list's element node.
|
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
T plan,
org.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties.
|
protected void |
importProperties(T chain,
org.codehaus.staxmate.in.SMInputCursor cursor,
org.hibernate.Session session)
Import properties to the object.
|
createItemInstance, createPlanEntity
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, getXmlElementNodeName, getXmlRootNodeName, importListXml, importListXml, importListXmlInTransaction
exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, isShouldExport, saveBambooObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportXml, importXml
protected static final String PLAN_XML_SPECS_SOURCE
public AbstractChainMapper(@NotNull org.hibernate.SessionFactory sessionFactory, @NotNull Project project, @NotNull Map<Long,Label> labelMap, @NotNull Map<Long,ExtendedAuthor> authorMap, @NotNull PlanDao planDao, ResultsSummaryManager resultsSummaryManager, BuildResultsSummaryDao buildResultSummaryDao, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao, @NotNull RepositoryDefinitionDao repositoryDefinitionDao, @NotNull PlanRepositoryLinkDao planRepositoryLinkDao, @NotNull NotificationSetMapper notificationSetMapper, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
protected void exportProperties(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull T plan, @NotNull org.hibernate.Session session, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingHelperAbstractImpl
exportProperties
in class AbstractPlanMapper<T extends Chain>
outputElement
- the parent nodeplan
- object being exportedsession
- Hibernate session objectException
- when something went wrongprotected void importProperties(@NotNull T chain, @NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class AbstractPlanMapper<T extends Chain>
chain
- object being importedcursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session objectException
- when something went wrongpublic void afterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull List<T> list, @NotNull T object, long objectIndex, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingListHelperAbstractImpl
afterImportListItem
in class BambooStAXMappingListHelperAbstractImpl<T extends Chain,T extends Chain>
inputCursor
- cursor pointing to the list's element opening nodelist
- list of elements being importedobject
- object that has been importedobjectIndex
- one-based index of the object being parsedsession
- Hibernate session objectException
- when something went wrongCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.