09-10-2014 06:19 AM
<aspect name="btz:ocr">
<title>OCR</title>
<properties>
<property name="btz:ocrContent">
<title>Texto del OCR</title>
<type>d:content</type>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
</properties>
</aspect>
public void setContentValue(NodeRef nodeRef, QName propertyQName, Object hmcontent) throws Exception {
UserTransaction trx = transactionService.getUserTransaction();
try {
trx.begin();
nodeService.addAspect(nodeRef, btz:ocr, null);
ContentWriter contentWriter = contentService.getWriter(nodeRef, propertyQName, true);
contentWriter.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN);
contentWriter.putContent(hmcontent.toString());
contentWriter.guessEncoding(); //setEncoding("UTF-8");
trx.commit();
} catch (Exception e) {
trx.rollback();
throw e;
}
}
09-10-2014 06:55 AM
09-10-2014 07:59 AM
{http://www.alfresco.org/model/content/1.0}auditable
{http://www.alfresco.org/model/system/1.0}referenceable
{http://www.alfresco.org/model/content/1.0}titled
{http://www.alfresco.org/model/rendition/1.0}renditioned
{http://www.alfresco.org/model/system/1.0}localized
{http://www.baratz.es/model/baratz/1.0}ocr
{http://www.alfresco.org/model/content/1.0}versionable
09-10-2014 08:17 AM
09-10-2014 08:54 AM
{http://www.alfresco.org/model/content/1.0}auditable
{http://www.alfresco.org/model/system/1.0}referenceable
{http://www.alfresco.org/model/content/1.0}titled
{http://www.alfresco.org/model/rendition/1.0}renditioned
{http://www.alfresco.org/model/system/1.0}localized
{http://www.baratz.es/model/baratz/1.0}ocr
{http://www.alfresco.org/model/content/1.0}versionable
09-17-2014 06:19 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.