Uses of Class
com.composum.sling.core.ResourceHandle
-
-
Uses of ResourceHandle in com.composum.sling.clientlibs.handle
Fields in com.composum.sling.clientlibs.handle declared as ResourceHandle Modifier and Type Field Description protected ResourceHandle
FileHandle. content
ResourceHandle
Clientlib. resource
ResourceHandle
ClientlibResourceFolder. resource
protected ResourceHandle
FileHandle. resource
Methods in com.composum.sling.clientlibs.handle that return ResourceHandle Modifier and Type Method Description ResourceHandle
FileHandle. getContent()
Handle to the content node of the file; not null.ResourceHandle
FileHandle. getResource()
Handle to the main node of the file; not null.protected ResourceHandle
FileHandle. retrieveContent()
-
Uses of ResourceHandle in com.composum.sling.core
Fields in com.composum.sling.core declared as ResourceHandle Modifier and Type Field Description protected ResourceHandle
AbstractSlingBean. resource
the resource represented by this bean (initialized)Methods in com.composum.sling.core that return ResourceHandle Modifier and Type Method Description ResourceHandle
ResourceHandle. clone()
Returns a shallow clone, if you want to modify attributes likesetInheritanceType(InheritedValues.Type)
without affecting the original.ResourceHandle
ResourceHandle. findUpwards(String basePath, Pattern namePattern, String childType)
Retrieves a child of this resource or a parent specified by its base path, name pattern and type; for example findUpwards("jcr:content", Pattern.compile("^some.*$"), "sling:Folder").ResourceHandle
AbstractSlingBean. getContentResource()
ResourceHandle
ResourceHandle. getContentResource()
Retrieves the 'content' resource of this resource.ResourceHandle
AbstractSlingBean. getParent(String resourceType)
Determine a typed parent resource.ResourceHandle
AbstractSlingBean. getParent(String resourceType, String path)
Use path instead of resource (e.g.@Nullable ResourceHandle
ResourceHandle. getParent()
@Nullable ResourceHandle
ResourceHandle. getParent(int distance)
Returns the {distance}-th parent - getParent(1) is just getParent().@NotNull ResourceHandle
AbstractSlingBean. getResource()
the getter for the resource which defines this bean instance.static @NotNull ResourceHandle
ResourceHandle. use(@Nullable org.apache.sling.api.resource.Resource resource)
The 'adaptTo' like wrapping helper.ResourceHandle
ResourceHandle. withInheritanceType(InheritedValues.Type type)
Returns aResourceHandle
with the given inheritance type forgetInherited(String, Class)
andgetInherited(String, Object)
.Methods in com.composum.sling.core that return types with arguments of type ResourceHandle Modifier and Type Method Description List<ResourceHandle>
ResourceHandle. getChildrenByResourceType(String resourceType)
retrieves all children of a sling:resourceTypeList<ResourceHandle>
ResourceHandle. getChildrenByType(String type)
retrieves all children of a typeMethods in com.composum.sling.core with parameters of type ResourceHandle Modifier and Type Method Description protected static <AdapterType>
AdapterTypeCoreAdapterFactory. getAdapter(ResourceHandle resourceHandle, Class<AdapterType> type)
HandlesresourceHandle.adaptTo(ResourceHandle.class)
. -
Uses of ResourceHandle in com.composum.sling.core.mapping.jcr
Methods in com.composum.sling.core.mapping.jcr with parameters of type ResourceHandle Modifier and Type Method Description protected ResourceFilter
ResourceFilterMapping.FilterSetStrategy. createInstance(ResourceHandle resource, Class<? extends ResourceFilter> type)
protected ResourceFilter
ResourceFilterMapping.GeneralStrategy. createInstance(ResourceHandle resource, Class<? extends ResourceFilter> type)
protected ResourceFilter
ResourceFilterMapping.PatternFilterStrategy. createInstance(ResourceHandle resource, Class<? extends ResourceFilter> type)
protected ResourceFilter
ResourceFilterMapping.PredefinedFilterStrategy. createInstance(ResourceHandle resource, Class<? extends ResourceFilter> type)
protected ResourceFilter
ResourceFilterMapping.PropertyFilterStrategy. createInstance(ResourceHandle resource, Class<? extends ResourceFilter> type)
protected StringFilter
StringFilterMapping.AllFilterStrategy. createInstance(ResourceHandle resource, Class<? extends StringFilter> type)
protected StringFilter
StringFilterMapping.FilterSetStrategy. createInstance(ResourceHandle resource, Class<? extends StringFilter> type)
protected StringFilter
StringFilterMapping.GeneralStrategy. createInstance(ResourceHandle resource, Class<? extends StringFilter> type)
protected StringFilter
StringFilterMapping.PatternFilterStrategy. createInstance(ResourceHandle resource, Class<? extends StringFilter> type)
-
Uses of ResourceHandle in com.composum.sling.core.security
Constructors in com.composum.sling.core.security with parameters of type ResourceHandle Constructor Description ConfigScript(@NotNull ConfigurationSet.Configuration configuration, @NotNull ResourceHandle handle)
Configuration(@NotNull ResourceHandle handle)
-
Uses of ResourceHandle in com.composum.sling.core.servlet
Methods in com.composum.sling.core.servlet that return ResourceHandle Modifier and Type Method Description static @NotNull ResourceHandle
AbstractServiceServlet. getResource(org.apache.sling.api.SlingHttpServletRequest request)
Retrieves the resource using the suffix from the request.protected ResourceHandle
ServletOperationSet. getResource(org.apache.sling.api.SlingHttpServletRequest request)
the extension hook if the resource is not simply build by the suffixstatic @NotNull ResourceHandle
AbstractServiceServlet. tryToUseRawSuffix(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull ResourceHandle resource)
Methods in com.composum.sling.core.servlet with parameters of type ResourceHandle Modifier and Type Method Description void
NodeTreeServlet. addVirtualContent(com.google.gson.stream.JsonWriter writer, NodeTreeServlet.TreeNodeStrategy nodeStrategy, ResourceHandle resource, NodeTreeServlet.LabelType labelType)
void
NodeTreeServlet.TreeOperation. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
void
ServletOperation. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
void
SetupServlet.RunSetupScripts. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, ResourceHandle resource)
void
SystemServlet.GetNodeTypes. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
void
SystemServlet.GetPropertyTypes. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
void
SystemServlet.JsonTypeahead. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
void
TranslationServlet.TranslateObject. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
void
TranslationServlet.TranslateStatus. doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
String
NodeTreeServlet.DefaultTreeNodeStrategy. getContentTypeKey(ResourceHandle resource, String prefix)
static String
NodeTreeServlet. getContentTypeKey(NodeTreeServlet.TreeNodeStrategy strategy, ResourceHandle resource, String prefix)
String
NodeTreeServlet.TreeNodeStrategy. getContentTypeKey(ResourceHandle resource, String prefix)
static String
NodeTreeServlet. getFileTypeKey(ResourceHandle resource, String prefix)
static String
NodeTreeServlet. getMimeTypeKey(ResourceHandle resource, String prefix)
String
NodeTreeServlet. getNodeLabel(ResourceHandle resource, NodeTreeServlet.LabelType labelType)
static String
NodeTreeServlet. getPrimaryTypeKey(ResourceHandle resource)
static String
NodeTreeServlet. getResourceTypeKey(ResourceHandle resource, String prefix)
String
NodeTreeServlet.DefaultTreeNodeStrategy. getTypeKey(ResourceHandle resource)
String
NodeTreeServlet.TreeNodeStrategy. getTypeKey(ResourceHandle resource)
protected List<org.apache.sling.api.resource.Resource>
NodeTreeServlet. prepareTreeItems(ResourceHandle resource, List<org.apache.sling.api.resource.Resource> items)
extension hook for additional filters or sortingstatic @NotNull ResourceHandle
AbstractServiceServlet. tryToUseRawSuffix(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull ResourceHandle resource)
void
NodeTreeServlet. writeJsonNode(com.google.gson.stream.JsonWriter writer, NodeTreeServlet.TreeNodeStrategy nodeStrategy, ResourceHandle resource, NodeTreeServlet.LabelType labelType, boolean isVirtual)
void
NodeTreeServlet. writeJsonNodeData(com.google.gson.stream.JsonWriter writer, NodeTreeServlet.TreeNodeStrategy nodeStrategy, ResourceHandle resource, NodeTreeServlet.LabelType labelType, boolean isVirtual)
String
NodeTreeServlet. writeNodeIdentifiers(com.google.gson.stream.JsonWriter writer, NodeTreeServlet.TreeNodeStrategy nodeStrategy, ResourceHandle resource, NodeTreeServlet.LabelType labelType, boolean isVirtual)
void
NodeTreeServlet. writeNodeJcrState(com.google.gson.stream.JsonWriter writer, ResourceHandle resource)
void
NodeTreeServlet. writeNodeTreeType(com.google.gson.stream.JsonWriter writer, ResourceFilter filter, ResourceHandle resource, boolean isVirtual)
-
Uses of ResourceHandle in com.composum.sling.core.util
Methods in com.composum.sling.core.util with parameters of type ResourceHandle Modifier and Type Method Description static String
LinkUtil. getExtension(ResourceHandle resource, String extension)
Returns the extension for a URL to a resource based on a predefined value (can be null or '').static @NotNull String
LinkUtil. getExtension(ResourceHandle resource, String extension, boolean detectMimeTypeExtension)
Returns the extension for a URL to a resource based on a predefined value (can be null or '').protected static String
LinkUtil. getFinalTarget(ResourceHandle resource, List<String> trace)
Determines the 'final URL' of a link to a resource by traversing along the 'redirect' properties.
-