Class PublishableResourceImpl
- java.lang.Object
-
- org.apache.sling.cms.core.internal.models.PublishableResourceImpl
-
- All Implemented Interfaces:
PublishableResource
@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.PublishableResource.class) public class PublishableResourceImpl extends Object implements PublishableResourceImplementation of the publishable resource interface and adaptable from a resource.
-
-
Field Summary
Fields Modifier and Type Field Description static StringLEGACY_PUBLISHED_PROPERTYprotected org.apache.sling.api.resource.Resourceresource
-
Constructor Summary
Constructors Constructor Description PublishableResourceImpl(org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.api.resource.ResourcegetContentResource()CalendargetCreated()StringgetCreatedBy()CalendargetLastModified()StringgetLastModifiedBy()CalendargetLastPublication()StringgetLastPublicationBy()PublicationTypegetLastPublicationType()StringgetName()org.apache.sling.api.resource.ResourcegetParent()StringgetPath()org.apache.sling.api.resource.ValueMapgetProperties()StringgetPublishedPath()StringgetPublishedUrl()org.apache.sling.api.resource.ResourcegetResource()SitegetSite()booleanisPublished()
-
-
-
Field Detail
-
LEGACY_PUBLISHED_PROPERTY
public static final String LEGACY_PUBLISHED_PROPERTY
- See Also:
- Constant Field Values
-
resource
protected final org.apache.sling.api.resource.Resource resource
-
-
Method Detail
-
getContentResource
public org.apache.sling.api.resource.Resource getContentResource()
- Specified by:
getContentResourcein interfacePublishableResource
-
getCreated
public Calendar getCreated()
- Specified by:
getCreatedin interfacePublishableResource
-
getCreatedBy
public String getCreatedBy()
- Specified by:
getCreatedByin interfacePublishableResource
-
getLastModified
public Calendar getLastModified()
- Specified by:
getLastModifiedin interfacePublishableResource
-
getLastModifiedBy
public String getLastModifiedBy()
- Specified by:
getLastModifiedByin interfacePublishableResource
-
getLastPublicationType
public PublicationType getLastPublicationType()
- Specified by:
getLastPublicationTypein interfacePublishableResource
-
getLastPublication
public Calendar getLastPublication()
- Specified by:
getLastPublicationin interfacePublishableResource
-
getLastPublicationBy
public String getLastPublicationBy()
- Specified by:
getLastPublicationByin interfacePublishableResource
-
getName
public String getName()
- Specified by:
getNamein interfacePublishableResource
-
getParent
public org.apache.sling.api.resource.Resource getParent()
- Specified by:
getParentin interfacePublishableResource
-
getPath
public String getPath()
- Specified by:
getPathin interfacePublishableResource
-
getProperties
public org.apache.sling.api.resource.ValueMap getProperties()
- Specified by:
getPropertiesin interfacePublishableResource
-
getPublishedPath
public String getPublishedPath()
- Specified by:
getPublishedPathin interfacePublishableResource
-
getPublishedUrl
public String getPublishedUrl()
- Specified by:
getPublishedUrlin interfacePublishableResource
-
getResource
public org.apache.sling.api.resource.Resource getResource()
- Specified by:
getResourcein interfacePublishableResource
-
getSite
public Site getSite()
- Specified by:
getSitein interfacePublishableResource
-
isPublished
public boolean isPublished()
- Specified by:
isPublishedin interfacePublishableResource
-
-