@Service(value=NodeStructureUtils.class) public class NodeStructureUtils extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LAYOUT_GUIDECONTAINER |
static java.lang.String |
DEFAULT_LAYOUT_PANEL |
static java.lang.String |
DEFAULT_LAYOUT_ROOTPANEL |
static java.lang.String |
ELEMENT_PROPERTY_NAME |
static java.lang.String |
FRAG_REF |
static java.lang.String |
GUIDE_FRAG_ROOT_PANEL |
static java.lang.String |
GUIDE_ITEMS |
static java.lang.String |
GUIDECONTAINER_NODENAME
Static name of all guide related nodes
|
static java.lang.String |
LAYOUT_NODENAME |
static java.lang.String |
LAYOUT_PATH_PROPERTY |
static java.lang.String |
PANEL_NODENAME |
static java.lang.String |
ROOTPANEL_NODECLASS |
static java.lang.String |
ROOTPANEL_NODENAME |
static java.lang.String |
RT_GUIDES_LAYOUT_GUIDECONTAINER
The default layout for a guide container
|
static java.lang.String |
RT_GUIDES_LAYOUT_PANEL
The default layout for a panel
|
static java.lang.String |
RT_GUIDES_LAYOUT_PREFIX
The prefix for all guide related layouts.
|
static java.lang.String |
RT_GUIDES_LAYOUT_ROOTPANEL
The default layout for a root panel
|
static java.lang.String |
RT_GUIDES_PREFIX
The prefix for all guide related resource types.
|
static java.lang.String |
RT_GUIDES_ROOTPANEL
The resource type for a root panel
|
static java.lang.String |
RT_PARSYS
Deprecated.
|
Constructor and Description |
---|
NodeStructureUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
createProperty(Resource elementResource,
java.lang.String propName,
java.lang.String propValue,
java.lang.Boolean override)
If override is set, it always set the property
|
static java.lang.String |
getFragPrefixString(Resource fragRefNode,
java.lang.String previousPrefixId)
This API generates ID prefix for fragments.
|
static java.lang.String |
getGuideName(Resource rsrc)
Return the parameter name for the field
|
static java.lang.String |
getGuideNavigatorTabProperty(Resource rsrc)
Returns guideNavigatorTab property of the layout resource
|
static java.lang.String |
getGuideNodeHtmlId(Resource elementResource)
NOTE: If the ID generation logic is changed here, it has to be changed in AuthorUtils as well
|
static java.lang.String |
getGuideNodeHtmlId(Resource elementResource,
java.lang.String fragPrefixId) |
static NodeStructureUtils |
getInstance()
Singleton instance of NodeStructureUtils.
|
static java.util.List |
getItems(SlingHttpServletRequest request,
Resource elementResource)
Check if the item node exists.
|
static java.lang.String |
getLayoutDescription(Resource rsrc)
Returns the description of the layout resource
|
static java.util.Map<java.lang.String,java.lang.Object> |
getLayoutProperties(Resource elementResource) |
static java.util.Map<java.lang.String,java.lang.Object> |
getLayoutProperties(Resource elementResource,
SlingHttpServletRequest request)
This function assumes that the elementResource contains layout node under it.
|
static java.util.Map<java.lang.String,java.lang.Object> |
getLayoutProperties(SlingHttpServletRequest request,
Resource elementResource,
java.lang.String cmpName)
Check if the layout node exists.
|
static java.lang.String |
getLayoutQtip(Resource rsrc)
Returns qtip of the layout resource
|
static java.util.Map<java.lang.String,java.lang.Object> |
getRootPanel(SlingHttpServletRequest request,
Resource elementResource)
Check if the root panel node exists.
|
static void |
setGuideName(Resource rsrc,
java.lang.String name) |
public static final java.lang.String GUIDECONTAINER_NODENAME
public static final java.lang.String GUIDE_FRAG_ROOT_PANEL
public static final java.lang.String LAYOUT_NODENAME
public static final java.lang.String ROOTPANEL_NODENAME
public static final java.lang.String ROOTPANEL_NODECLASS
public static final java.lang.String PANEL_NODENAME
public static final java.lang.String GUIDE_ITEMS
public static final java.lang.String DEFAULT_LAYOUT_GUIDECONTAINER
public static final java.lang.String DEFAULT_LAYOUT_ROOTPANEL
public static final java.lang.String DEFAULT_LAYOUT_PANEL
public static java.lang.String RT_GUIDES_PREFIX
public static java.lang.String RT_GUIDES_LAYOUT_PREFIX
public static final java.lang.String RT_GUIDES_ROOTPANEL
public static final java.lang.String RT_GUIDES_LAYOUT_GUIDECONTAINER
public static final java.lang.String RT_GUIDES_LAYOUT_ROOTPANEL
public static final java.lang.String RT_GUIDES_LAYOUT_PANEL
public static final java.lang.String LAYOUT_PATH_PROPERTY
public static final java.lang.String ELEMENT_PROPERTY_NAME
public static final java.lang.String FRAG_REF
@Deprecated public static final java.lang.String RT_PARSYS
public static NodeStructureUtils getInstance()
public static java.util.Map<java.lang.String,java.lang.Object> getLayoutProperties(SlingHttpServletRequest request, Resource elementResource, java.lang.String cmpName) throws PersistenceException
PersistenceException
public static void setGuideName(Resource rsrc, java.lang.String name) throws GuideException
GuideException
public static java.lang.String getGuideName(Resource rsrc) throws GuideException
rsrc
- The resourceGuideException
public static java.lang.String getLayoutDescription(Resource rsrc)
rsrc
- The resourcepublic static java.lang.String getLayoutQtip(Resource rsrc)
rsrc
- public static java.lang.String getGuideNavigatorTabProperty(Resource rsrc)
rsrc
- - the layout resourcepublic static java.lang.String getFragPrefixString(Resource fragRefNode, java.lang.String previousPrefixId)
fragRefNode
- public static java.lang.String getGuideNodeHtmlId(Resource elementResource)
public static java.lang.String getGuideNodeHtmlId(Resource elementResource, java.lang.String fragPrefixId)
public static java.util.Map<java.lang.String,java.lang.Object> getLayoutProperties(Resource elementResource, SlingHttpServletRequest request) throws PersistenceException
PersistenceException
public static java.util.Map<java.lang.String,java.lang.Object> getLayoutProperties(Resource elementResource) throws PersistenceException
PersistenceException
public static java.util.Map<java.lang.String,java.lang.Object> getRootPanel(SlingHttpServletRequest request, Resource elementResource) throws RepositoryException
RepositoryException
public static java.util.List getItems(SlingHttpServletRequest request, Resource elementResource) throws RepositoryException
RepositoryException
public static void createProperty(Resource elementResource, java.lang.String propName, java.lang.String propValue, java.lang.Boolean override)
elementResource
- propName
- propValue
- override
- Copyright © 2010 - 2020 Adobe. All Rights Reserved