Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all permission by resourcesClaas #51

Open
sixframa opened this issue Feb 7, 2023 · 0 comments
Open

Get all permission by resourcesClaas #51

sixframa opened this issue Feb 7, 2023 · 0 comments
Labels

Comments

@sixframa
Copy link

sixframa commented Feb 7, 2023

Hi:
I am new using OACC. I look like that fit perfect in our use cases but I am not able to see how to get all permission that a resource has over other resource of a specific resource class(without doing it one by one).
For instance, let's say we have users ans documents. We want to know all documents that a user has some permission and which permission are.
I found the following methods:
getEffectiveResourcePermissions and getResourcePermissions which query a single accessed resource
I am looking for a method that given an accessor return all resources for a specific resourceClass with the permission of each one. I think is the same than "getGlobalResourcePermissionsMap" but not for global.
Example:
Given accessor "user1" get all accessed resources of type "document" and permission of each one.
Result expected:
Map<String, Set>
<"document1.pdf",ResourcePermission[read,write]>
<"document.pdf",ResourcePermission[read]>
<"document3.pdf",ResourcePermission[read,write]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants