04-19-2020 12:09 PM
I have created a custom plugin for some Purpose. now I want to use BinaryMetadataService.class which is interface in Nuxeo.
I tried to find the existing contribution but couldn't find.
Please let me know what i am doing wrong.
Following Configuration has been done
import org.nuxeo.binary.metadata.internals.operations.ReadMetadataFromBinaryToContext;
@Context
protected CoreSession coreSession;
AutomationService automationService = Framework.getService(AutomationService.class);
OperationContext operationContext = new OperationContext(coreSession);
Map<String, Object> params = new HashMap<>();params.put("ignorePrefix", false);
try { Map<String,Object> properties = (Map<String, Object>) automationService.run(operationContext, ReadMetadataFromBinaryToContext.ID, params);
}
catch (OperationException e)
{ throw new NuxeoException("Cannot run automation operation" );}
Core package pom.xml
<dependency>
<groupId>org.nuxeo.binary.metadata</groupId>
<artifactId>nuxeo-binary-metadata</artifactId>
<version>${nuxeo.version}</version>
</dependency>
Getting Error while building jar-
/home/ssg335/dmsx/plugin_softcell-dms-metadata/plugin_softcell-dms-metadata-core/src/main/java/com/softcell/dms/document/listener/DocumentPreCreateUpdateListener.java:[3,54] package org.nuxeo.binary.metadata.internals.operations does not exist [ERROR] /home/ssg335/dmsx/plugin_softcell-dms-metadata/plugin_softcell-dms-metadata-core/src/main/java/com/softcell/dms/document/listener/DocumentPreCreateUpdateListener.java:[58,119] cannot find symbol [ERROR] symbol: variable ReadMetadataFromBinaryToContext [ERROR] location: class com.softcell.dms.document.listener.DocumentPreCreateUpdateListener
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.