01-25-2013 10:03 AM
Hello
i created a contrib in org.nuxeo.ecm.platform.content.template.service.ContentTemplateService
commands-content-template-contrib.xml
<?xml version="1.0" encoding="UTF-8"?>
<component name="org.d2t.sample.filescommand.command.contentTemplate">
<require>org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib</require>
<extension
target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
point="factoryBinding">
<factoryBinding name="RootFactory" factoryName="SimpleTemplateRootFactory" targetType="Root" append="true">
<template>
<templateItem typeName="CommandRoot" id="command-root" title="Commands" />
</template>
</factoryBinding>
</extension>
<extension target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
point="postContentCreationHandlers">
<postContentCreationHandler name="commandsHandler"
class="org.d2t.sample.filescommand.CommandsHandler" />
</extension>
MANIFEST.MF
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .
Manifest-Version: 1.0
Bundle-Name: filescommand
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-Vendor: Nuxeo
Bundle-Version: 5.6
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.d2t.sample.filescommand;singleton=true
Nuxeo-Component: OSGI-INF/command-type.xml,
OSGI-INF/command-type-ui.xml,
OSGI-INF/commands-content-template-contrib.xml,
OSGI-INF/commands-service.xml,
OSGI-INF/commands-service-contrib.xml
Require-Bundle: org.nuxeo.ecm.platform.content.template,
org.nuxeo.ecm.platform.types.core
command-type.xml
<?xml version="1.0"?>
<component name="org.d2t.sample.filescommand.command.type">
<require>org.nuxeo.ecm.core.schema.TypeService</require>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
<doctype name="Command" extends="Folder">
<schema name="common"/>
<schema name="dublincore"/>
<schema name="commandprops" src="schemas/commandprops.xsd" prefix="d2t" />
</doctype>
<doctype name="CommandRoot" extends="Domain">
</doctype>
</extension>
</component>
in debbuging the class org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl i noticed that
the DAM and the collaboration contributions are registred (registredpostContentCreationHandlers.addContribution(descriptor); ) before the call of executePostContentCreationHandlers() , but my contribution is registred after , then is never executed ... what can be the cause ?
01-31-2013 04:29 AM
It is a bug in Nuxeo IDE
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
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.