org.apache.sling.servlets.post
Interface NodeNameGenerator


public interface NodeNameGenerator

Service interface which allows for custom node name generation for * resources.


Method Summary
 String getNodeName(SlingHttpServletRequest request, String parentPath, boolean requirePrefix, NodeNameGenerator defaultNodeNameGenerator)
          Get the to-be-created node name from the request.
 

Method Detail

getNodeName

String getNodeName(SlingHttpServletRequest request,
                   String parentPath,
                   boolean requirePrefix,
                   NodeNameGenerator defaultNodeNameGenerator)
Get the to-be-created node name from the request.

Parameters:
req - 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


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.