cancel
Showing results for 
Search instead for 
Did you mean: 

ContentTemplateService contribution registred after execution of executePostContentCreationHandlers, why ?

influence160_
Champ in-the-making
Champ in-the-making

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 ?

1 REPLY 1

influence160_
Champ in-the-making
Champ in-the-making

It is a bug in Nuxeo IDE

https://jira.nuxeo.com/browse/NXIDE-188

Getting started

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.