Class ImmutableDecisionRequest

    • Method Detail

      • getInstance

        public static ImmutableDecisionRequest getInstance​(Map<AttributeFqn,​AttributeBag<?>> namedAttributes,
                                                           Map<String,​net.sf.saxon.s9api.XdmNode> contentNodesByCategory,
                                                           boolean returnApplicablePolicies)
        Create new instance returning unsorted map of named attributes and content nodes by attribute category
        Parameters:
        namedAttributes - named Attributes (no extra Content element)
        contentNodesByCategory - extra XML Content elements by attribute Category
        returnApplicablePolicies - return list of applicable policy identifiers; equivalent of XACML Request's ReturnPolicyIdList flag
        Returns:
        new instance
      • getSortedInstance

        public static ImmutableDecisionRequest getSortedInstance​(Map<AttributeFqn,​AttributeBag<?>> namedAttributes,
                                                                 Map<String,​net.sf.saxon.s9api.XdmNode> contentNodesByCategory,
                                                                 boolean returnApplicablePolicies)
        Create new instance returning named attributes sorted by attribute name ( getNamedAttributes()), and content nodes sorted by attribute category name ( getExtraContentsByCategory())
        Parameters:
        namedAttributes - named Attributes (no extra Content element)
        contentNodesByCategory - extra XML Content elements by attribute Category
        returnApplicablePolicies - return list of applicable policy identifiers; equivalent of XACML Request's ReturnPolicyIdList flag
        Returns:
        new instance
      • getCreationTimestamp

        public Instant getCreationTimestamp()
        Description copied from interface: DecisionRequest
        Returns the request object creation timestamp. May be used to set one of XACML current-* attributes.
        Specified by:
        getCreationTimestamp in interface DecisionRequest
        Returns:
        this object creation timestamp
      • getExtraContentsByCategory

        public com.google.common.collect.ImmutableMap<String,​net.sf.saxon.s9api.XdmNode> getExtraContentsByCategory()
        Description copied from interface: DecisionRequest
        Get Attributes/Contents (parsed into XDM data model for XPath evaluation) by attribute category
        Specified by:
        getExtraContentsByCategory in interface DecisionRequest
        Returns:
        XML Content nodes by category, maybe empty - but NEVER NULL - if none (but DecisionRequest.getNamedAttributes() result may not be empty)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object