Package org.nuclos.api.context
Interface GenerateContext
- All Superinterfaces:
LogContext,RuleContext
GenerateContext represents the context used in Generation-Rule
It contains the TargetObjects and the SourceObjects and several functions like caching
- Author:
- Matthias Reichart
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends GenericBusinessObject>
TThis method returns aGenericBusinessObjectthat represent the ParameterThis method returns the ParameterObject<T extends GenericBusinessObject>
TgetSourceGenericObject(Class<T> t) This method returns theGenericBusinessObjectthat represents the source; if there is more than one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t) instead<T extends GenericBusinessObject>
Collection<T>getSourceGenericObjects(Class<T> t) This method returns a list ofGenericBusinessObjects that represent the Sources<T extends BusinessObject>
TgetSourceObject(Class<T> t) This method returns aBusinessObjectthat represents the source; if there is more than one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t) instead<T extends BusinessObject>
Collection<T>getSourceObjects(Class<T> t) This method returns a list ofBusinessObjectthat represent the Sources<T extends GenericBusinessObject>
TgetTargetGenericObject(Class<T> t) This method returns aGenericBusinessObjectthat represent the Target<T extends BusinessObject>
TgetTargetObject(Class<T> t) This method returns aBusinessObjectthat represent the Targetvoidnotify(String message, BusinessObject source) Creates a message with aPriority.voidnotify(String message, Priority prio, BusinessObject source) Creates 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
-
getSourceObject
This method returns aBusinessObjectthat represents the source; if there is more than one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t) instead- Throws:
BusinessException
-
getSourceObjects
This method returns a list ofBusinessObjectthat represent the Sources -
getTargetObject
This method returns aBusinessObjectthat represent the Target -
getParameterObject
BusinessObject getParameterObject()This method returns the ParameterObject -
getSourceGenericObject
This method returns theGenericBusinessObjectthat represents the source; if there is more than one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t) instead- Throws:
BusinessException
-
getSourceGenericObjects
<T extends GenericBusinessObject> Collection<T> getSourceGenericObjects(Class<T> t) throws BusinessException This method returns a list ofGenericBusinessObjects that represent the Sources- Throws:
BusinessException
-
getTargetGenericObject
This method returns aGenericBusinessObjectthat represent the Target- Throws:
BusinessException
-
getParameterGenericObject
This method returns aGenericBusinessObjectthat represent the Parameter- Throws:
BusinessException
-
notify
Creates a message with aPriority. The message is displayed in the notification dialog in nuclos. The target of the current generation is stored inside the context. The source must be set by the user. Please check class Priority to get more information about the priority-handling. -
notify
Creates a message with aPriority. The message is displayed in the notification dialog in nuclos as a message with priority 'normal'. The target of the current generation is stored inside the context. The source must be set by the user.
-