public interface PolicyDataStore
Modifier and Type | Method and Description |
---|---|
String[] |
getAllGlobalPolicyAlgorithmNames()
Gets all supported policy combining algorithm name of the PDP
|
org.wso2.balana.combine.PolicyCombiningAlgorithm |
getGlobalPolicyAlgorithm()
Gets the policy combining algorithm of the PDP
|
String |
getGlobalPolicyAlgorithmName()
Gets the policy combining algorithm name of the PDP
|
PolicyStoreDTO[] |
getPolicyData()
Gets all policy data
|
PolicyStoreDTO |
getPolicyData(String policyId)
Gets policy data for given policy id
|
void |
init(Properties properties)
initializes the PolicyDataStore
|
void |
removePolicyData(String policyId)
Remove policy data for give policy id
|
void |
setGlobalPolicyAlgorithm(String policyCombiningAlgorithm)
Persist the policy combining algorithm in to data store
|
void |
setPolicyData(String policyId,
PolicyStoreDTO policyDataDTO)
Set policy data for give policy id
|
void init(Properties properties) throws EntitlementException
properties
- properties, that need to initialize the module.EntitlementException
- throws when initialization is failedorg.wso2.balana.combine.PolicyCombiningAlgorithm getGlobalPolicyAlgorithm()
PolicyCombiningAlgorithm
void setGlobalPolicyAlgorithm(String policyCombiningAlgorithm) throws EntitlementException
policyCombiningAlgorithm
- policy combining algorithm name to persistEntitlementException
- throws if failsString getGlobalPolicyAlgorithmName()
String
String[] getAllGlobalPolicyAlgorithmNames()
Array
of String
PolicyStoreDTO getPolicyData(String policyId)
policyId
- policy id as String
PolicyStoreDTO
PolicyStoreDTO[] getPolicyData()
Array
of PolicyStoreDTO
void setPolicyData(String policyId, PolicyStoreDTO policyDataDTO) throws EntitlementException
policyId
- policy id as String
policyDataDTO
- policy data such as order and so on PolicyStoreDTO
EntitlementException
- if it is failedvoid removePolicyData(String policyId) throws EntitlementException
policyId
- policy id as String
EntitlementException
Copyright © 2016 WSO2. All rights reserved.