Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api.pathsegment
Interface PathSegmentService

All Known Implementing Classes:
PathSegmentComponent, PathSegmentServiceCompat, PathSegmentServiceDefault

public interface PathSegmentService

Service with a method generating a path segment (name) given a DocumentModel about to be created. Usually the title is used to derive the path segment.


Method Summary
 java.lang.String generatePathSegment(DocumentModel doc)
          Generate the path segment to use for a DocumentModel that's about to be created.
 

Method Detail

generatePathSegment

java.lang.String generatePathSegment(DocumentModel doc)
                                     throws ClientException
Generate the path segment to use for a DocumentModel that's about to be created.

Parameters:
doc - the document
Returns:
the path segment, which must not contain any / character
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.