There is 1 update.
 
 
Rights API / cid:jira-generated-image-avatar-f726d0cd-448e-414d-a6c7-20f9b2563ce6 RIGHTSAPI-38 Open

Add APIs to help extract rules from a set of rules based on unique subject and subject type

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-f9fc246c-626c-486b-af5e-ef7dad6c8292 Changes by Mohamed Boussaa on 26/Jul/24 10:34
 
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.