public class PathSegmentServiceDefault extends Object implements PathSegmentService
Modifier and Type | Field and Description |
---|---|
static String |
NUXEO_MAX_SEGMENT_SIZE_PROPERTY
Deprecated.
since 7.4, use
PathSegmentService.NUXEO_MAX_SEGMENT_SIZE_PROPERTY instead |
Pattern |
stupidRegexp |
Constructor and Description |
---|
PathSegmentServiceDefault() |
Modifier and Type | Method and Description |
---|---|
String |
generatePathSegment(DocumentModel doc)
Generate the path segment to use for a
DocumentModel that's about to be created. |
String |
generatePathSegment(String s)
Generate the path segment to use from a string.
|
int |
getMaxSize()
Return the path segment max size
|
public Pattern stupidRegexp
public static final String NUXEO_MAX_SEGMENT_SIZE_PROPERTY
PathSegmentService.NUXEO_MAX_SEGMENT_SIZE_PROPERTY
insteadpublic PathSegmentServiceDefault()
public String generatePathSegment(DocumentModel doc)
PathSegmentService
DocumentModel
that's about to be created.generatePathSegment
in interface PathSegmentService
doc
- the document/
characterpublic String generatePathSegment(String s)
PathSegmentService
generatePathSegment
in interface PathSegmentService
s
- the string/
characterpublic int getMaxSize()
PathSegmentService
getMaxSize
in interface PathSegmentService
Copyright © 2015 Nuxeo SA. All rights reserved.