Use this class to find assigned and effective inherited privileges based on assignment to the user or a group the user is in. The inherited privileges could be assigned on the folder or an ancestor folder.
Sample call to retrieve assigned privileges:
Set<Privilege> assignedPrivileges = new PrivilegeAttributeDefInheritanceFinder()
.assignSubject(SubjectTestHelper.SUBJ0)
.assignRunAsRoot(true)
.assignStemName("stemName")
.findAssignedPrivileges();
Sample call to retrieve effective privileges:
Set<Privilege> effectivePrivileges = new PrivilegeAttributeDefInheritanceFinder()
.assignSubject(SubjectTestHelper.SUBJ0)
.assignRunAsRoot(true).assignStemName("stemName").findEffectivePrivileges();