org.wso2.balana.finder

Class AttributeFinder

    • Constructor Detail

      • AttributeFinder

        public AttributeFinder()
        Default constructor.
    • Method Detail

      • getModules

        public List<AttributeFinderModule> getModules()
        Returns the ordered List of AttributeFinderModules used by this class to find attribute values.
        Returns:
        a List of AttributeFinderModules
      • setModules

        public void setModules(List<AttributeFinderModule> modules)
        Sets the ordered List of AttributeFinderModules used by this class to find attribute values. The ordering will be maintained.
        Parameters:
        modules - a List of AttributeFinderModules
      • findAttribute

        public EvaluationResult findAttribute(URI attributeType,
                                     URI attributeId,
                                     String issuer,
                                     URI category,
                                     EvaluationCtx context)
        Tries to find attribute values based on the given designator data. The result, if successful, will always contain a BagAttribute, even if only one value was found. If no values were found, but no other error occurred, an empty bag is returned.
        Parameters:
        attributeType - the datatype of the attributes to find
        attributeId - the identifier of the attributes to find
        issuer - the issuer of the attributes, or null if unspecified
        category - the category of the attribute if the designatorType is SUBJECT_TARGET, otherwise null
        context - the representation of the request data
        Returns:
        the result of attribute retrieval, which will be a bag of attributes or an error
      • findAttribute

        public EvaluationResult findAttribute(String contextPath,
                                     URI attributeType,
                                     EvaluationCtx context,
                                     String xpathVersion)
        Tries to find attribute values based on the given selector data. The result, if successful, must always contain a BagAttribute, even if only one value was found. If no values were found, but no other error occurred, an empty bag is returned.
        Parameters:
        contextPath - the XPath expression to search against
        attributeType - the datatype of the attributes to find
        context - the representation of the request data
        xpathVersion - the XPath version to use
        Returns:
        the result of attribute retrieval, which will be a bag of attributes or an error
      • findAttribute

        public EvaluationResult findAttribute(String contextPath,
                                     String contextSelector,
                                     URI attributeType,
                                     Node root,
                                     EvaluationCtx context,
                                     String xpathVersion)
        Tries to find attribute values based on the given selector data. The result, if successful, must always contain a BagAttribute, even if only one value was found. If no values were found, but no other error occurred, an empty bag is returned.
        Parameters:
        contextPath - the XPath expression to search against
        contextSelector - select the context to evaluate
        attributeType - the datatype of the attributes to find
        root - root XML node
        context - the representation of the request data
        xpathVersion - the XPath version to use
        Returns:
        the result of attribute retrieval, which will be a bag of attributes or an error

Copyright © 2016 WSO2. All rights reserved.