public class RssDeploymentProjectPermissionsMapper extends BambooStAXMappingListHelperAbstractImpl<Long,Long>
BambooStAXMappingHelper.None
transactionOperations
Modifier | Constructor and Description |
---|---|
protected |
RssDeploymentProjectPermissionsMapper(DeploymentsImportContext deploymentsImportContext,
org.hibernate.SessionFactory sessionFactory,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
void |
afterImportListItem(org.codehaus.staxmate.in.SMInputCursor inputCursor,
List<Long> list,
Long repositoryId,
long objectIndex,
org.hibernate.Session session)
Called after parser completes parsing all child nodes in list's element node.
|
protected Long |
createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
Creates empty instance of the imported object
|
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
Long permission,
org.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties.
|
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, getXmlElementNodeName, getXmlRootNodeName, importListXml, importListXml, importListXmlInTransaction
exportXml, exportXml, getSession, getSessionFactory, importProperties, importXml, importXml, isShouldExport, saveBambooObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportXml, importXml
protected RssDeploymentProjectPermissionsMapper(DeploymentsImportContext deploymentsImportContext, org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.support.TransactionOperations transactionOperations)
@NotNull protected Long createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception
BambooStAXMappingHelperAbstractImpl
createItemInstance
in class BambooStAXMappingHelperAbstractImpl<Long,Long>
inputCursor
- input cursor that points to the parent node containing object propertiesXMLStreamException
- when something went wrongException
protected void exportProperties(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull Long permission, @NotNull org.hibernate.Session session, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingHelperAbstractImpl
exportProperties
in class BambooStAXMappingHelperAbstractImpl<Long,Long>
outputElement
- the parent nodepermission
- object being exportedsession
- Hibernate session objectException
- when something went wrongpublic void afterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull List<Long> list, @NotNull Long repositoryId, long objectIndex, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingListHelperAbstractImpl
afterImportListItem
in class BambooStAXMappingListHelperAbstractImpl<Long,Long>
inputCursor
- cursor pointing to the list's element opening nodelist
- list of elements being importedrepositoryId
- 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.