public class AccessPermissionEvaluatorImpl extends Object implements AccessPermissionEvaluator
AccessPermissionEvaluator
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowConstraint |
protected String |
constraintCode |
protected String[] |
matchValues |
protected boolean |
notOperator |
protected String |
operatorCode |
protected Map<String,Object> |
otherKeyFieldValues |
protected boolean |
performEqualMatch |
protected boolean |
performGreaterThanMatch |
protected boolean |
performLessThanMatch |
protected org.kuali.rice.kim.api.identity.Person |
person |
protected String |
propertyValue |
Constructor and Description |
---|
AccessPermissionEvaluatorImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
initializeAfterPropsSet()
Hooks for permission evaluators to do additional setup after properties have been set
|
protected boolean |
isMatch(String matchValue,
String value)
Determines whether two values match performing an equal, greater than, or less than check and also considering wildcards
|
void |
setConstraintCode(String constraintCode)
Setter for the constraint code found on the user's qualification record
|
protected void |
setMatchValues()
Sets the values to match on based on given value and other properties
|
void |
setOperatorCode(String operatorCode)
Setter for the operator code found on the user's qualification record
|
void |
setOtherKeyFieldValueMap(Map<String,Object> otherKeyFieldValues)
Setter for the Map that holds values for the other key fields (if any)
|
void |
setPerson(org.kuali.rice.kim.api.identity.Person person)
Setter for the person who the permission is being evaluated for
|
void |
setPropertyValue(String propertyValue)
Setter for the property value found on the user's qualification record
|
boolean |
valueIsAllowed(String value)
Evaluates the given value against the permission definition.
|
protected String constraintCode
protected String operatorCode
protected String propertyValue
protected Map<String,Object> otherKeyFieldValues
protected org.kuali.rice.kim.api.identity.Person person
protected String[] matchValues
protected boolean performEqualMatch
protected boolean performLessThanMatch
protected boolean performGreaterThanMatch
protected boolean allowConstraint
protected boolean notOperator
public AccessPermissionEvaluatorImpl()
public boolean valueIsAllowed(String value)
AccessPermissionEvaluator
valueIsAllowed
in interface AccessPermissionEvaluator
value
- String value to evaluateAccessPermissionEvaluator.valueIsAllowed(java.lang.String)
protected boolean isMatch(String matchValue, String value)
matchValue
- String value to match, can contain the * wildcardvalue
- String value to compareprotected void initializeAfterPropsSet()
protected void setMatchValues()
public void setConstraintCode(String constraintCode)
AccessPermissionEvaluator
setConstraintCode
in interface AccessPermissionEvaluator
AccessPermissionEvaluator.setConstraintCode(java.lang.String)
public void setOperatorCode(String operatorCode)
AccessPermissionEvaluator
setOperatorCode
in interface AccessPermissionEvaluator
AccessPermissionEvaluator.setOperatorCode(java.lang.String)
public void setPropertyValue(String propertyValue)
AccessPermissionEvaluator
setPropertyValue
in interface AccessPermissionEvaluator
AccessPermissionEvaluator.setPropertyValue(java.lang.String)
public void setOtherKeyFieldValueMap(Map<String,Object> otherKeyFieldValues)
AccessPermissionEvaluator
setOtherKeyFieldValueMap
in interface AccessPermissionEvaluator
otherKeyFieldValues
- Map with field name as the Map key and field value as Map valueAccessPermissionEvaluator.setOtherKeyFieldValueMap(java.util.Map)
public void setPerson(org.kuali.rice.kim.api.identity.Person person)
AccessPermissionEvaluator
setPerson
in interface AccessPermissionEvaluator
person
- Person kim business objectAccessPermissionEvaluator.setPerson(org.kuali.rice.kim.api.identity.Person)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.