public interface EntitlementService
| Modifier and Type | Method and Description |
|---|---|
void |
generateAndSaveEntitlementPolicies(List<XACMLPolicyTemplateContext> xacmlPolicyTemplateContexts)
Generates entitlement policies using the context given, and saves them in the entitlement service implementation.
|
String |
getPolicyContent(String policyId)
Get the policy content from the policy id
|
void |
init()
Initializes entitlement service.
|
boolean |
isPermitted(EntitlementDecisionRequest request)
Check whether the request is permitted ot not.
|
void |
removePolicy(String policyId)
Remove a given policy
|
void |
savePolicy(EntitlementPolicy policy)
Saves the given policy.
|
void |
updatePolicy(EntitlementPolicy policy)
Updates the given policy
|
EntitlementPolicyValidationResult |
validatePolicy(EntitlementPolicy policy)
Validates the given entitlement policy.
|
EntitlementPolicyValidationResult |
validatePolicyPartial(String partial)
Validates the given entitlement policy partial.
|
void init()
throws AppManagementException
AppManagementException - on error while trying to initialize entitlement servicevoid savePolicy(EntitlementPolicy policy)
policy - boolean isPermitted(EntitlementDecisionRequest request) throws AppManagementException
request - Request to be checked.AppManagementException - on error while trying to check whether the request is permitted or not.String getPolicyContent(String policyId)
policyId - policyIdvoid updatePolicy(EntitlementPolicy policy)
policy - void removePolicy(String policyId)
policyId - EntitlementPolicyValidationResult validatePolicyPartial(String partial)
partial - The entitlement policy partial to be validated.EntitlementPolicyValidationResult validatePolicy(EntitlementPolicy policy)
policy - The entitlement policy to be validated.void generateAndSaveEntitlementPolicies(List<XACMLPolicyTemplateContext> xacmlPolicyTemplateContexts)
xacmlPolicyTemplateContexts - Copyright © 2017 WSO2. All rights reserved.