|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.workflow.state.ActivityStateManagerImpl
@Service(value="blActivityStateManager") public class ActivityStateManagerImpl
| Field Summary | |
|---|---|
protected Map<String,List<org.broadleafcommerce.core.workflow.state.ActivityStateManagerImpl.StateContainer>> |
stateMap
|
| Constructor Summary | |
|---|---|
ActivityStateManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
clearAllState()
Remove all previously registered RollbackHandlers for the current workflow |
void |
clearRegionState(String region)
Remove all previously registered Rollbackhandlers for the current workflow labelled with the specified region |
protected RollbackStateLocal |
getRollbackStateLocal()
|
static ActivityStateManager |
getStateManager()
|
void |
init()
|
void |
registerState(Activity activity,
ProcessContext processContext,
RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
Register a RollbackHandler instance and some arbitrary state items with the StateManager. |
void |
registerState(Activity activity,
ProcessContext processContext,
String region,
RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
Register a RollbackHandler instance and some arbitrary state items with the StateManager. |
void |
registerState(RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
Register a RollbackHandler instance and some arbitrary state items with the StateManager. |
void |
rollbackAllState()
Cause the StateManager to call all registered RollbackHandlers |
void |
rollbackRegionState(String region)
Cause the StateManager to call all registered RollbackHandlers in the specified region. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,List<org.broadleafcommerce.core.workflow.state.ActivityStateManagerImpl.StateContainer>> stateMap
| Constructor Detail |
|---|
public ActivityStateManagerImpl()
| Method Detail |
|---|
public static ActivityStateManager getStateManager()
@PostConstruct public void init()
public void clearAllState()
ActivityStateManager
clearAllState in interface ActivityStateManagerpublic void clearRegionState(String region)
ActivityStateManager
clearRegionState in interface ActivityStateManagerregion - The region to which the scope of removal is limited
public void registerState(RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
ActivityStateManager
registerState in interface ActivityStateManagerrollbackHandler - A RollbackHandler instance that should be executed by the StateManagerstateItems - Configuration items for the RollbackHandler (can be null)
public void registerState(Activity activity,
ProcessContext processContext,
RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
ActivityStateManager
registerState in interface ActivityStateManageractivity - the current activity associated with the RollbackHandler (can be null)processContext - the current ProcessContext associated with the activity (can be null)rollbackHandler - A RollbackHandler instance that should be executed by the StateManagerstateItems - Configuration items for the RollbackHandler (can be null)
public void registerState(Activity activity,
ProcessContext processContext,
String region,
RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
ActivityStateManager
registerState in interface ActivityStateManageractivity - the current activity associated with the RollbackHandler (can be null)processContext - the current ProcessContext associated with the activity (can be null)region - Label this rollback handler with a particular name.rollbackHandler - A RollbackHandler instance that should be executed by the StateManagerstateItems - Configuration items for the RollbackHandler (can be null)
public void rollbackAllState()
throws RollbackFailureException
ActivityStateManager
rollbackAllState in interface ActivityStateManagerRollbackFailureException - if the rollback fails for some reason
public void rollbackRegionState(String region)
throws RollbackFailureException
ActivityStateManager
rollbackRegionState in interface ActivityStateManagerRollbackFailureException - if the rollback fails for some reasonprotected RollbackStateLocal getRollbackStateLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||