Package com.day.cq.wcm.core.utils
Class ScaffoldingUtils
java.lang.Object
com.day.cq.wcm.core.utils.ScaffoldingUtils
Helpers for scaffolding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringThe name of the request attribute used to store the scaffolding context (ie: the resource being edited via the scaffolding). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfindScaffoldByPath(Node node, String path) Search the scaffolding hierarchy starting at node (normally /etc/scaffolding) for a scaffold which targets the given path (or an ancestor of the given path).static StringfindScaffoldByTemplate(Node node, String template) Search the scaffolding hierarchy starting at node (normally /etc/scaffolding) for a scaffold which targets the given template.
-
Field Details
-
CONTEXT_RESOURCE_ATTR_NAME
The name of the request attribute used to store the scaffolding context (ie: the resource being edited via the scaffolding).
-
-
Constructor Details
-
ScaffoldingUtils
public ScaffoldingUtils()
-
-
Method Details
-
findScaffoldByTemplate
Search the scaffolding hierarchy starting at node (normally /etc/scaffolding) for a scaffold which targets the given template.- Parameters:
node- the nodetemplate- the template- Returns:
- String scaffold
- Throws:
RepositoryException- the RepositoryException
-
findScaffoldByPath
Search the scaffolding hierarchy starting at node (normally /etc/scaffolding) for a scaffold which targets the given path (or an ancestor of the given path).- Parameters:
node- the nodepath- the given path for which scaffolding hierarchy to be searched.- Returns:
- String the Scaffold.
- Throws:
RepositoryException- the RepositoryException
-