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 Details

  • Method Details

    • generatePathSegment

      String generatePathSegment(DocumentModel doc)
      Generate the path segment to use for a DocumentModel that'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