01-29-2010 04:32 AM
SimplePermissionEntry denyRead = new SimplePermissionEntry(nodeRef, permissionModelDAO.getPermissionReference(null, PermissionService.READ), authority, AccessStatus.DENIED);
permissionService.setPermission(denyRead);
serviceRegistry.getAuthenticationService().authenticate(authority, new char[]{'l', 'o', 'q', 'u', 'e', 's', 'e', 'a'});
serviceRegistry.getAuthenticationService().getCurrentUserName();
if(permissionService.hasPermission(nodeRef, permissionModelDAO.getPermissionReference(null, PermissionService.READ)) == AccessStatus.DENIED)
{
if(logger.isDebugEnabled())
logger.debug("Genial!");
}
permissions = permissionService.getAllSetPermissions(nodeRef);
01-29-2010 05:02 AM
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.