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 theBusinessObject
containing the entry-data that has been changed during runtime.<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObject
containing the entry-data that has been changed during runtime.boolean
Returns true if update is called from a collective process ("Sammelbearbeitung").void
Creates a message with aPriority
.void
Creates a message with aPriority
.Methods inherited from interface org.nuclos.api.context.LogContext
log, logError, logWarn
Methods inherited from interface org.nuclos.api.context.RuleContext
addContextCacheValue, getContextCacheValue, getLanguage, getUser, removeContextCacheValue
-
Method Details
-
getBusinessObject
This method returns theBusinessObject
containing the entry-data that has been changed during runtime.- Parameters:
t
- Classtype being aBusinessObject
- Returns:
BusinessObject
-
getGenericBusinessObject
This method returns theGenericBusinessObject
containing the entry-data that has been changed during runtime.- Parameters:
t
- Classtype being aGenericBusinessObject
- Returns:
GenericBusinessObject
extendingGenericBusinessObject
- 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
-
-