Class RuleIfCondition
java.lang.Object
edu.internet2.middleware.grouper.rules.RuleIfCondition
rule if condition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionif it is an el, put that hereif it is an enum, put that hereif it is an enum, this is the first arg if applicableif it is an enum, this is the second arg if applicableif the enum needs an owner, this is the idif the enum needs an owner, this is the nameif a stem, this is the scope of ONE or SUBconvert the type to an enumboolean
isBlank()
void
setIfConditionEl
(String ifConditionEl1) if it is an el, put that herevoid
setIfConditionEnum
(String ifConditionEnum1) if it is an enum, put that herevoid
setIfConditionEnumArg0
(String ifConditionEnumArg0_) if it is an enum, this is the first arg if applicablevoid
setIfConditionEnumArg1
(String ifConditionEnumArg1_) if it is an enum, this is the first arg if applicablevoid
setIfOwnerId
(String ifOwnerId1) if the enum needs an owner, this is the idvoid
setIfOwnerName
(String ifOwnerName1) if the enum needs an owner, this is the namevoid
setIfStemScope
(String ifStemScope1) if a stem, this is the scope of ONE or SUBboolean
shouldFire
(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, StringBuilder logDataForThisDefinition) if this check passestoString()
validate
(RuleDefinition ruleDefinition) validate this
-
Constructor Details
-
RuleIfCondition
public RuleIfCondition() -
RuleIfCondition
public RuleIfCondition(String ifConditionEl1, String ifConditionEnum1, String theIfOwnerId, String theIfOwnerName, String theStemScope, String theIfConditionEnumArg0, String theIfConditionEnumArg1) - Parameters:
ifConditionEl1
-ifConditionEnum1
-theIfOwnerId
-theIfOwnerName
-theStemScope
-theIfConditionEnumArg0
-theIfConditionEnumArg1
-
-
-
Method Details
-
isBlank
public boolean isBlank() -
getIfConditionEnumArg0
if it is an enum, this is the first arg if applicable- Returns:
- the first arg
-
setIfConditionEnumArg0
if it is an enum, this is the first arg if applicable- Parameters:
ifConditionEnumArg0_
-
-
getIfConditionEnumArg1
if it is an enum, this is the second arg if applicable- Returns:
- arg1
-
setIfConditionEnumArg1
if it is an enum, this is the first arg if applicable- Parameters:
ifConditionEnumArg1_
-
-
getIfStemScope
if a stem, this is the scope of ONE or SUB- Returns:
- null or ONE or SUB
-
setIfStemScope
if a stem, this is the scope of ONE or SUB- Parameters:
ifStemScope1
-
-
getIfOwnerName
if the enum needs an owner, this is the name- Returns:
- name
-
setIfOwnerName
if the enum needs an owner, this is the name- Parameters:
ifOwnerName1
-
-
getIfOwnerId
if the enum needs an owner, this is the id- Returns:
- id
-
setIfOwnerId
if the enum needs an owner, this is the id- Parameters:
ifOwnerId1
-
-
getIfConditionEl
if it is an el, put that here- Returns:
- el
-
setIfConditionEl
if it is an el, put that here- Parameters:
ifConditionEl1
-
-
getIfConditionEnum
if it is an enum, put that here- Returns:
- enum
-
setIfConditionEnum
if it is an enum, put that here- Parameters:
ifConditionEnum1
-
-
ifConditionEnum
convert the type to an enum- Returns:
- rule check type
-
toString
-
validate
validate this- Parameters:
ruleDefinition
-- Returns:
- error or null if ok
-
shouldFire
public boolean shouldFire(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, StringBuilder logDataForThisDefinition) if this check passes- Parameters:
ruleDefinition
-ruleEngine
-rulesBean
-logDataForThisDefinition
-- Returns:
- true if this check passes
-