Interface NodeNameGenerator


@Deprecated public interface NodeNameGenerator
Deprecated.
Service interface which allows for custom node name generation for * resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    getNodeName(org.apache.sling.api.SlingHttpServletRequest request, String parentPath, boolean requirePrefix, NodeNameGenerator defaultNodeNameGenerator)
    Deprecated.
    Get the to-be-created node name from the request.
  • Method Details

    • getNodeName

      String getNodeName(org.apache.sling.api.SlingHttpServletRequest request, String parentPath, boolean requirePrefix, NodeNameGenerator defaultNodeNameGenerator)
      Deprecated.
      Get the to-be-created node name from the request.
      Parameters:
      request - request
      parentPath - the path to the new node's parent
      requirePrefix - if true, ignore parameters which do not being with ./
      defaultNodeNameGenerator - the default node name generator
      Returns:
      the node name to be created or null if other NodeNameGenerators should be consulted