Package org.apache.sling.cms.publication
Interface PublicationManager
-
public interface PublicationManagerPublication 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull PUBLICATION_MODEgetPublicationMode()The publication mode for the instancevoidpublish(@NotNull PublishableResource resource)Publishes the resource.voidunpublish(@NotNull PublishableResource resource)Un-publishes the resource.
-
-
-
Method Detail
-
publish
void publish(@NotNull @NotNull PublishableResource resource) throws PublicationExceptionPublishes the resource.- Parameters:
resource- the resource to publish- Throws:
PublicationException- an exception occurs publishing the resource
-
unpublish
void unpublish(@NotNull @NotNull PublishableResource resource) throws PublicationExceptionUn-publishes the resource.- Parameters:
resource- the resource to publish- Throws:
PublicationException- an exception occurs publishing the resource
-
getPublicationMode
@NotNull @NotNull PUBLICATION_MODE getPublicationMode()
The publication mode for the instance- Returns:
- the publication mode
-
-