public class RegistryPolicyReader extends Object
Constructor and Description |
---|
RegistryPolicyReader(org.wso2.carbon.registry.core.Registry registry,
String policyStorePath)
constructor
|
Modifier and Type | Method and Description |
---|---|
String[] |
getAllPolicyIds()
This returns all the policy ids as String list.
|
PolicyDTO[] |
readAllPolicies(boolean active,
boolean order)
Reads All ordered active policies as PolicyDTO
|
PolicyDTO |
readPolicy(String policyId)
Reads given policy resource as PolicyDTO
|
String |
readPolicyCombiningAlgorithm()
This reads the policy combining algorithm from registry resource property
|
public RegistryPolicyReader(org.wso2.carbon.registry.core.Registry registry, String policyStorePath)
registry
- registry instancepolicyStorePath
- policy store path of the registrypublic PolicyDTO readPolicy(String policyId) throws EntitlementException
policyId
- policy idEntitlementException
- throws, if failspublic PolicyDTO[] readAllPolicies(boolean active, boolean order) throws EntitlementException
active
- only return active policiesorder
- return ordered policyEntitlementException
- throws, if failspublic String[] getAllPolicyIds() throws EntitlementException
EntitlementException
- throws if failspublic String readPolicyCombiningAlgorithm() throws EntitlementException
EntitlementException
- throwsCopyright © 2016 WSO2. All rights reserved.