Nuxeo ECM Projects 5.4.3-SNAPSHOT

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
 String generatePathSegment(DocumentModel doc)
          Generate the path segment to use for a DocumentModel that's about to be created.
 

Method Detail

generatePathSegment

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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.