10-30-2010 02:56 PM
private void setAdminAccessOnly(NodeRef nodeRef)
{
permissionService.setInheritParentPermissions(nodeRef, false);
/* previous attempts:
// permissionService.deletePermission(nodeRef, null, PermissionService.READ_CHILDREN);
// permissionService.deletePermission(nodeRef, null, PermissionService.ALL_PERMISSIONS);*/
permissionService.setPermission(nodeRef, PermissionService.ADMINISTRATOR_AUTHORITY, PermissionService.ALL_PERMISSIONS, true);
System.out.println(getNodeName(nodeRef) + " is now accessible only to admin");
}
But I end up with error saying that a node does not exist…10-31-2010 05:52 AM
10-31-2010 02:19 PM
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.