cancel
Showing results for 
Search instead for 
Did you mean: 

Custom versioning problem

elgringo116_
Champ in-the-making
Champ in-the-making

Hello,

For my graduation project I have to customise Nuxeo. To begin I did a plugin with my companyintern project lifecycle (It's works fine). But when I try to do a version management it does nothing, I use this xml :

<?xml version="1.0"?>
<component name="fr.société.nuxeo.versioning.contrib">
<service>
<provide interface="org.nuxeo.ecm.core.versioning.VersioningService" />
</service>
<implementation class="org.nuxeo.ecm.core.versioning.VersioningComponent" />
<extension-point name="versioningService">
<object class="org.nuxeo.ecm.core.versioning.VersioningServiceDescriptor " />
</extension-point>
<extension-point name="versioningRules">
<code>
<defaultVersioningRule>
<initialState major="1" minor="0" />
<options lifeCycleState="*">
<none />
<minor />
<major default="true" />
</options>
</defaultVersioningRule>
<versioningRule typeName="File" enabled="true">
<initialState major="1" minor="1" />
<options lifeCycleState="*">
<none />
<minor default="true" />
<major />
</options>
</versioningRule>
</code>
<object class="org.nuxeo.ecm.core.versioning.VersioningRuleDescriptor " />
<object
class=" org.nuxeo.ecm.core.versioning.DefaultVersioningRuleDescripto r " />
</extension-point>
</component>

Somebody can help me, please,I don't understand how this xml don't have any consequence in Nuxeo.

Sorry for my bad english and thank you for your advice.

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

This XML redefines a service, its implementation, its available extension points. You don't want to do all that. Just do a contribution to the extension point you're interested in.

View answer in original post

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

This XML redefines a service, its implementation, its available extension points. You don't want to do all that. Just do a contribution to the extension point you're interested in.

Thank for your answer,

The documentation you mention is about an internal Nuxeo-defined service. You're confusing defining a service versus using it.

Getting started

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.