Class RuleDefinition
java.lang.Object
edu.internet2.middleware.grouper.rules.RuleDefinition
Define a rule, convert to a JSON string for attribute
-
Constructor Summary
ConstructorDescriptionRuleDefinition
(String attributeTypeAssignId) load rules for one attribute type assign idRuleDefinition
(Set<AttributeAssignValueContainer> attributeAssignValueContainers) rule definitions from attribute assigns -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElVariables
(Map<String, Object> variableMap, RulesBean rulesBean, boolean hasAccessToEl) add EL variables to the substitute mapgetActAs()
who this rule acts askeep a reference to this to get back to the owner etcgetCheck()
when this rules is triggeredonly fire if this condition occursgetThen()
do this when the rule firesboolean
run daemon, true by defaultboolean
if this rule is valid in the attributes (calculated)boolean
if we should run the daemon, then dovoid
setActAs
(RuleSubjectActAs actAs1) who this rule acts asvoid
setAttributeAssignType
(AttributeAssign attributeAssignType1) keep a reference to this to get back to the owner etcvoid
when this rules is triggeredvoid
setIfCondition
(RuleIfCondition ifCondition1) only fire if this condition occursvoid
do this when the rule firesvoid
setValidInAttributes
(boolean validInAttributes1) if this rule is valid in the attributes (calculated)boolean
if we should log this rule definitiontoString()
validate()
validate this
-
Constructor Details
-
RuleDefinition
load rules for one attribute type assign id- Parameters:
attributeTypeAssignId
-
-
RuleDefinition
rule definitions from attribute assigns- Parameters:
attributeAssignValueContainers
-
-
RuleDefinition
public RuleDefinition()
-
-
Method Details
-
isValidInAttributes
public boolean isValidInAttributes()if this rule is valid in the attributes (calculated)- Returns:
- the validInAttributes
-
setValidInAttributes
public void setValidInAttributes(boolean validInAttributes1) if this rule is valid in the attributes (calculated)- Parameters:
validInAttributes1
- the validInAttributes to set
-
getAttributeAssignType
keep a reference to this to get back to the owner etc- Returns:
- the attributeAssignType
-
setAttributeAssignType
keep a reference to this to get back to the owner etc- Parameters:
attributeAssignType1
- the attributeAssignType to set
-
getActAs
who this rule acts as- Returns:
- who this rule acts as
-
setActAs
who this rule acts as- Parameters:
actAs1
-
-
getCheck
when this rules is triggered- Returns:
- the check
-
setCheck
when this rules is triggered- Parameters:
check1
-
-
getIfCondition
only fire if this condition occurs- Returns:
- the if condition
-
setIfCondition
only fire if this condition occurs- Parameters:
ifCondition1
-
-
getThen
do this when the rule fires- Returns:
- the then part
-
setThen
do this when the rule fires- Parameters:
then1
-
-
getRunDaemon
- Returns:
- string for run daemon
-
runDaemonOnDefinitionIfShould
public boolean runDaemonOnDefinitionIfShould()if we should run the daemon, then do- Returns:
- if run
-
toString
-
validate
validate this- Returns:
- the error or null if none
-
isRunDaemonBoolean
public boolean isRunDaemonBoolean()run daemon, true by default- Returns:
- if run daemon
-
shouldLog
public boolean shouldLog()if we should log this rule definition- Returns:
- true if should log
-
addElVariables
public void addElVariables(Map<String, Object> variableMap, RulesBean rulesBean, boolean hasAccessToEl) add EL variables to the substitute map- Parameters:
variableMap
-rulesBean
-hasAccessToEl
-
-
getPattern
-
getPattern1
-