Package org.apache.sling.cms.publication
Interface PublicationManager
public interface PublicationManager
Publication Manager is used to get the publication status of content and get
the instances' publication mode.
Adaptable from a ResourceResolver.
- See Also:
-
ResourceResolver
-
Method Summary
Modifier and TypeMethodDescription@NotNull PUBLICATION_MODEThe publication mode for the instancevoidpublish(@NotNull PublishableResource resource) Publishes the resource.voidunpublish(@NotNull PublishableResource resource) Un-publishes the resource.
-
Method Details
-
publish
Publishes the resource.- Parameters:
resource- the resource to publish- Throws:
PublicationException- an exception occurs publishing the resource
-
unpublish
Un-publishes the resource.- Parameters:
resource- the resource to publish- Throws:
PublicationException- an exception occurs publishing the resource
-
getPublicationMode
The publication mode for the instance- Returns:
- the publication mode
-