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 aGenericBusinessObject
that represent the ParameterThis method returns the ParameterObject<T extends GenericBusinessObject>
TgetSourceGenericObject
(Class<T> t) This method returns theGenericBusinessObject
that 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 ofGenericBusinessObject
s that represent the Sources<T extends BusinessObject>
TgetSourceObject
(Class<T> t) This method returns aBusinessObject
that 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 ofBusinessObject
that represent the Sources<T extends GenericBusinessObject>
TgetTargetGenericObject
(Class<T> t) This method returns aGenericBusinessObject
that represent the Target<T extends BusinessObject>
TgetTargetObject
(Class<T> t) This method returns aBusinessObject
that represent the Targetvoid
notify
(String message, BusinessObject source) Creates a message with aPriority
.void
notify
(String message, Priority prio, BusinessObject source) 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
-
getSourceObject
This method returns aBusinessObject
that 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 ofBusinessObject
that represent the Sources -
getTargetObject
This method returns aBusinessObject
that represent the Target -
getParameterObject
BusinessObject getParameterObject()This method returns the ParameterObject -
getSourceGenericObject
This method returns theGenericBusinessObject
that 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 ofGenericBusinessObject
s that represent the Sources- Throws:
BusinessException
-
getTargetGenericObject
This method returns aGenericBusinessObject
that represent the Target- Throws:
BusinessException
-
getParameterGenericObject
This method returns aGenericBusinessObject
that 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.
-