Class PathSegmentServiceCompat
- java.lang.Object
-
- 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.
-
-
Field Summary
-
Fields inherited from interface org.nuxeo.ecm.core.api.pathsegment.PathSegmentService
NUXEO_MAX_SEGMENT_SIZE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description PathSegmentServiceCompat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgeneratePathSegment(String s)Generate the path segment to use from a string.StringgeneratePathSegment(DocumentModel doc)Generate the path segment to use for aDocumentModelthat's about to be created.intgetMaxSize()Return the path segment max size
-
-
-
Method Detail
-
generatePathSegment
public String generatePathSegment(DocumentModel doc)
Description copied from interface:PathSegmentServiceGenerate the path segment to use for aDocumentModelthat's about to be created.- Specified by:
generatePathSegmentin interfacePathSegmentService- Parameters:
doc- the document- Returns:
- the path segment, which must not contain any
/character
-
generatePathSegment
public String generatePathSegment(String s)
Description copied from interface:PathSegmentServiceGenerate the path segment to use from a string.- Specified by:
generatePathSegmentin interfacePathSegmentService- Parameters:
s- the string- Returns:
- the path segment, which must not contain any
/character
-
getMaxSize
public int getMaxSize()
Description copied from interface:PathSegmentServiceReturn the path segment max size- Specified by:
getMaxSizein interfacePathSegmentService
-
-