Package lumis.content.core
Class ContentAdminActivityGenerationTransactionObserver
- java.lang.Object
-
- lumis.portal.transaction.AbstractTransactionObserver
-
- lumis.content.core.ContentAdminActivityGenerationTransactionObserver
-
- All Implemented Interfaces:
ITransactionObserver
public class ContentAdminActivityGenerationTransactionObserver extends AbstractTransactionObserver
Transaction observer that generatesactivities
for aContentLocale
with target audience of its content administrators.- Since:
- 8.2.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
attachToTransactionIfNecessary(ContentLocale contentLocale, java.lang.String actionId)
If necessary, attach to the transaction an observer that will generate the activity of the content's administrators.boolean
beforeCommit()
Called by the observed transaction just before the commit operation.-
Methods inherited from class lumis.portal.transaction.AbstractTransactionObserver
afterCommit, afterRollback, beforeRollback
-
-
-
-
Method Detail
-
attachToTransactionIfNecessary
public static void attachToTransactionIfNecessary(ContentLocale contentLocale, java.lang.String actionId)
If necessary, attach to the transaction an observer that will generate the activity of the content's administrators.- Parameters:
contentLocale
- the content locale.actionId
- the identifier of theaction
of the activity to be generated.- Since:
- 8.2.0
-
beforeCommit
public boolean beforeCommit() throws PortalException
Description copied from interface:ITransactionObserver
Called by the observed transaction just before the commit operation.- Specified by:
beforeCommit
in interfaceITransactionObserver
- Overrides:
beforeCommit
in classAbstractTransactionObserver
- Returns:
- true to indicate success; false to indicate fail, and cause the transaction to cancel commiting.
- Throws:
PortalException
-
-