How to override PathSegmentServiceDefault ?

Reading the question Document name : what is the max characters number for path ? I understood that in order to change the 24 char limit of the document name, I have to derive the class PathSegmentServiceDefault and providing it as a new contribution to the PathSegmentService. Deriving the PathSegmentServiceDefault is easy, but adding the contribution is what I'm not getting right. I am sure I am missing something in the extension part, but not sure what. It would be great if someone that has succeeded in this task can show me the right way … Thank You in advance.

0 votes

1 answers



Show us what you've tried.

It won't help you immediately but I've opened NXP-13649 to make this simpler to configure.


Ok, it happened that I was doing a mistake with my *-contrib.xml file, I solved that and it works quite fine now. Thankyou anyway.

Besides implementing the PathSegmentService interface and customizing my PathSegmentServiceCustom class to my needs, to contribute to PathSegmentService, all that is needed is to provede an xml file with the following name pattern :


and with the following content:

<?xml version="1.0"?>
<component name="org.nuxeo.edrms.custom.pathsegment.PathSegmentServiceCustom">
   <extension target="org.nuxeo.ecm.core.api.pathsegment.PathSegmentService"
               point="pathSegmentService ">
         <service class="org.nuxeo.edrms.custom.pathsegment.PathSegmentServiceCustom" />

with org.nuxeo.edrms.custom.pathsegment.PathSegmentServiceCustom being the customized PathSegmentServiceDefault alternative.

0 votes