Package org.apache.sling.cms
Interface EditableResource
-
@ProviderType public interface EditableResourceA interface for representing a resource that can be edited through the Sling CMS.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentgetComponent()Get the component associated with this resourceorg.apache.sling.api.resource.ResourcegetComponentResource()Gets the resource backing the component for the specified resource.StringgetEditPath()Returns the path for the editor for this resource if availableorg.apache.sling.api.resource.ResourcegetEditResource()Returns the resource for the editor for this resource if availableorg.apache.sling.api.resource.ResourcegetResource()Gets the current resource.
-
-
-
Method Detail
-
getComponent
Component getComponent()
Get the component associated with this resource- Returns:
- the component associated with this resource
-
getComponentResource
org.apache.sling.api.resource.Resource getComponentResource()
Gets the resource backing the component for the specified resource.- Returns:
- the component for the specified resource
-
getEditPath
String getEditPath()
Returns the path for the editor for this resource if available- Returns:
- the editor path or null
-
getEditResource
org.apache.sling.api.resource.Resource getEditResource()
Returns the resource for the editor for this resource if available- Returns:
- the editor resource or null
-
getResource
org.apache.sling.api.resource.Resource getResource()
Gets the current resource.- Returns:
- the current resource
-
-