Class EditableResourceImpl
- java.lang.Object
-
- org.apache.sling.cms.core.internal.models.EditableResourceImpl
-
- All Implemented Interfaces:
EditableResource
@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.EditableResource.class) public class EditableResourceImpl extends Object implements EditableResource
A model for representing a resource that can be edited through the Sling CMS.
-
-
Constructor Summary
Constructors Constructor Description EditableResourceImpl(org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getComponent()
org.apache.sling.api.resource.Resource
getComponentResource()
Gets the component for the specified resource.String
getEditPath()
Returns the path for the editor for this resource if availableorg.apache.sling.api.resource.Resource
getEditResource()
Returns the resource for the editor for this resource if availableorg.apache.sling.api.resource.Resource
getResource()
Gets the current resource.
-
-
-
Method Detail
-
getComponent
public Component getComponent()
- Specified by:
getComponent
in interfaceEditableResource
-
getComponentResource
public org.apache.sling.api.resource.Resource getComponentResource()
Gets the component for the specified resource.- Specified by:
getComponentResource
in interfaceEditableResource
- Returns:
- the component for the specified resource
-
getEditPath
public String getEditPath()
Returns the path for the editor for this resource if available- Specified by:
getEditPath
in interfaceEditableResource
- Returns:
- the editor path or null
-
getEditResource
public org.apache.sling.api.resource.Resource getEditResource()
Returns the resource for the editor for this resource if available- Specified by:
getEditResource
in interfaceEditableResource
- Returns:
- the editor resource or null
-
getResource
public org.apache.sling.api.resource.Resource getResource()
Gets the current resource.- Specified by:
getResource
in interfaceEditableResource
- Returns:
- the current resource
-
-