jojopaderes Posted May 14, 2009 Share Posted May 14, 2009 I'm figuring out how to retrieve the list of object permissions for a repository folder. Here's the code snippet that works so far: objectPermissionService.getObjectPermissionsForObject(null, repositoryService.getFolder(null, "/report/child_folder)); The list object returned by the getObjectPermissionsForObject() method, however, does not include the inherited user/role permissions from the parent folder. Is there a way on how to get the inherited object permissions for a repo folder? Link to comment Share on other sites More sharing options...
jojopaderes Posted May 21, 2009 Author Share Posted May 21, 2009 I'm using JasperServer Pro 3.1 by the way. I also tried using the code snippet with version 3.5 but still the list object does not include the inherited permissions of a particular repository folder. Link to comment Share on other sites More sharing options...
lucianc Posted May 27, 2009 Share Posted May 27, 2009 getObjectPermissionsForObject() does not return inherited permissions. If you want that, you can cast the object permission service to com.jaspersoft.jasperserver.api.metadata.user.service.impl.AclService and call getAcls(). Note that this method returns different objects, so you might need to adapt your code.Another approach is to manually call getObjectPermissionsForObject() for all parent folders and collect the inherited permissions.Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now