Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.pathsegment
Class PathSegmentServiceCompat

java.lang.Object
  extended by org.nuxeo.ecm.core.api.pathsegment.PathSegmentServiceCompat
All Implemented Interfaces:
PathSegmentService

public class PathSegmentServiceCompat
extends Object
implements PathSegmentService

Service generating a path segment from the title by simplifying it to lowercase and dash-separated words.


Constructor Summary
PathSegmentServiceCompat()
           
 
Method Summary
 String generatePathSegment(DocumentModel doc)
          Generate the path segment to use for a DocumentModel that's about to be created.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathSegmentServiceCompat

public PathSegmentServiceCompat()
Method Detail

generatePathSegment

public String generatePathSegment(DocumentModel doc)
                           throws ClientException
Description copied from interface: PathSegmentService
Generate the path segment to use for a DocumentModel that's about to be created.

Specified by:
generatePathSegment in interface PathSegmentService
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.