public class PolicyAttributeBuilder extends Object
Constructor and Description |
---|
PolicyAttributeBuilder() |
PolicyAttributeBuilder(String policy) |
Modifier and Type | Method and Description |
---|---|
List<AttributeDTO> |
createMetaDataFromApplyElement(org.apache.axiom.om.OMElement omElement,
List<AttributeDTO> attributeDTOs)
This extract policy meta data from apply element in the policy
|
List<AttributeDTO> |
createMetaDataFromConditionElement(org.apache.axiom.om.OMElement omElement,
List<AttributeDTO> attributeDTOs)
This extract policy meta data from condition element in the policy
|
List<AttributeDTO> |
createMetaDataFromMatchElement(org.apache.axiom.om.OMElement omElement,
String subElementName)
This extract policy meta data from match element in the policy
|
List<AttributeDTO> |
createMetaDataFromRuleElement(org.apache.axiom.om.OMElement omElement,
List<AttributeDTO> attributeDTOs)
This extract policy meta data from each rule element in the policy
|
List<AttributeDTO> |
createMetaDataFromTargetElement(org.apache.axiom.om.OMElement omElement,
List<AttributeDTO> attributeDTOs)
This extract policy meta data from target element in the policy
|
List<AttributeDTO> |
createMetaDataFromXACML3ApplyElement(org.apache.axiom.om.OMElement omElement,
List<AttributeDTO> attributeDTOs)
This extract policy meta data from apply element in the policy
|
List<AttributeDTO> |
createMetaDataFromXACML3MatchElement(org.apache.axiom.om.OMElement omElement)
This extract policy meta data from match element in the policy
|
List<AttributeDTO> |
createMetaDataFromXACML3TargetElement(org.apache.axiom.om.OMElement omElement,
List<AttributeDTO> attributeDTOs)
This extract policy meta data from target element in the policy
|
List<AttributeDTO> |
createPolicyMetaData(String policy,
List<AttributeDTO> attributeDTOs)
This creates the OMElement from the policy xml and create the the meta data for hole policy
|
Properties |
getPolicyMetaDataFromPolicy()
This creates properties object which contains the policy meta data.
|
AttributeDTO[] |
getPolicyMetaDataFromRegistryProperties(Properties properties)
This creates the attributes from registry property values
|
List<String> |
searchAttributeValues(org.apache.axiom.om.OMElement omElement,
List<String> values,
boolean searchDesignators)
This searches through attribute values in the attribute elements to extract the policy meta data
|
AttributeDTO |
searchDesignatorOrSelector(org.apache.axiom.om.OMElement omElement,
AttributeDTO attributeDTO)
This searches through designator and selector values in the attribute elements to extract
the policy meta data
|
AttributeDTO |
searchXACML3Designator(org.apache.axiom.om.OMElement omElement,
AttributeDTO attributeDTO)
This searches through designator and selector values in the attribute elements to extract
the policy meta data
|
public PolicyAttributeBuilder()
public PolicyAttributeBuilder(String policy)
policy
- policy as a Stringpublic Properties getPolicyMetaDataFromPolicy() throws EntitlementException
EntitlementException
- throwspublic AttributeDTO[] getPolicyMetaDataFromRegistryProperties(Properties properties)
properties
- Properties object read from registry resourcepublic List<AttributeDTO> createPolicyMetaData(String policy, List<AttributeDTO> attributeDTOs) throws EntitlementException
policy
- policy as a StringattributeDTOs
- object which holds the policy meta data in String formatEntitlementException
- throws if OMElement can not be createdpublic List<AttributeDTO> createMetaDataFromTargetElement(org.apache.axiom.om.OMElement omElement, List<AttributeDTO> attributeDTOs)
omElement
- target element as an OMElementattributeDTOs
- list of AttributeDTO object which holds the policy meta data
in String formatpublic List<AttributeDTO> createMetaDataFromXACML3TargetElement(org.apache.axiom.om.OMElement omElement, List<AttributeDTO> attributeDTOs)
omElement
- target element as an OMElementattributeDTOs
- list of AttributeDTO object which holds the policy meta data
in String formatpublic List<AttributeDTO> createMetaDataFromMatchElement(org.apache.axiom.om.OMElement omElement, String subElementName)
omElement
- match element as an OMElementsubElementName
- match element namepublic List<AttributeDTO> createMetaDataFromXACML3MatchElement(org.apache.axiom.om.OMElement omElement)
omElement
- match element as an OMElementpublic List<AttributeDTO> createMetaDataFromApplyElement(org.apache.axiom.om.OMElement omElement, List<AttributeDTO> attributeDTOs)
omElement
- apply element as an OMElementattributeDTOs
- list of AttributeDTO object which holds the policy meta data
in String formatpublic List<AttributeDTO> createMetaDataFromXACML3ApplyElement(org.apache.axiom.om.OMElement omElement, List<AttributeDTO> attributeDTOs)
omElement
- apply element as an OMElementattributeDTOs
- list of AttributeDTO object which holds the policy meta data
in String formatpublic List<String> searchAttributeValues(org.apache.axiom.om.OMElement omElement, List<String> values, boolean searchDesignators)
omElement
- apply element as an OMElementvalues
- set of String objectssearchDesignators
- states where, to find designators which are involved in creating
attribute valuespublic AttributeDTO searchDesignatorOrSelector(org.apache.axiom.om.OMElement omElement, AttributeDTO attributeDTO)
omElement
- apply element as an OMElementattributeDTO
- AttributeDTO object which holds the policy meta data in String formatpublic AttributeDTO searchXACML3Designator(org.apache.axiom.om.OMElement omElement, AttributeDTO attributeDTO)
omElement
- apply element as an OMElementattributeDTO
- AttributeDTO object which holds the policy meta data in String formatpublic List<AttributeDTO> createMetaDataFromConditionElement(org.apache.axiom.om.OMElement omElement, List<AttributeDTO> attributeDTOs)
omElement
- condition element as an OMElementattributeDTOs
- list of AttributeDTO object which holds the policy meta data
in String formatpublic List<AttributeDTO> createMetaDataFromRuleElement(org.apache.axiom.om.OMElement omElement, List<AttributeDTO> attributeDTOs)
omElement
- rule element as an OMElementattributeDTOs
- list of AttributeDTO object which holds the policy meta data
in String formatCopyright © 2016 WSO2. All rights reserved.