public class UserBehaviorRuleTaskCmdImpl extends TaskCommandImpl implements UserBehaviorRuleTaskCmd
Variable
has a type which is not one of the supported values
(CURRENTDATE, NVP, PARENTCATEGORY, REFERRAL, REFERRALNVP
). In this scenario,
the method getCustomVariableType()
will return the custom defined type.
The desired values specified by the Behavior Rule can be retrieved
from the method getRuleValues
. For the name
parameter
specified in the Variable
, the value from the current URL can be
retrieved with the method getCurrentValue
.comparison
value is not one of the supported values
(=, any, recordAll, containAll, start, end, contain
). In this scenario,
the method getCustomVariableType()
will return null. The desired values
specified by the Behavior Rule can be retrieved
from the method getRuleValues
and the actual value from the current request
can be retrieved from the method getCurrentValue
.getReturnValue
should return the entry from the behavior rule values that matched against the
current request. The complete definition of the Behavior Rule is available
from the other methods in this interface. The custom implementation should be
registered in the CMDREG database table.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName
Constructor and Description |
---|
UserBehaviorRuleTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
getCaseSensitiveMatch()
This method gets if the rule is configured to perform a case sensitive match.
|
java.lang.String |
getComparison()
This method gets the comparison method to be used.
|
java.lang.String |
getCurrentValue()
This method gets the value of the parameter in the current request which should be checked
against the values defined in the behavior rule.
|
java.lang.String |
getCustomVariableType()
This method gets the custom variable type defined.
|
java.lang.String |
getReferralUrl()
This method gets the referral URL associated with the current request.
|
java.lang.String |
getReturnValue()
This method gets the value from the rules values that matched.
|
java.util.List |
getRuleValues()
This method gets the list of strings which are the values defined in the behavior rule
for which to check for a match against the current request.
|
java.lang.String |
getTriggerParameters()
This method gets the trigger parameters associated with the current request.
|
java.util.Map |
getTriggerParametersMap()
This method gets the trigger parameters associated with the current request.
|
UserBehaviorRule |
getUserBehaviorRule()
This method gets the
UserBehaviorRule business object associated with
the behavior rule being evaluated. |
void |
setCaseSensitiveMatch(boolean newCaseSensitiveMatch)
This method sets if the rule is configured to perform a case sensitive match.
|
void |
setComparison(java.lang.String newComparison)
This method sets the comparison method to be used.
|
void |
setCurrentValue(java.lang.String newCurrentValue)
This method sets the value of the parameter in the current request which should be checked
against the values defined in the behavior rule.
|
void |
setCustomVariableType(java.lang.String newCustomVariableType)
This method sets the custom variable type defined.
|
void |
setReferralUrl(java.lang.String newReferralUrl)
This method sets the referral URL associated with the current request.
|
void |
setRuleValues(java.util.List newRuleValues)
This method sets the list of strings which are the values defined in the behavior rule
for which to check for a match against the current request.
|
void |
setTriggerParameters(java.util.Map newTriggerParameters)
This method sets the trigger parameters associated with the current request.
|
void |
setTriggerParameters(java.lang.String newTriggerParameters)
This method sets the trigger parameters associated with the current request.
|
void |
setUserBehaviorRule(UserBehaviorRule newUserBehaviorRule)
This method sets the
UserBehaviorRule business object associated with
the behavior rule being evaluated. |
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void setRuleValues(java.util.List newRuleValues)
setRuleValues
in interface UserBehaviorRuleTaskCmd
newRuleValues
- A list of strings.public void setCurrentValue(java.lang.String newCurrentValue)
setCurrentValue
in interface UserBehaviorRuleTaskCmd
newCurrentValue
- The value of the applicable parameter.public void setCaseSensitiveMatch(boolean newCaseSensitiveMatch)
setCaseSensitiveMatch
in interface UserBehaviorRuleTaskCmd
newCaseSensitiveMatch
- The flag if the match should be case sensitive.public void setComparison(java.lang.String newComparison)
setComparison
in interface UserBehaviorRuleTaskCmd
newComparison
- The comparison method to be used. This can be any custom string
defined in the behavior rule.public void setCustomVariableType(java.lang.String newCustomVariableType)
setCustomVariableType
in interface UserBehaviorRuleTaskCmd
newCustomVariableType
- The custom variable type defined. This can be any custom string
defined in the behavior rule.public void setUserBehaviorRule(UserBehaviorRule newUserBehaviorRule)
UserBehaviorRule
business object associated with
the behavior rule being evaluated.setUserBehaviorRule
in interface UserBehaviorRuleTaskCmd
newUserBehaviorRule
- A UserBehaviorRule
business object.public void setTriggerParameters(java.lang.String newTriggerParameters)
setTriggerParameters
in interface UserBehaviorRuleTaskCmd
newTriggerParameters
- A string representing the trigger parameters.public void setTriggerParameters(java.util.Map newTriggerParameters)
setTriggerParameters
in interface UserBehaviorRuleTaskCmd
newTriggerParameters
- A map representing the trigger parameters.public void setReferralUrl(java.lang.String newReferralUrl)
setReferralUrl
in interface UserBehaviorRuleTaskCmd
newReferralUrl
- A string representing the referral URL.public java.util.List getRuleValues()
public java.lang.String getCurrentValue()
public boolean getCaseSensitiveMatch()
public java.lang.String getComparison()
public java.lang.String getCustomVariableType()
public UserBehaviorRule getUserBehaviorRule()
UserBehaviorRule
business object associated with
the behavior rule being evaluated.UserBehaviorRule
business object.public java.lang.String getTriggerParameters()
public java.util.Map getTriggerParametersMap()
public java.lang.String getReferralUrl()
public java.lang.String getReturnValue()
getReturnValue
in interface UserBehaviorRuleTaskCmd