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 theBusinessObjectcontaining the entry-data that has to be saved.<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObjectcontaining the entry-data that has to be saved.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 to be saved.- Parameters:
 t- beingBusinessObject- Returns:
 BusinessObject
 - 
getGenericBusinessObject
This method returns theGenericBusinessObjectcontaining the entry-data that has to be saved.- 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-
 
 -