public interface InternalSCFUtilities
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_AVATAR |
Modifier and Type | Method and Description |
---|---|
Page |
getPage(java.lang.String path,
ResourceResolver resolver) |
java.lang.String |
getPagePath(Resource resource)
Returns the given
resource 's path without its potential /jcr:content/... suffix, thus
representing a page path. |
java.lang.String |
getPagePath(java.lang.String path)
Returns the given
resource 's path without its potential /jcr:content/... suffix, thus
representing a page path. |
java.lang.String |
getResourceTypeForIncludedResource(Resource component,
java.lang.String defaultResourceType,
java.lang.String designPropertyName)
Returns the resource type of a Component when it is included dynamically via cq:include.
|
java.lang.String |
getResourceTypeFromDesign(Resource resource,
java.lang.String styleProperty,
java.lang.String defaultValue)
Returns the resource type from the design applied to the resource.
|
static final java.lang.String DEFAULT_AVATAR
@CheckForNull java.lang.String getPagePath(@Nullable 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.@CheckForNull java.lang.String getPagePath(@Nullable java.lang.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.@CheckForNull Page getPage(java.lang.String path, ResourceResolver resolver)
path
- path to the pageresolver
- resolver to usPage
object for the given path if a page exists, null otherwise.@CheckForNull java.lang.String getResourceTypeFromDesign(Resource resource, java.lang.String styleProperty, java.lang.String defaultValue)
resource
- the resource to check the design property forstyleProperty
- the name of the design property to checkdefaultValue
- a default string value@CheckForNull java.lang.String getResourceTypeForIncludedResource(Resource component, java.lang.String defaultResourceType, java.lang.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 useCopyright © 2010 - 2020 Adobe. All Rights Reserved