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
Fields Modifier and Type Field Description static String
LEGACY_PUBLISHED_PROPERTY
protected org.apache.sling.api.resource.Resource
resource
-
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.Resource
getContentResource()
Calendar
getCreated()
String
getCreatedBy()
Calendar
getLastModified()
String
getLastModifiedBy()
Calendar
getLastPublication()
String
getLastPublicationBy()
PublicationType
getLastPublicationType()
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()
-
-
-
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:
getContentResource
in interfacePublishableResource
-
getCreated
public Calendar getCreated()
- Specified by:
getCreated
in interfacePublishableResource
-
getCreatedBy
public String getCreatedBy()
- Specified by:
getCreatedBy
in interfacePublishableResource
-
getLastModified
public Calendar getLastModified()
- Specified by:
getLastModified
in interfacePublishableResource
-
getLastModifiedBy
public String getLastModifiedBy()
- Specified by:
getLastModifiedBy
in interfacePublishableResource
-
getLastPublicationType
public PublicationType getLastPublicationType()
- Specified by:
getLastPublicationType
in interfacePublishableResource
-
getLastPublication
public Calendar getLastPublication()
- Specified by:
getLastPublication
in interfacePublishableResource
-
getLastPublicationBy
public String getLastPublicationBy()
- Specified by:
getLastPublicationBy
in interfacePublishableResource
-
getName
public String getName()
- Specified by:
getName
in interfacePublishableResource
-
getParent
public org.apache.sling.api.resource.Resource getParent()
- Specified by:
getParent
in interfacePublishableResource
-
getPath
public String getPath()
- Specified by:
getPath
in interfacePublishableResource
-
getProperties
public org.apache.sling.api.resource.ValueMap getProperties()
- Specified by:
getProperties
in interfacePublishableResource
-
getPublishedPath
public String getPublishedPath()
- Specified by:
getPublishedPath
in interfacePublishableResource
-
getPublishedUrl
public String getPublishedUrl()
- Specified by:
getPublishedUrl
in interfacePublishableResource
-
getResource
public org.apache.sling.api.resource.Resource getResource()
- Specified by:
getResource
in interfacePublishableResource
-
getSite
public Site getSite()
- Specified by:
getSite
in interfacePublishableResource
-
isPublished
public boolean isPublished()
- Specified by:
isPublished
in interfacePublishableResource
-
-