public class FileSystemAttributeLocator extends StorageAttributeLocator
Modifier and Type | Field and Description |
---|---|
static String |
FILE_NAME |
attributeValue, dataTypeOfSubstituteValue, substituteValue
attributeDesignatorSupported, attributeSelectorSupported, designatorTypes, identifier, ids, map, options
ATTRIBUTE_DESIGNATOR_INTEGER_TAG, ATTRIBUTE_DESIGNATOR_SUPPORT_TAG, ATTRIBUTE_SELECTOR_SUPPORT_TAG, ATTRIBUTE_SUPPORTED_ID_TAG, IDENTIFIER_TAG, RESOURCE_CHILD_SUPPORTED_TAG, RESOURCE_DESCENDANT_SUPPORTED_TAG
Constructor and Description |
---|
FileSystemAttributeLocator() |
Modifier and Type | Method and Description |
---|---|
EvaluationResult |
findAttribute(URI attributeType,
URI attributeId,
URI issuer,
URI subjectCategory,
EvaluationCtx context,
int designatorType)
Tries to find attribute values based on the given designator data.
|
protected Object |
getSubstituteValue(URI attributeType,
EvaluationCtx context)
For locators based on DB or LDAP, we may need one value that needs to be substituted in the DB prepared
statement or ldap DIT query.
|
protected void |
usePassedOption(String optionTag,
String optionValue)
An opportunity for sub-classes to process the passed option tag and value
|
get, getAttributeValue, getIdentifier, getOptionValue, getSupportedDesignatorTypes, getSupportedIds, isDesignatorSupported, isSelectorSupported, set, setOptions
findAttribute, invalidateCache
public static final String FILE_NAME
protected void usePassedOption(String optionTag, String optionValue)
AttributeLocator
An opportunity for sub-classes to process the passed option tag and value
NOTE: Subclasses should override this method and allow super class processing before their own processing in the method via the super.usePassedOption() call.
usePassedOption
in class AttributeLocator
public EvaluationResult findAttribute(URI attributeType, URI attributeId, URI issuer, URI subjectCategory, EvaluationCtx context, int designatorType)
AttributeFinderModule
BagAttribute
, even if only one value was found. If no
values were found, but no other error occurred, an empty bag is
returned. This method may need to invoke the context data to look
for other attribute values, so a module writer must take care not
to create a scenario that loops forever.findAttribute
in class AttributeFinderModule
attributeType
- the datatype of the attributes to findattributeId
- the identifier of the attributes to findissuer
- the issuer of the attributes, or null if unspecifiedsubjectCategory
- the category of the attribute if the
designatorType is SUBJECT_TARGET, otherwise nullcontext
- the representation of the request datadesignatorType
- the type of designator as named by the *_TARGET
fields in AttributeDesignator
protected Object getSubstituteValue(URI attributeType, EvaluationCtx context) throws URISyntaxException
StorageAttributeLocator
getSubstituteValue
in class StorageAttributeLocator
URISyntaxException
Copyright © 2023 JBoss by Red Hat. All rights reserved.