11-17-2008 06:32 PM
03-09-2009 08:55 AM
04-08-2009 03:12 PM
04-17-2009 10:49 AM
04-17-2009 02:17 PM
04-17-2009 04:18 PM
ContentData contentData = (ContentData) getNodeService().getProperty(ticket,nodeRef,ContentModel.PROP_CONTENT);
if (contentData != null && contentData.getSize() > 0) {
System.out.println("Content data is not null");
} else {
System.out.println("Content data is null");
}
04-17-2009 04:45 PM
04-17-2009 05:14 PM
The node's content is missing:
node: workspace://SpacesStore/49ad5b5e-fbe3-40a3-bfcd-43b847130b10
reader: null
Please contact your system administrator.
04-20-2009 09:36 AM
04-20-2009 10:27 AM
org.alfresco.service.cmr.repository.ContentData
private final String contentUrl;
private final String mimetype;
private final long size;
private final String encoding;
private final Locale locale;
if (contentData == null)
{
PropertyDefinition contentPropDef = dictionaryService.getProperty(propertyQName);
// if no value or a value other content, and a property definition has been provided, ensure that it's CONTENT or ANY
if (contentPropDef != null &&
(!(contentPropDef.getDataType().getName().equals(DataTypeDefinition.CONTENT) ||
contentPropDef.getDataType().getName().equals(DataTypeDefinition.ANY))))
{
throw new InvalidTypeException("The node property must be of type content: \n" +
" node: " + nodeRef + "\n" +
" property name: " + propertyQName + "\n" +
" property type: " + ((contentPropDef == null) ? "unknown" : contentPropDef.getDataType()),
propertyQName);
}
// check that the URL is available
if (contentData == null || contentData.getContentUrl() == null)
{
// there is no URL - the interface specifies that this is not an error condition
return null;
}
04-20-2009 11:51 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.