@Model(adaptables=org.apache.sling.api.resource.Resource.class,
adapters=org.apache.sling.cms.EditableResource.class)
public class EditableResourceImpl
extends java.lang.Object
implements org.apache.sling.cms.EditableResource
Constructor and Description |
---|
EditableResourceImpl(org.apache.sling.api.resource.Resource resource) |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.cms.Component |
getComponent() |
org.apache.sling.api.resource.Resource |
getComponentResource()
Gets the component for the specified resource.
|
java.lang.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 org.apache.sling.cms.Component getComponent()
getComponent
in interface org.apache.sling.cms.EditableResource
public org.apache.sling.api.resource.Resource getComponentResource()
getComponentResource
in interface org.apache.sling.cms.EditableResource
public java.lang.String getEditPath()
getEditPath
in interface org.apache.sling.cms.EditableResource
public org.apache.sling.api.resource.Resource getEditResource()
getEditResource
in interface org.apache.sling.cms.EditableResource
public org.apache.sling.api.resource.Resource getResource()
getResource
in interface org.apache.sling.cms.EditableResource
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.