Class RuleCheck
java.lang.Object
edu.internet2.middleware.grouper.rules.RuleCheck
e.g.
check:
- type: flattenedMembershipChange
- groups: X,Z
the type of check and any params
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
constant for field name for: checkArg0static final String
constant for field name for: checkArg1static final String
constant for field name for: checkOwnerIdstatic final String
constant for field name for: checkOwnerNamestatic final String
constant for field name for: checkStemScopestatic final String
constant for field name for: checkType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElVariables
(RuleDefinition ruleDefinition, Map<String, Object> variableMap, RulesBean rulesBean, boolean hasAccessToElApi) add EL variables to the substitute mapconvert the type to an enumclone()
deep clone the fields in this objectboolean
group which fires the rulegroup/stem/etc which fires the ruleALL or SUBtype of rule checkint
hashCode()
void
setCheckArg0
(String _checkArg0) void
setCheckArg1
(String _checkArg1) void
setCheckOwnerId
(String group1) group which fires the rulevoid
setCheckOwnerName
(String ownerName1) group/stem/etc which fires the rulevoid
setCheckStemScope
(String checkStemScope1) ALL or SUBvoid
setCheckType
(String type1) type of rule checkconvert the scope to an enumtoString()
validate
(RuleDefinition ruleDefinition) validate thisvalidateOwnerAttributeDef
(RuleDefinition ruleDefinition) see if the owner is an attributeDef (note, owner requiredness not checked)validateOwnerGroup
(RuleDefinition ruleDefinition) see if the owner is a group (note, owner requiredness not checked)validateOwnerStem
(RuleDefinition ruleDefinition) see if the owner is a stem (note, owner requiredness not checked)
-
Field Details
-
FIELD_CHECK_ARG0
constant for field name for: checkArg0- See Also:
-
FIELD_CHECK_ARG1
constant for field name for: checkArg1- See Also:
-
FIELD_CHECK_OWNER_ID
constant for field name for: checkOwnerId- See Also:
-
FIELD_CHECK_OWNER_NAME
constant for field name for: checkOwnerName- See Also:
-
FIELD_CHECK_STEM_SCOPE
constant for field name for: checkStemScope- See Also:
-
FIELD_CHECK_TYPE
constant for field name for: checkType- See Also:
-
-
Constructor Details
-
Method Details
-
clone
deep clone the fields in this object -
equals
-
hashCode
public int hashCode() -
getCheckArg0
- Returns:
- the checkArg0
-
setCheckArg0
- Parameters:
_checkArg0
- the checkArg0 to set
-
getCheckArg1
- Returns:
- the checkArg1
-
setCheckArg1
- Parameters:
_checkArg1
- the checkArg1 to set
-
getCheckStemScope
ALL or SUB- Returns:
- the checkStemScope
-
setCheckStemScope
ALL or SUB- Parameters:
checkStemScope1
- the checkStemScope to set
-
getCheckOwnerName
group/stem/etc which fires the rule- Returns:
- group/stem/etc which fires the rule
-
setCheckOwnerName
group/stem/etc which fires the rule- Parameters:
ownerName1
-
-
getCheckType
type of rule check- Returns:
- the type
-
setCheckType
type of rule check- Parameters:
type1
-
-
checkTypeEnum
convert the type to an enum- Returns:
- rule check type
-
stemScopeEnum
convert the scope to an enum- Returns:
- rule check scope
-
getCheckOwnerId
group which fires the rule- Returns:
- the group
-
setCheckOwnerId
group which fires the rule- Parameters:
group1
-
-
toString
-
validate
validate this- Parameters:
ruleDefinition
-- Returns:
- error or null if ok
-
addElVariables
public void addElVariables(RuleDefinition ruleDefinition, Map<String, Object> variableMap, RulesBean rulesBean, boolean hasAccessToElApi) add EL variables to the substitute map- Parameters:
ruleDefinition
-variableMap
-rulesBean
-hasAccessToElApi
-
-
validateOwnerGroup
see if the owner is a group (note, owner requiredness not checked)- Parameters:
ruleDefinition
-- Returns:
- the error message
-
validateOwnerStem
see if the owner is a stem (note, owner requiredness not checked)- Parameters:
ruleDefinition
-- Returns:
- the error message
-
validateOwnerAttributeDef
see if the owner is an attributeDef (note, owner requiredness not checked)- Parameters:
ruleDefinition
-- Returns:
- the error message
-