Package org.nuclos.api.context
Interface StateChangeContext
- All Superinterfaces:
LogContext,RuleContext
StateChangeContext represents the context used in StateChange-Rule, StateChange and StateChangeFinal
It contains the TargetState and the SourceState and several functions like caching
- Author:
- Matthias Reichart
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends Stateful>
TgetBusinessObject(Class<T> t) This method returns theBusinessObjectthat State should be changed<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObjectthat State should be changedThis method returns the state that has to be changedDeprecated.Deprecated.use methodgetSourceState()This method returns the state the user wants to change toDeprecated.use methodgetTargetState()Deprecated.use methodgetTargetState()voidCreates a message with aPriority.voidCreates a message with aPriority.Methods inherited from interface org.nuclos.api.context.LogContext
log, logError, logWarnMethods inherited from interface org.nuclos.api.context.RuleContext
addContextCacheValue, getContextCacheValue, getLanguage, getLocale, getUser, removeContextCacheValue
-
Method Details
-
getSourceStateId
UID getSourceStateId()Deprecated.use methodgetSourceState()This method returns the state uid that has to be changed- Returns:
- State
-
getSourceState
State getSourceState()This method returns the state that has to be changed- Returns:
- State
-
getSourceStateNumber
Deprecated.use methodgetSourceState()This method returns the state number that has to be changed- Returns:
- State
-
getTargetStateId
UID getTargetStateId()Deprecated.use methodgetTargetState()This method returns the state id the user wants to change to -
getTargetState
State getTargetState()This method returns the state the user wants to change to -
getTargetStateNumber
Deprecated.use methodgetTargetState()This method returns the state number the user wants to change to- Returns:
-
getBusinessObject
This method returns theBusinessObjectthat State should be changed- Parameters:
t- Classtype being aStateful- Returns:
BusinessObjectextendingStateful
-
getGenericBusinessObject
This method returns theGenericBusinessObjectthat State should be changed- Parameters:
t- Classtype being aGenericBusinessObject- Returns:
GenericBusinessObjectextendingGenericBusinessObject- Throws:
BusinessException
-
notify
Creates a message with aPriority. The message is displayed in the notification dialog in nuclos. Please check class Priority to get more information about the priority-handling.- Parameters:
message-prio-
-
notify
Creates a message with aPriority. The message is displayed in the notification dialog in nuclos as a message with priority 'normal'. Please check class Priority to get more information about the priority-handling.- Parameters:
message-
-
getSourceState()