org.exist.client.xacml
Class UserAttributeHandler
java.lang.Object
org.exist.client.xacml.UserAttributeHandler
- All Implemented Interfaces:
- AttributeHandler
public class UserAttributeHandler
- extends Object
- implements AttributeHandler
UserAttributeHandler
public UserAttributeHandler(DatabaseInterface dbInterface)
filterFunctions
public void filterFunctions(Set functions,
AttributeDesignator attribute)
- Description copied from interface:
AttributeHandler
- Removes functions that should not be available for the user to
apply to an attribute.
- Specified by:
filterFunctions
in interface AttributeHandler
- Parameters:
functions
- The Set
of functions to modify in place.attribute
- The relevant attribute
getAllowedValues
public boolean getAllowedValues(Set values,
AttributeDesignator attribute)
- Description copied from interface:
AttributeHandler
- Determines which values the user may select for an attribute. If the user
may enter values not in this set, this function should return true.
- Specified by:
getAllowedValues
in interface AttributeHandler
- Parameters:
values
- The Set
to which allowed values should be added.attribute
- The relevant attribute
- Returns:
- true if the user is not restricted to the values in the set,
false otherwise
checkUserValue
public void checkUserValue(AttributeValue value,
AttributeDesignator attribute)
throws ParsingException
- Description copied from interface:
AttributeHandler
- Determines if the user entered value is valid.
- Specified by:
checkUserValue
in interface AttributeHandler
- Parameters:
value
- The value to checkattribute
- The relevant attribute
- Throws:
ParsingException
- if the user entered value is invalid
Copyright (C) Wolfgang Meier. All rights reserved.