public interface GenerateContext extends RuleContext
GenerateContext
represents the context used in Generation-Rule
It contains the TargetObjects and the SourceObjects and several functions like caching
RuleContext
Modifier and Type | Method and Description |
---|---|
<T extends GenericBusinessObject> |
getParameterGenericObject(java.lang.Class<T> t)
This method returns a
GenericBusinessObject that represent the Parameter |
BusinessObject |
getParameterObject()
This method returns the ParameterObject
|
<T extends GenericBusinessObject> |
getSourceGenericObject(java.lang.Class<T> t)
This method returns the
GenericBusinessObject 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> |
getSourceGenericObjects(java.lang.Class<T> t)
This method returns a list of
GenericBusinessObject s that represent the Sources |
<T extends BusinessObject> |
getSourceObject(java.lang.Class<T> t)
This method returns a
BusinessObject 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> |
getSourceObjects(java.lang.Class<T> t)
This method returns a list of
BusinessObject that represent the Sources |
<T extends GenericBusinessObject> |
getTargetGenericObject(java.lang.Class<T> t)
This method returns a
GenericBusinessObject that represent the Target |
<T extends BusinessObject> |
getTargetObject(java.lang.Class<T> t)
This method returns a
BusinessObject that represent the Target |
void |
notify(java.lang.String message,
BusinessObject source)
Creates a message with a
Priority . |
void |
notify(java.lang.String message,
Priority prio,
BusinessObject source)
Creates a message with a
Priority . |
addContextCacheValue, getContextCacheValue, getLanguage, getUser, removeContextCacheValue
log, logError, logWarn
<T extends BusinessObject> T getSourceObject(java.lang.Class<T> t) throws BusinessException
BusinessObject
that represents the source; if there is more than
one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t)
insteadBusinessException
<T extends BusinessObject> java.util.Collection<T> getSourceObjects(java.lang.Class<T> t)
BusinessObject
that represent the Sources<T extends BusinessObject> T getTargetObject(java.lang.Class<T> t)
BusinessObject
that represent the TargetBusinessObject getParameterObject()
<T extends GenericBusinessObject> T getSourceGenericObject(java.lang.Class<T> t) throws BusinessException
GenericBusinessObject
that represents the source; if there is more than
one SourceObject a BusinessException will be thrown; In this case use getSourceObjects(Class<T> t)
insteadBusinessException
<T extends GenericBusinessObject> java.util.Collection<T> getSourceGenericObjects(java.lang.Class<T> t) throws BusinessException
GenericBusinessObject
s that represent the SourcesBusinessException
<T extends GenericBusinessObject> T getTargetGenericObject(java.lang.Class<T> t) throws BusinessException
GenericBusinessObject
that represent the TargetBusinessException
<T extends GenericBusinessObject> T getParameterGenericObject(java.lang.Class<T> t) throws BusinessException
GenericBusinessObject
that represent the ParameterBusinessException
void notify(java.lang.String message, Priority prio, BusinessObject source)
Priority
. 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.void notify(java.lang.String message, BusinessObject source)
Priority
. 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.Copyright © 2024. All rights reserved.