public interface PolicyEngine
| Modifier and Type | Method and Description |
|---|---|
ResponseBean |
createRule(RuleBean bean)
Creates a new rule
|
boolean |
deleteAll()
Deletes the complete repository
|
boolean |
deleteRule(String ruleId) |
RuleBean |
getRule(String ruleId)
gets a policy
|
String |
getRuleId(RuleBean ruleBean) |
List<RuleBean> |
listRules()
Returns all the rules
|
List<RuleBean> |
listRulesByAction(String action)
Returns a list of rules with given action
|
List<RuleBean> |
listRulesByResource(String resource)
Returns a list of rules with given resource
|
List<RuleBean> |
listRulesBySubjects(List<Attribute> subjects)
Returns a list of rules with given attributes map
|
ResponseBean |
updateRule(String ruleId,
RuleBean ruleBean)
Update rule
|
ResponseBean createRule(RuleBean bean)
bean - the ruleResponseBean with the response status and, if ok, the rule idRuleBean getRule(String ruleId)
policyId - the id of the ruleResponseBean updateRule(String ruleId, RuleBean ruleBean)
ruleId - the id of the policy to be updatedRuleBean - the new ruleResponseBean with the response status and, if ok, the new rule idboolean deleteRule(String ruleId)
ruleId - List<RuleBean> listRulesBySubjects(List<Attribute> subjects)
subjects - the subject attributesList<RuleBean> listRulesByAction(String action)
action - the actionboolean deleteAll()
List<RuleBean> listRulesByResource(String resource)
respurce - the resourceCopyright © 2017. All Rights Reserved.