Package lumis.portal.transaction
Interface ITransactionObserver
-
- All Known Implementing Classes:
AbstractMessageAction.AfterRollbackSetErrorStatus
,AbstractTransactionObserver
,ContentAdminActivityGenerationTransactionObserver
,ContentPublicationActivityGenerationTransactionObserver
,FileCopyTransactionObserver
@StableMinor(version="14.0", sinceVersion="4.0") public interface ITransactionObserver
Observer that wants to be notificated about anITransaction
's events.Instances of this interface that need to be stateful should not be shared between multiple transactions.
- Since:
- 4.0.8
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
- See Also:
AbstractTransactionObserver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
afterCommit()
Called by the observed transaction just after the commit operation.void
afterRollback()
Called by the observed transaction just after the rollback operation.boolean
beforeCommit()
Called by the observed transaction just before the commit operation.void
beforeRollback()
Called by the observed transaction just before the rollback operation.
-
-
-
Method Detail
-
beforeCommit
boolean beforeCommit() throws PortalException
Called by the observed transaction just before the commit operation.- Returns:
- true to indicate success; false to indicate fail, and cause the transaction to cancel commiting.
- Throws:
PortalException
- Since:
- 4.0.8
-
afterCommit
void afterCommit() throws PortalException
Called by the observed transaction just after the commit operation.- Throws:
PortalException
- Since:
- 4.0.8
-
beforeRollback
void beforeRollback() throws PortalException
Called by the observed transaction just before the rollback operation.- Throws:
PortalException
- Since:
- 4.0.8
-
afterRollback
void afterRollback() throws PortalException
Called by the observed transaction just after the rollback operation.- Throws:
PortalException
- Since:
- 4.0.8
-
-