@Model(adaptables=org.apache.sling.api.resource.Resource.class,
adapters=org.apache.sling.cms.File.class)
public class FileImpl
extends Object
implements File
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.sling.api.resource.Resource |
resource |
| Constructor and Description |
|---|
FileImpl(org.apache.sling.api.resource.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.sling.api.resource.Resource |
getContentResource() |
String |
getContentType() |
Calendar |
getCreated() |
String |
getCreatedBy() |
Calendar |
getLastModified() |
String |
getLastModifiedBy() |
org.apache.sling.api.resource.ValueMap |
getMetadata() |
String |
getName() |
org.apache.sling.api.resource.Resource |
getParent() |
String |
getPath() |
org.apache.sling.api.resource.ValueMap |
getProperties() |
String |
getPublishedPath() |
String |
getPublishedUrl() |
org.apache.sling.api.resource.Resource |
getResource() |
Site |
getSite() |
boolean |
isPublished() |
public org.apache.sling.api.resource.Resource getContentResource()
getContentResource in interface Filepublic String getContentType()
getContentType in interface Filepublic Calendar getCreated()
getCreated in interface Filepublic String getCreatedBy()
getCreatedBy in interface Filepublic Calendar getLastModified()
getLastModified in interface Filepublic String getLastModifiedBy()
getLastModifiedBy in interface Filepublic org.apache.sling.api.resource.ValueMap getMetadata()
getMetadata in interface Filepublic org.apache.sling.api.resource.Resource getParent()
public org.apache.sling.api.resource.ValueMap getProperties()
getProperties in interface Filepublic String getPublishedPath()
getPublishedPath in interface Filepublic String getPublishedUrl()
getPublishedUrl in interface Filepublic org.apache.sling.api.resource.Resource getResource()
getResource in interface Filepublic boolean isPublished()
isPublished in interface FileCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.