@ProviderType
public interface File
Modifier and Type | Method and Description |
---|---|
org.apache.sling.api.resource.Resource |
getContentResource()
Retrieves the content Resource of the file
|
java.lang.String |
getContentType()
Gets the content type of this file
|
java.util.Calendar |
getCreated()
Gets the date the file was created
|
java.lang.String |
getCreatedBy()
Gets the name of the user whom created this file
|
java.util.Calendar |
getLastModified()
Gets the last time this file was modified
|
java.lang.String |
getLastModifiedBy()
Gets the username of the user who last modified the file
|
org.apache.sling.api.resource.ValueMap |
getMetadata()
Retrieves the metadata extracted from the file.
|
java.lang.String |
getName()
Gets the name of the Sling Resource backing the file
|
org.apache.sling.api.resource.Resource |
getParent()
Gets the parent of the current file
|
java.lang.String |
getPath()
Get the path this file resides within the repository
|
org.apache.sling.api.resource.ValueMap |
getProperties()
Gets a ValueMap of the properties of the content resource for this page
|
java.lang.String |
getPublishedPath()
Gets the path of this file after it is published on the site's primary domain
with the the html extension
|
java.lang.String |
getPublishedUrl()
Gets the full url (including domain) of this file after it is published on
the site's primary domain
|
org.apache.sling.api.resource.Resource |
getResource()
Gets the resource backing this file
|
Site |
getSite()
Gets the site this file is contained within
|
boolean |
isPublished()
Returns true if the file is published, false otherwise
|
java.lang.String getPublishedPath()
java.lang.String getPublishedUrl()
Site getSite()
org.apache.sling.api.resource.Resource getContentResource()
java.util.Calendar getCreated()
java.lang.String getCreatedBy()
java.util.Calendar getLastModified()
java.lang.String getLastModifiedBy()
org.apache.sling.api.resource.ValueMap getMetadata()
java.lang.String getName()
org.apache.sling.api.resource.Resource getParent()
java.lang.String getPath()
org.apache.sling.api.resource.ValueMap getProperties()
boolean isPublished()
org.apache.sling.api.resource.Resource getResource()
java.lang.String getContentType()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.