public interface InternalSCFUtilities
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_AVATAR |
| Modifier and Type | Method and Description |
|---|---|
Page |
getPage(String path,
ResourceResolver resolver) |
String |
getPagePath(Resource resource)
Returns the given
resource's path without its potential /jcr:content/... suffix, thus
representing a page path. |
String |
getPagePath(String path)
Returns the given
resource's path without its potential /jcr:content/... suffix, thus
representing a page path. |
String |
getResourceTypeForIncludedResource(Resource component,
String defaultResourceType,
String designPropertyName)
Returns the resource type of a Component when it is included dynamically via cq:include.
|
String |
getResourceTypeFromDesign(Resource resource,
String styleProperty,
String defaultValue)
Returns the resource type from the design applied to the resource.
|
static final String DEFAULT_AVATAR
String getPagePath(Resource resource)
resource's path without its potential /jcr:content/... suffix, thus
representing a page path.resource - The resource to check.String representing the page path.String getPagePath(String path)
resource's path without its potential /jcr:content/... suffix, thus
representing a page path.path - The path to check.String representing the page path.Page getPage(String path, ResourceResolver resolver)
path - path to the pageresolver - resolver to usPage object for the given path if a page exists, null otherwise.String getResourceTypeFromDesign(Resource resource, String styleProperty, String defaultValue)
resource - the resource to check the design property forstyleProperty - the name of the design property to checkdefaultValue - a default string valueString getResourceTypeForIncludedResource(Resource component, String defaultResourceType, String designPropertyName)
component - the component to determine the type fordefaultResourceType - the fall back if no suitable matchers are founddesignPropertyName - the name of the design property to try and use"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"