Package org.nuclos.api.context
Interface UpdateContext
- All Superinterfaces:
LogContext,RuleContext
UpdateContext represents the context used in an Update-Rule, Update and UpdateFinal
It contains the BusinessObject that has been changed at runtime and several functions like caching
- Author:
- Matthias Reichart
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends BusinessObject>
TgetBusinessObject(Class<T> t) This method returns theBusinessObjectcontaining the entry-data that has been changed during runtime.<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObjectcontaining the entry-data that has been changed during runtime.booleanReturns true if update is called from a collective process ("Sammelbearbeitung").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
-
getBusinessObject
This method returns theBusinessObjectcontaining the entry-data that has been changed during runtime.- Parameters:
t- Classtype being aBusinessObject- Returns:
BusinessObject
-
getGenericBusinessObject
This method returns theGenericBusinessObjectcontaining the entry-data that has been changed during runtime.- Parameters:
t- Classtype being aGenericBusinessObject- Returns:
GenericBusinessObjectextendingGenericBusinessObject- Throws:
BusinessException
-
isCollectiveProcessing
boolean isCollectiveProcessing()Returns true if update is called from a collective process ("Sammelbearbeitung").- Returns:
- true if update is called from a collective process ("Sammelbearbeitung")
-
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-
-