Class PathSegmentServiceDefault
java.lang.Object
org.nuxeo.ecm.core.api.pathsegment.PathSegmentServiceDefault
- All Implemented Interfaces:
PathSegmentService
Service generating a path segment from the title by just removing slashes and limiting size.
-
Field Summary
Fields inherited from interface org.nuxeo.ecm.core.api.pathsegment.PathSegmentService
NUXEO_MAX_SEGMENT_SIZE_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerate the path segment to use from a string.Generate the path segment to use for aDocumentModel
that's about to be created.int
Return the path segment max size
-
Field Details
-
stupidRegexp
-
-
Constructor Details
-
PathSegmentServiceDefault
public PathSegmentServiceDefault()
-
-
Method Details
-
generatePathSegment
Description copied from interface:PathSegmentService
Generate the path segment to use for aDocumentModel
that's about to be created.- Specified by:
generatePathSegment
in interfacePathSegmentService
- Parameters:
doc
- the document- Returns:
- the path segment, which must not contain any
/
character
-
generatePathSegment
Description copied from interface:PathSegmentService
Generate the path segment to use from a string.- Specified by:
generatePathSegment
in interfacePathSegmentService
- Parameters:
s
- the string- Returns:
- the path segment, which must not contain any
/
character
-
getMaxSize
public int getMaxSize()Description copied from interface:PathSegmentService
Return the path segment max size- Specified by:
getMaxSize
in interfacePathSegmentService
-