Class IndividualXacmlJaxbRequest
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.io.IndividualXacmlJaxbRequest
-
- All Implemented Interfaces:
DecisionRequest
public final class IndividualXacmlJaxbRequest extends Object implements DecisionRequest
(Immutable) Individual decision request using XACML-schema-derived JAXB-annotated objects (XACML Attributes elements), as defined by Multiple Decision Profile of XACML. This differs fromDecisionRequest
only by the fact that the XACML request may require in addition, esp. in a Multiple Decision, that a sequence of Attributes elements from the request be included in the XACML Result as well, in order for the requester to correlate with the Attributes elements in the request, i.e. the individual requests.
-
-
Constructor Summary
Constructors Constructor Description IndividualXacmlJaxbRequest(ImmutableDecisionRequest baseRequest, com.google.common.collect.ImmutableList<oasis.names.tc.xacml._3_0.core.schema.wd_17.Attributes> attributesToBeReturned)
Creates instance from an XACML-agnostic request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<oasis.names.tc.xacml._3_0.core.schema.wd_17.Attributes>
getAttributesToBeReturned()
Attributes elements to be included in corresponding result.Instant
getCreationTimestamp()
Returns the request object creation timestamp.com.google.common.collect.ImmutableMap<String,net.sf.saxon.s9api.XdmNode>
getExtraContentsByCategory()
Get Attributes/Contents (parsed into XDM data model for XPath evaluation) by attribute categorycom.google.common.collect.ImmutableMap<AttributeFqn,AttributeBag<?>>
getNamedAttributes()
Get named attributes by nameint
hashCode()
boolean
isApplicablePolicyIdListReturned()
Get ReturnPolicyIdList flag
-
-
-
Constructor Detail
-
IndividualXacmlJaxbRequest
public IndividualXacmlJaxbRequest(ImmutableDecisionRequest baseRequest, com.google.common.collect.ImmutableList<oasis.names.tc.xacml._3_0.core.schema.wd_17.Attributes> attributesToBeReturned)
Creates instance from an XACML-agnostic request- Parameters:
baseRequest
- base request in XACML-agnostic modelattributesToBeReturned
- attributes to be included in corresponding XACML Result
-
-
Method Detail
-
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 interfaceDecisionRequest
- Returns:
- this object creation timestamp
-
getNamedAttributes
public com.google.common.collect.ImmutableMap<AttributeFqn,AttributeBag<?>> getNamedAttributes()
Description copied from interface:DecisionRequest
Get named attributes by name- Specified by:
getNamedAttributes
in interfaceDecisionRequest
- Returns:
- map of attribute name-value pairs, maybe empty - but NEVER NULL - if none (but
DecisionRequest.getExtraContentsByCategory()
result may not be empty)
-
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 interfaceDecisionRequest
- Returns:
- XML Content nodes by category, maybe empty - but NEVER NULL - if none (but
DecisionRequest.getNamedAttributes()
result may not be empty)
-
isApplicablePolicyIdListReturned
public boolean isApplicablePolicyIdListReturned()
Description copied from interface:DecisionRequest
Get ReturnPolicyIdList flag- Specified by:
isApplicablePolicyIdListReturned
in interfaceDecisionRequest
- Returns:
- true iff original XACML Request's ReturnPolicyIdList == true
-
getAttributesToBeReturned
public List<oasis.names.tc.xacml._3_0.core.schema.wd_17.Attributes> getAttributesToBeReturned()
Attributes elements to be included in corresponding result.- Returns:
- Attributes elements to be included in the decision result
-
-