This task is about implementing new APIs to help extract specific rules from a set of rules based on subject, subject type (user/group), and rule state (allowed/denied). The following APIs will be added :
- getAllowedRuleBySubject(rules) : return one allowed rule by unique subject (user/group)
- getDeniedRuleBySubject(rules) : return one denied rule by unique subject (user/group)
- getAllowedRuleByUser(rules) : return one allowed rule by unique user
- getDeniedRuleByUser(rules) : return one denied rule by unique user
- getAllowedRuleByGroup(rules) : return one allowed rule by unique group
- getDeniedRuleByGroup(rules) : return one denied rule by unique group
|