Package org.nuclos.api.context
Interface DeleteContext
- All Superinterfaces:
LogContext
,RuleContext
DeleteContext
represents the context used in Deletion-Rule
It contains the BusinessObject
to delete 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 deleted.<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObject
containing the entry-data that has to be deleted.boolean
This method returns wether the deletion is logical or physicalvoid
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 deleted.- Parameters:
t
- Classtype being aBusinessObject
- Returns:
BusinessObject
-
getGenericBusinessObject
This method returns theGenericBusinessObject
containing the entry-data that has to be deleted.- Parameters:
t
- Classtype being aGenericBusinessObject
- Returns:
GenericBusinessObject
extendingGenericBusinessObject
- Throws:
BusinessException
-
isLogical
boolean isLogical()This method returns wether the deletion is logical or physical- Returns:
- true or false
-
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
-
-