Interface PathSegmentService
- All Known Implementing Classes:
PathSegmentComponent
,PathSegmentServiceCompat
,PathSegmentServiceDefault
public interface PathSegmentService
Service with a method generating a path segment (name) given a
DocumentModel
about to be created. Usually the
title is used to derive the path segment.-
Field 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
-
NUXEO_MAX_SEGMENT_SIZE_PROPERTY
- Since:
- 7.4
- See Also:
-
-
Method Details
-
generatePathSegment
Generate the path segment to use for aDocumentModel
that's about to be created.- Parameters:
doc
- the document- Returns:
- the path segment, which must not contain any
/
character
-
generatePathSegment
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
-