public abstract class AbstractPlanMapper<T extends Plan> extends BambooStAXMappingListHelperAbstractImpl<T,T>
BambooStAXMappingHelper.None
Modifier and Type | Field and Description |
---|---|
protected Map<Long,ExtendedAuthor> |
authorMap |
protected Map<Long,Label> |
labelMap |
protected List<Labelling> |
labels |
protected NotificationSetMapper |
notificationSetMapper |
protected PlanBuildNumbersImpl |
planBuildNumbers |
protected PlanDao |
planDao |
protected PlanRepositoryLinkDao |
planRepositoryLinkDao |
protected PlanVcsRevisionHistoryStandaloneDao |
planVcsRevisionHistoryDao |
protected Project |
project |
protected RepositoryDefinitionDao |
repositoryDefinitionDao |
transactionOperations
Constructor and Description |
---|
AbstractPlanMapper(org.hibernate.SessionFactory sessionFactory,
BambooStAXListImportStrategy listImportStrategy,
Project project,
Map<Long,Label> labelMap,
Map<Long,ExtendedAuthor> authorMap,
PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao,
PlanDao planDao,
RepositoryDefinitionDao repositoryDefinitionDao,
PlanRepositoryLinkDao planRepositoryLinkDao,
NotificationSetMapper notificationSetMapper,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
protected T |
createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
Creates empty instance of the imported object
|
abstract T |
createPlanEntity() |
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
T plan,
org.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties.
|
protected void |
importProperties(T plan,
org.codehaus.staxmate.in.SMInputCursor cursor,
org.hibernate.Session session)
Import properties to the object.
|
afterImportListItem, 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 final Project project
protected final Map<Long,ExtendedAuthor> authorMap
protected final NotificationSetMapper notificationSetMapper
protected final PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao
protected final PlanDao planDao
protected final RepositoryDefinitionDao repositoryDefinitionDao
protected final PlanRepositoryLinkDao planRepositoryLinkDao
protected PlanBuildNumbersImpl planBuildNumbers
public AbstractPlanMapper(@NotNull org.hibernate.SessionFactory sessionFactory, @NotNull BambooStAXListImportStrategy listImportStrategy, @NotNull Project project, @NotNull Map<Long,Label> labelMap, @NotNull Map<Long,ExtendedAuthor> authorMap, @NotNull PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao, @NotNull PlanDao planDao, @NotNull RepositoryDefinitionDao repositoryDefinitionDao, @NotNull PlanRepositoryLinkDao planRepositoryLinkDao, @NotNull NotificationSetMapper notificationSetMapper, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
public abstract T createPlanEntity()
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 BambooStAXMappingHelperAbstractImpl<T extends Plan,T extends Plan>
outputElement
- the parent nodeplan
- object being exportedsession
- Hibernate session objectException
- when something went wrongprotected void importProperties(@NotNull T plan, @NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class BambooStAXMappingHelperAbstractImpl<T extends Plan,T extends Plan>
plan
- object being importedcursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session objectException
- when something went wrong@NotNull protected T createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception
BambooStAXMappingHelperAbstractImpl
createItemInstance
in class BambooStAXMappingHelperAbstractImpl<T extends Plan,T extends Plan>
inputCursor
- input cursor that points to the parent node containing object propertiesXMLStreamException
- when something went wrongException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.