Package com.day.cq.wcm.core.utils
Class ScaffoldingUtils
- java.lang.Object
-
- com.day.cq.wcm.core.utils.ScaffoldingUtils
-
public class ScaffoldingUtils extends java.lang.ObjectHelpers for scaffolding.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTEXT_RESOURCE_ATTR_NAMEThe name of the request attribute used to store the scaffolding context (ie: the resource being edited via the scaffolding).
-
Constructor Summary
Constructors Constructor Description ScaffoldingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringfindScaffoldByPath(javax.jcr.Node node, java.lang.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 java.lang.StringfindScaffoldByTemplate(javax.jcr.Node node, java.lang.String template)Search the scaffolding hierarchy starting at node (normally /etc/scaffolding) for a scaffold which targets the given template.
-
-
-
Method Detail
-
findScaffoldByTemplate
public static java.lang.String findScaffoldByTemplate(javax.jcr.Node node, java.lang.String template) throws javax.jcr.RepositoryExceptionSearch the scaffolding hierarchy starting at node (normally /etc/scaffolding) for a scaffold which targets the given template.- Parameters:
node-template-- Returns:
- Throws:
javax.jcr.RepositoryException
-
findScaffoldByPath
public static java.lang.String findScaffoldByPath(javax.jcr.Node node, java.lang.String path) throws javax.jcr.RepositoryExceptionSearch 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-path-- Returns:
- Throws:
javax.jcr.RepositoryException
-
-