@Model(adaptables=org.apache.sling.api.resource.Resource.class,
adapters=org.apache.sling.cms.EditableResource.class)
public class EditableResourceImpl
extends Object
implements EditableResource
| Constructor and Description |
|---|
EditableResourceImpl(org.apache.sling.api.resource.Resource resource) |
| Modifier and Type | Method and 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 available
|
org.apache.sling.api.resource.Resource |
getEditResource()
Returns the resource for the editor for this resource if available
|
org.apache.sling.api.resource.Resource |
getResource()
Gets the current resource.
|
public EditableResourceImpl(org.apache.sling.api.resource.Resource resource)
public Component getComponent()
getComponent in interface EditableResourcepublic org.apache.sling.api.resource.Resource getComponentResource()
getComponentResource in interface EditableResourcepublic String getEditPath()
getEditPath in interface EditableResourcepublic org.apache.sling.api.resource.Resource getEditResource()
getEditResource in interface EditableResourcepublic org.apache.sling.api.resource.Resource getResource()
getResource in interface EditableResourceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.