public class PolicyUtils extends Object
| Constructor and Description |
|---|
PolicyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Element |
createAdvicesElement(List<ObligationElementDTO> obligationElementDTOs,
Document doc)
This creates XML representation of advice element using List of ObligationElementDTO object
|
static Element |
createApplyElement(ApplyElementDTO applyElementDTO,
Document doc)
This creates XML representation of apply element using ApplyElementDTO object
|
static Element |
createAttributeAssignmentElement(AttributeAssignmentElementDTO assignmentElementDTO,
Document doc)
This creates XML representation of assignment element using AttributeAssignmentElementDTO object
|
static Element |
createAttributeDesignatorElement(AttributeDesignatorDTO attributeDesignatorDTO,
Document doc)
This creates XML representation of attribute designator Element using AttributeDesignatorDTO object
|
static Element |
createAttributeSelectorElement(AttributeSelectorDTO attributeSelectorDTO,
Document doc)
This creates XML representation of attribute selector Element using AttributeSelectorDTO object
|
static Element |
createAttributesElement(AttributesElementDTO elementDTO,
Document doc)
This creates XML representation of Attributes Element using AttributesElementDTO object
|
static Element |
createAttributeValueElement(AttributeValueElementDTO attributeValueElementDTO,
Document doc)
This method creates the attribute value element
|
static Element |
createConditionElement(ConditionElementDT0 conditionElementDT0,
Document doc)
This creates XML representation of condition element using ConditionElementDT0 object
|
static Element |
createFunctionElement(FunctionElementDTO functionElementDTO,
Document doc)
This creates XML representation of function Element using FunctionElementDTO object
|
static Element |
createMatchElement(MatchElementDTO matchElementDTO,
Document doc)
This method creates a match elementof the XACML policy
|
static Element |
createObligationsElement(List<ObligationElementDTO> obligationElementDTOs,
Document doc)
This creates XML representation of obligation Element using List of ObligationElementDTO object
|
static Element |
createPolicyElement(PolicyElementDTO policyElementDTO,
Document doc)
This method creates a policy element of the XACML policy
|
static Element |
createPolicySetElement(PolicySetElementDTO policyElementDTO,
Document doc)
This method creates a policy set element of the XACML policy
|
static Element |
createRequestElement(RequestElementDTO requestElementDTO,
Document doc) |
static Element |
createRuleElement(RuleElementDTO ruleElementDTO,
Document doc)
This creates XML representation of rule element using RuleElementDTO object
|
static Element |
createTargetElement(TargetElementDTO targetElementDTO,
Document doc)
This creates XML representation of target element using TargetElementDTO object
|
public static Element createPolicyElement(PolicyElementDTO policyElementDTO, Document doc) throws PolicyBuilderException
policyElementDTO - policy element data objectdoc - XML documentPolicyBuilderException - ifpublic static Element createPolicySetElement(PolicySetElementDTO policyElementDTO, Document doc) throws PolicyBuilderException
policyElementDTO - policy element data objectdoc - XML documentPolicyBuilderException - ifpublic static Element createRequestElement(RequestElementDTO requestElementDTO, Document doc) throws PolicyBuilderException
PolicyBuilderExceptionpublic static Element createMatchElement(MatchElementDTO matchElementDTO, Document doc) throws PolicyBuilderException
matchElementDTO - match element data objectdoc - XML documentPolicyBuilderException - throwspublic static Element createAttributeValueElement(AttributeValueElementDTO attributeValueElementDTO, Document doc)
attributeValueElementDTO - attribute value element data objectdoc - XML documentpublic static Element createAttributesElement(AttributesElementDTO elementDTO, Document doc)
elementDTO - AttributesElementDTOdoc - Documentpublic static Element createFunctionElement(FunctionElementDTO functionElementDTO, Document doc)
functionElementDTO - FunctionElementDTOdoc - Documentpublic static Element createAttributeDesignatorElement(AttributeDesignatorDTO attributeDesignatorDTO, Document doc) throws PolicyBuilderException
attributeDesignatorDTO - AttributeDesignatorDTOdoc - DocumentPolicyBuilderException - throwspublic static Element createAttributeSelectorElement(AttributeSelectorDTO attributeSelectorDTO, Document doc)
attributeSelectorDTO - AttributeSelectorDTOdoc - Documentpublic static Element createObligationsElement(List<ObligationElementDTO> obligationElementDTOs, Document doc) throws PolicyBuilderException
obligationElementDTOs - List of ObligationElementDTOdoc - DocumentPolicyBuilderException - throwspublic static Element createAdvicesElement(List<ObligationElementDTO> obligationElementDTOs, Document doc) throws PolicyBuilderException
obligationElementDTOs - List of ObligationElementDTOdoc - DocumentPolicyBuilderException - throwspublic static Element createAttributeAssignmentElement(AttributeAssignmentElementDTO assignmentElementDTO, Document doc) throws PolicyBuilderException
assignmentElementDTO - AttributeAssignmentElementDTOdoc - DocumentPolicyBuilderException - throwspublic static Element createTargetElement(TargetElementDTO targetElementDTO, Document doc) throws PolicyBuilderException
targetElementDTO - TargetElementDTOdoc - DocumentPolicyBuilderException - throwspublic static Element createRuleElement(RuleElementDTO ruleElementDTO, Document doc) throws PolicyBuilderException
ruleElementDTO - RuleElementDTOdoc - DocumentPolicyBuilderException - throwspublic static Element createConditionElement(ConditionElementDT0 conditionElementDT0, Document doc) throws PolicyBuilderException
conditionElementDT0 - ConditionElementDT0doc - DocumentPolicyBuilderException - throwspublic static Element createApplyElement(ApplyElementDTO applyElementDTO, Document doc) throws PolicyBuilderException
applyElementDTO - ApplyElementDTOdoc - DocumentPolicyBuilderException - throwsCopyright © 2022 WSO2. All rights reserved.