public class PAPPolicyStoreReader extends Object
Constructor and Description |
---|
PAPPolicyStoreReader(PAPPolicyStore store) |
Modifier and Type | Method and Description |
---|---|
boolean |
isExistPolicy(String policyId)
Checks whether policy is exist for given policy id
|
PolicyDTO[] |
readAllLightPolicyDTOs()
Reads All policies as Light Weight PolicyDTO
|
PolicyDTO |
readLightPolicyDTO(String policyId)
Reads Light Weight PolicyDTO for given policy id
|
PolicyDTO |
readMetaDataPolicyDTO(String policyId)
Reads Light Weight PolicyDTO with Attribute meta data for given policy id
|
org.wso2.balana.AbstractPolicy |
readPolicy(String policyId,
org.wso2.balana.finder.PolicyFinder finder) |
PolicyDTO |
readPolicyDTO(org.wso2.carbon.registry.core.Resource resource)
Reads PolicyDTO for given registry resource
|
PolicyDTO |
readPolicyDTO(String policyId)
Reads PolicyDTO for given policy id
|
public PAPPolicyStoreReader(PAPPolicyStore store)
store
- public org.wso2.balana.AbstractPolicy readPolicy(String policyId, org.wso2.balana.finder.PolicyFinder finder) throws EntitlementException
policyId
- finder
- EntitlementException
public PolicyDTO[] readAllLightPolicyDTOs() throws EntitlementException
EntitlementException
- throws, if failspublic PolicyDTO readPolicyDTO(String policyId) throws EntitlementException
policyId
- policy idEntitlementException
- throws, if failspublic boolean isExistPolicy(String policyId)
policyId
- policy idpublic PolicyDTO readLightPolicyDTO(String policyId) throws EntitlementException
policyId
- policy idEntitlementException
- throws, if failspublic PolicyDTO readMetaDataPolicyDTO(String policyId) throws EntitlementException
policyId
- policy idEntitlementException
- throws, if failspublic PolicyDTO readPolicyDTO(org.wso2.carbon.registry.core.Resource resource) throws EntitlementException
resource
- Registry resourceEntitlementException
- throws, if failsCopyright © 2016 WSO2. All rights reserved.