11-17-2008 06:32 PM
12-08-2008 09:23 AM
12-08-2008 10:52 AM
01-22-2009 11:19 AM
01-22-2009 03:10 PM
ContentData contentData = (ContentData) node.getProperties.get(ContentModel.PROP_CONTENT);
long size = 0L;
if (contentData != null)
{
size = contentData.getSize();
}
02-08-2009 07:36 PM
02-10-2009 11:35 AM
02-23-2009 12:41 PM
02-23-2009 04:14 PM
java.util.Set<org.alfresco.service.cmr.security.AccessPermission> getAllSetPermissions(Ticket ticket, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws InvalidTicketException, CmaRuntimeException
This call will return a set of permissions assigned to that node. It will include all users and their access level. The only gotcha is that if the user executing this call is a Consumer on that node you will get a org.alfresco.repo.security.permissions.AccessDeniedException exception.
try {
Set<AccessPermission> accessPerms = securityService().getAllSetPermissions(ticket, nodeRef);
} catch (CmaRuntimeException e) {
if (e.getCause() instanceof AccessDeniedException) {
// This means you are a Consumer on this node
}
Hope this helps,02-26-2009 01:44 PM
03-01-2009 08:47 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.