03-31-2006 11:13 AM
04-03-2006 04:47 AM
04-03-2006 10:14 AM
04-04-2006 04:36 AM
04-04-2006 10:00 AM
Hi
I think in general it would be useful.
Remember the PermissionService will only tell you what authorities are set to have access. You will have to expand groups to get the full list of authorities that have access.
Regards
Andy
07-17-2007 10:16 AM
07-23-2007 10:01 AM
08-01-2007 01:19 PM
08-01-2007 03:50 PM
private Collection<AccessPermission> getAllPermissions(NodeRef node){
//get permissions for this node
Collection<AccessPermission> perms = permissionService.getAllSetPermissions(node);
//if it inherits, get the permissions of the parent
if( permissionService.getInheritParentPermissions(node) ){
List<ChildAssociationRef> parents = nodeService.getParentAssocs(node);
if(parents.size()>0){
NodeRef parent = (parents.get(0)).getParentRef();
perms.addAll((getAllPermissions(parent)));
}
}
return perms;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.