|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sec.service.impl.AccessPermissionEvaluatorImpl
public class AccessPermissionEvaluatorImpl
AccessPermissionEvaluator
Field Summary | |
---|---|
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.bo.Person |
person
|
protected String |
propertyValue
|
Constructor Summary | |
---|---|
AccessPermissionEvaluatorImpl()
|
Method Summary | |
---|---|
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.bo.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String constraintCode
protected String operatorCode
protected String propertyValue
protected Map<String,Object> otherKeyFieldValues
protected org.kuali.rice.kim.bo.Person person
protected String[] matchValues
protected boolean performEqualMatch
protected boolean performLessThanMatch
protected boolean performGreaterThanMatch
protected boolean allowConstraint
protected boolean notOperator
Constructor Detail |
---|
public AccessPermissionEvaluatorImpl()
Method Detail |
---|
public boolean valueIsAllowed(String value)
AccessPermissionEvaluator
valueIsAllowed
in interface AccessPermissionEvaluator
value
- String value to evaluate
AccessPermissionEvaluator.valueIsAllowed(java.lang.String)
protected boolean isMatch(String matchValue, String value)
matchValue
- String value to match, can contain the * wildcardvalue
- String value to compare
protected 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.bo.Person person)
AccessPermissionEvaluator
setPerson
in interface AccessPermissionEvaluator
person
- Person kim business objectAccessPermissionEvaluator.setPerson(org.kuali.rice.kim.bo.Person)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |