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 PublishableResource
Implementation of the publishable resource interface and adaptable from a
resource.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final org.apache.sling.api.resource.Resource -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LEGACY_PUBLISHED_PROPERTY
- See Also:
-
resource
protected final org.apache.sling.api.resource.Resource resource
-
-
Constructor Details
-
PublishableResourceImpl
@Inject public PublishableResourceImpl(org.apache.sling.api.resource.Resource resource)
-
-
Method Details
-
getContentResource
public org.apache.sling.api.resource.Resource getContentResource()- Specified by:
getContentResourcein interfacePublishableResource
-
getCreated
- Specified by:
getCreatedin interfacePublishableResource
-
getCreatedBy
- Specified by:
getCreatedByin interfacePublishableResource
-
getLastModified
- Specified by:
getLastModifiedin interfacePublishableResource
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfacePublishableResource
-
getLastPublicationType
- Specified by:
getLastPublicationTypein interfacePublishableResource
-
getLastPublication
- Specified by:
getLastPublicationin interfacePublishableResource
-
getLastPublicationBy
- Specified by:
getLastPublicationByin interfacePublishableResource
-
getName
- Specified by:
getNamein interfacePublishableResource
-
getParent
public org.apache.sling.api.resource.Resource getParent()- Specified by:
getParentin interfacePublishableResource
-
getPath
- Specified by:
getPathin interfacePublishableResource
-
getProperties
public org.apache.sling.api.resource.ValueMap getProperties()- Specified by:
getPropertiesin interfacePublishableResource
-
getPublishedPath
- Specified by:
getPublishedPathin interfacePublishableResource
-
getPublishedUrl
- Specified by:
getPublishedUrlin interfacePublishableResource
-
getResource
public org.apache.sling.api.resource.Resource getResource()- Specified by:
getResourcein interfacePublishableResource
-
getSite
- Specified by:
getSitein interfacePublishableResource
-
isPublished
public boolean isPublished()- Specified by:
isPublishedin interfacePublishableResource
-