@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 File
public String getContentType()
getContentType
in interface File
public Calendar getCreated()
getCreated
in interface File
public String getCreatedBy()
getCreatedBy
in interface File
public Calendar getLastModified()
getLastModified
in interface File
public String getLastModifiedBy()
getLastModifiedBy
in interface File
public org.apache.sling.api.resource.ValueMap getMetadata()
getMetadata
in interface File
public org.apache.sling.api.resource.Resource getParent()
public org.apache.sling.api.resource.ValueMap getProperties()
getProperties
in interface File
public String getPublishedPath()
getPublishedPath
in interface File
public String getPublishedUrl()
getPublishedUrl
in interface File
public org.apache.sling.api.resource.Resource getResource()
getResource
in interface File
public boolean isPublished()
isPublished
in interface File
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.