public class RuleCheck extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_CHECK_ARG0
constant for field name for: checkArg0
|
static String |
FIELD_CHECK_ARG1
constant for field name for: checkArg1
|
static String |
FIELD_CHECK_OWNER_ID
constant for field name for: checkOwnerId
|
static String |
FIELD_CHECK_OWNER_NAME
constant for field name for: checkOwnerName
|
static String |
FIELD_CHECK_STEM_SCOPE
constant for field name for: checkStemScope
|
static String |
FIELD_CHECK_TYPE
constant for field name for: checkType
|
Constructor and Description |
---|
RuleCheck() |
RuleCheck(String type,
String ownerId,
String ownerName,
String theCheckStemScope,
String theCheckArg0,
String theCheckArg1) |
Modifier and Type | Method and Description |
---|---|
void |
addElVariables(RuleDefinition ruleDefinition,
Map<String,Object> variableMap,
RulesBean rulesBean,
boolean hasAccessToElApi)
add EL variables to the substitute map
|
RuleCheckType |
checkTypeEnum()
convert the type to an enum
|
RuleCheck |
clone()
deep clone the fields in this object
|
boolean |
equals(Object obj) |
String |
getCheckArg0() |
String |
getCheckArg1() |
String |
getCheckOwnerId()
group which fires the rule
|
String |
getCheckOwnerName()
group/stem/etc which fires the rule
|
String |
getCheckStemScope()
ALL or SUB
|
String |
getCheckType()
type of rule check
|
int |
hashCode() |
void |
setCheckArg0(String _checkArg0) |
void |
setCheckArg1(String _checkArg1) |
void |
setCheckOwnerId(String group1)
group which fires the rule
|
void |
setCheckOwnerName(String ownerName1)
group/stem/etc which fires the rule
|
void |
setCheckStemScope(String checkStemScope1)
ALL or SUB
|
void |
setCheckType(String type1)
type of rule check
|
Stem.Scope |
stemScopeEnum()
convert the scope to an enum
|
String |
toString() |
String |
validate(RuleDefinition ruleDefinition)
validate this
|
String |
validateOwnerAttributeDef(RuleDefinition ruleDefinition)
see if the owner is an attributeDef (note, owner requiredness not checked)
|
String |
validateOwnerGroup(RuleDefinition ruleDefinition)
see if the owner is a group (note, owner requiredness not checked)
|
String |
validateOwnerStem(RuleDefinition ruleDefinition)
see if the owner is a stem (note, owner requiredness not checked)
|
public static final String FIELD_CHECK_ARG0
public static final String FIELD_CHECK_ARG1
public static final String FIELD_CHECK_OWNER_ID
public static final String FIELD_CHECK_OWNER_NAME
public static final String FIELD_CHECK_STEM_SCOPE
public static final String FIELD_CHECK_TYPE
public RuleCheck clone()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getCheckArg0()
public void setCheckArg0(String _checkArg0)
_checkArg0
- the checkArg0 to setpublic String getCheckArg1()
public void setCheckArg1(String _checkArg1)
_checkArg1
- the checkArg1 to setpublic String getCheckStemScope()
public void setCheckStemScope(String checkStemScope1)
checkStemScope1
- the checkStemScope to setpublic String getCheckOwnerName()
public void setCheckOwnerName(String ownerName1)
ownerName1
- public String getCheckType()
public void setCheckType(String type1)
type1
- public RuleCheckType checkTypeEnum()
public Stem.Scope stemScopeEnum()
public String getCheckOwnerId()
public void setCheckOwnerId(String group1)
group1
- public String toString()
toString
in class Object
Object.toString()
public String validate(RuleDefinition ruleDefinition)
ruleDefinition
- public void addElVariables(RuleDefinition ruleDefinition, Map<String,Object> variableMap, RulesBean rulesBean, boolean hasAccessToElApi)
ruleDefinition
- variableMap
- rulesBean
- hasAccessToElApi
- public String validateOwnerGroup(RuleDefinition ruleDefinition)
ruleDefinition
- public String validateOwnerStem(RuleDefinition ruleDefinition)
ruleDefinition
- public String validateOwnerAttributeDef(RuleDefinition ruleDefinition)
ruleDefinition
- Copyright © 2016 Internet2. All rights reserved.