I want to know if there is any java method or any topics about how to know user role on a specific folder (Consumer, Contributor, Collaborator...)
For my project I use differentes methods, for example: uploadfile, create folder ...
Now I want to improve a user management, so if the user has the role consumer he can't delete a file. Any solution for this problem? Thank you
There are multiple ways you could do this. One is to ask the folder for its ACL by calling getACL(), see the docs.
Another option would be to ask the folder for its allowable actions by calling getAllowableActions(), see the docs. This one might be better because it will return given the context of the current user. If the getAllowableActions() call does not return "CAN_DELETE_OBJECT" then you know the current user is not allowed to delete the object.