06-09-2011 06:42 PM
06-27-2011 07:43 AM
Map<QName, Serializable> extractorProps = new HashMap<QName, Serializable>();
//get extracter through Springlookup ref="metadataExtracterRegistry"
ContentReader cr = contentService.getReader(theNodeRef, ContentModel.PROP_CONTENT);
extracter.extract(cr, extractorProps);
//read out the author and so on
if(extractorProps.get(ContentModel.PROP_AUTHOR) != null)
theProperties.put(ContentModel.PROP_AUTHOR, extractorProps.get(ContentModel.PROP_AUTHOR));
if(extractorProps.get(ContentModel.PROP_TITLE) != null)
theProperties.put(ContentModel.PROP_TITLE, extractorProps.get(ContentModel.PROP_TITLE));
if(extractorProps.get(ContentModel.PROP_DESCRIPTION) != null)
theProperties.put(ContentModel.PROP_DESCRIPTION, extractorProps.get(ContentModel.PROP_DESCRIPTION));
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.