05-12-2010 01:11 PM
05-13-2010 01:13 AM
String lStrSpaceGroupName = request.getParameter("spaceGroupName")!=null ? request.getParameter("spaceGroupName") : "";
NodeRef nodeRefOfPermissiveSpace = null;
groupName = getAuthorityService().getName(AuthorityType.GROUP, lStrSpaceGroupName);
if(getAuthorityService().authorityExists(groupName)){
nodeRefOfPermissiveSpace = new NodeRef(Repository.getStoreRef(),lStrSpaceNodeRef);
getPermissionService().deletePermission(nodeRefOfPermissiveSpace, groupName , PermissionService.CONSUMER);
getPermissionService().deletePermission(nodeRefOfPermissiveSpace, groupName , PermissionService.CONTRIBUTOR);
getPermissionService().deletePermission(nodeRefOfPermissiveSpace, groupName , PermissionService.EDITOR);
getPermissionService().setPermission(nodeRefOfPermissiveSpace,groupName ,PermissionService.CONSUMER, true);
}
05-13-2010 09:33 AM
05-13-2010 10:52 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.