Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class PathSegmentServiceDefault
extends Object
implements PathSegmentService

Service generating a path segment from the title by just removing slashes and limiting size.


Field Summary
 int maxSize
           
 Pattern stupidRegexp
           
 
Constructor Summary
PathSegmentServiceDefault()
           
 
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
 

Field Detail

stupidRegexp

public Pattern stupidRegexp

maxSize

public int maxSize
Constructor Detail

PathSegmentServiceDefault

public PathSegmentServiceDefault()
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.