As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
// Cut inheritance permissionService.setInheritParentPermissions(nodeRef, false); // Allow EVERYONE has CONSUMER permissionService.setPermission(nodeRef, AuthorityType.EVERYONE .toString(), PermissionService.CONSUMER, true); // Allow GUEST has CONSUMER permissionService.setPermission(nodeRef, AuthorityType.GUEST.toString(), PermissionService.CONSUMER, true); // Allow USER has CONSUMER permissionService.setPermission(nodeRef, AuthorityType.USER.toString(), PermissionService.CONSUMER, true);
// Cut inheritance permissionService.setInheritParentPermissions(nodeRef, false); // Allow EVERYONE has CONSUMER permissionService.setPermission(nodeRef, PermissionService.ALL_AUTHORITIES, PermissionService.CONSUMER, true); // Allow GUEST has CONSUMER permissionService.setPermission(nodeRef, PermissionService.GUEST_AUTHORITY, PermissionService.CONSUMER, true);