Class XACMLSchemaFactory
- java.lang.Object
-
- com.sun.identity.entitlement.xacml3.XACMLSchemaFactory
-
public class XACMLSchemaFactory extends Object
Trying to add some sanity to the JAXB Generated code. A collection of factory methods that will take in a value and return the thing you actually wanted.
-
-
Constructor Summary
Constructors Constructor Description XACMLSchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ResourceAttribute>adviceExpressionsToResourceAttributes(AdviceExpressions adviceExpressions)Convert the specifiedAdviceExpressionsobject into a set ofResourceAttributeobjects.ResourceAttributeadviceExpressionToResourceAttribute(AdviceExpression adviceExpression)Convert the specifiedAdviceExpressionobject into aResourceAttribute.AdviceExpressionsresourceAttributesToAdviceExpressions(Set<ResourceAttribute> resourceAttributes)Convert a set ofResourceAttributeobjects to a singleAdviceExpressionobject.AdviceExpressionresourceAttributeToAdviceExpression(ResourceAttribute resourceAttribute)Convert oneResourceAttributeobject into anAdviceExpressionobject.
-
-
-
Method Detail
-
resourceAttributesToAdviceExpressions
public AdviceExpressions resourceAttributesToAdviceExpressions(Set<ResourceAttribute> resourceAttributes) throws EntitlementException
Convert a set ofResourceAttributeobjects to a singleAdviceExpressionobject.- Parameters:
resourceAttributes- The set of ResourceAttribute objects.- Returns:
- The AdviceExpression object.
- Throws:
EntitlementException
-
resourceAttributeToAdviceExpression
public AdviceExpression resourceAttributeToAdviceExpression(ResourceAttribute resourceAttribute) throws EntitlementException
Convert oneResourceAttributeobject into anAdviceExpressionobject.- Parameters:
resourceAttribute- The resource attribute- Returns:
- the advice expression
- Throws:
EntitlementException- on JSON conversion errors
-
adviceExpressionsToResourceAttributes
public Set<ResourceAttribute> adviceExpressionsToResourceAttributes(AdviceExpressions adviceExpressions) throws EntitlementException
Convert the specifiedAdviceExpressionsobject into a set ofResourceAttributeobjects.- Parameters:
adviceExpressions- The advice expressions to convert- Returns:
- Set of Resource Attribute objects.
- Throws:
EntitlementException- if JSON exceptions occur
-
adviceExpressionToResourceAttribute
public ResourceAttribute adviceExpressionToResourceAttribute(AdviceExpression adviceExpression) throws EntitlementException
Convert the specifiedAdviceExpressionobject into aResourceAttribute.- Parameters:
adviceExpression- The specified advice expression- Returns:
- The resource attribute
- Throws:
EntitlementException- if JSON exceptions occur
-
-