|
Description: |
This task is about implementing new APIs to help extract : * Extract rules whose subject is a user or a group, the returned rules * {@link #normalizeRulesBySubject(List<ReadableSecurityRule>)} method. * Extract rules from a set of rules based on unique subjects, subject type (user/group) and . Basically for each subject found on the original list of rules we will have a Map entry with the subject DocumentReference as key and a Pair of rules (rule for allowed rights, rule for denied rights) as value.
The following APIs will be added :
* Map<DocumentReference, Pair<ReadableSecurityRule, ReadableSecurityRule>> getRulesByUniqueUser(List<ReadableSecurityRule> rules) : Extract rules by unique subject from a set of rules. * Map<DocumentReference, Pair<ReadableSecurityRule, ReadableSecurityRule>> getRulesByUniqueUser( List<ReadableSecurityRule> rules) : Extract rules by unique user from a set of rules. * Map<DocumentReference, Pair<ReadableSecurityRule, ReadableSecurityRule>> getRulesByUniqueGroup( List<ReadableSecurityRule> rules) : Extract rules by unique group from a set of rules. |
|