Package org.apache.sling.servlets.post
Interface NodeNameGenerator
-
public interface NodeNameGenerator
Service interface which allows for custom node name generation for * resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getNodeName(SlingHttpServletRequest request, java.lang.String parentPath, boolean requirePrefix, NodeNameGenerator defaultNodeNameGenerator)
Get the to-be-created node name from the request.
-
-
-
Method Detail
-
getNodeName
java.lang.String getNodeName(SlingHttpServletRequest request, java.lang.String parentPath, boolean requirePrefix, NodeNameGenerator defaultNodeNameGenerator)
Get the to-be-created node name from the request.- Parameters:
request
- requestparentPath
- the path to the new node's parentrequirePrefix
- 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
-
-