Package org.nuclos.api.context
Interface InsertContext
- All Superinterfaces:
LogContext
,RuleContext
InsertContext
represents the context used in Insert-Rule, Insert and InsertFinal
It contains the BusinessObject
of the new entry 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 to be saved.<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObject
containing the entry-data that has to be saved.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 to be saved.- Parameters:
t
- beingBusinessObject
- Returns:
BusinessObject
-
getGenericBusinessObject
This method returns theGenericBusinessObject
containing the entry-data that has to be saved.- Parameters:
t
- Classtype being aGenericBusinessObject
- Returns:
GenericBusinessObject
extendingGenericBusinessObject
- 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
-
-