Class ReadonlyProcessScope
java.lang.Object
com.aquima.interactions.portal.model.process.wrapper.ProcessScopeDelegate
com.aquima.interactions.portal.model.process.wrapper.ReadonlyProcessScope
- All Implemented Interfaces:
IProcessScope
Decorator class that wraps a process scope to make it immutable (read-only).
- Since:
- 7.1
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorDescriptionReadonlyProcessScope
(IProcessScope processScope) Constructs a read-only wrapper for the specified process scope. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Always throws an InvalidStateException: No modifications allowed on a read only process scope.void
activateProcessTask
(long id) Always throws an InvalidStateException: No modifications allowed on a read only process scope.This method returns a readonly process engine.void
setCurrentUser
(IUserData currentUser) Always throws an InvalidStateException: No modifications allowed on a read only process scope.Methods inherited from class com.aquima.interactions.portal.model.process.wrapper.ProcessScopeDelegate
activateProcessCase, addAffectedCases, clearActiveProcessCase, clearActiveProcessTask, clearAffectedCases, getActiveProcessCase, getActiveProcessTask, getAffectedCases
-
Constructor Details
-
ReadonlyProcessScope
Constructs a read-only wrapper for the specified process scope.- Parameters:
processScope
- The process scope that should be wrapped in this read-only decorator.
-
-
Method Details
-
activateProcessCase
Always throws an InvalidStateException: No modifications allowed on a read only process scope.- Parameters:
id
- The id of the process case to activate, may not be null.
-
activateProcessTask
public void activateProcessTask(long id) Always throws an InvalidStateException: No modifications allowed on a read only process scope.- Specified by:
activateProcessTask
in interfaceIProcessScope
- Overrides:
activateProcessTask
in classProcessScopeDelegate
- Parameters:
id
- The id of the process task to activate, may not be null.
-
getProcessEngine
This method returns a readonly process engine.- Specified by:
getProcessEngine
in interfaceIProcessScope
- Overrides:
getProcessEngine
in classProcessScopeDelegate
- Returns:
- The readonly process engine.
-
setCurrentUser
Always throws an InvalidStateException: No modifications allowed on a read only process scope.- Parameters:
currentUser
- The current user, may not be null.
-