public class PAPPolicyStore extends Object
Constructor and Description |
---|
PAPPolicyStore() |
PAPPolicyStore(org.wso2.carbon.registry.core.Registry registry) |
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdatePolicy(PolicyDTO policy,
String policyPath) |
void |
addOrUpdatePolicy(PolicyDTO policy,
String policyId,
String policyPath) |
String[] |
getAllPolicyIds()
This returns all the policy ids as String list.
|
org.wso2.carbon.registry.core.Resource |
getPolicy(String policyId,
String collection)
This returns given policy as Registry resource
|
void |
removePolicy(String policyId) |
public PAPPolicyStore()
public PAPPolicyStore(org.wso2.carbon.registry.core.Registry registry) throws EntitlementException
EntitlementException
public String[] getAllPolicyIds() throws EntitlementException
EntitlementException
- throws if failspublic org.wso2.carbon.registry.core.Resource getPolicy(String policyId, String collection) throws EntitlementException
policyId
- policy idcollection
- EntitlementException
- throws, if failspublic void addOrUpdatePolicy(PolicyDTO policy, String policyPath) throws EntitlementException
EntitlementException
public void addOrUpdatePolicy(PolicyDTO policy, String policyId, String policyPath) throws EntitlementException
policy
- EntitlementException
public void removePolicy(String policyId) throws EntitlementException
policyId
- EntitlementException
Copyright © 2016 WSO2. All rights reserved.