Interface PathSegmentService
-
- All Known Implementing Classes:
PathSegmentComponent,PathSegmentServiceCompat,PathSegmentServiceDefault
public interface PathSegmentServiceService with a method generating a path segment (name) given aDocumentModelabout to be created. Usually the title is used to derive the path segment.
-
-
Field Summary
Fields Modifier and Type Field Description static StringNUXEO_MAX_SEGMENT_SIZE_PROPERTY
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Field Detail
-
NUXEO_MAX_SEGMENT_SIZE_PROPERTY
static final String NUXEO_MAX_SEGMENT_SIZE_PROPERTY
- Since:
- 7.4
- See Also:
- Constant Field Values
-
-
Method Detail
-
generatePathSegment
String generatePathSegment(DocumentModel doc)
Generate the path segment to use for aDocumentModelthat's about to be created.- Parameters:
doc- the document- Returns:
- the path segment, which must not contain any
/character
-
generatePathSegment
String generatePathSegment(String s)
Generate the path segment to use from a string.- Parameters:
s- the string- Returns:
- the path segment, which must not contain any
/character - Since:
- 5.9.2
-
getMaxSize
int getMaxSize()
Return the path segment max size- Since:
- 7.4
-
-