Package org.apache.sling.cms.publication
Class PublicationEvent
java.lang.Object
org.osgi.service.event.Event
org.apache.sling.cms.publication.PublicationEvent
public class PublicationEvent
extends org.osgi.service.event.Event
Helper for generating OSGi Events for publication events
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicationEventpublish(PublishableResource resource, boolean deep) Creates an event to be fired when a publication occurs.static PublicationEventunpublish(PublishableResource resource, boolean deep) Creates an event to be fired when a unpublish occurs.Methods inherited from class org.osgi.service.event.Event
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toString
-
Field Details
-
EVENT_PUBLISH
- See Also:
-
EVENT_UNPUBLISH
- See Also:
-
PN_PUBLICATION_TYPE
- See Also:
-
PN_DEEP
- See Also:
-
-
Method Details
-
publish
Creates an event to be fired when a publication occurs.- Parameters:
resource- the content publisheddeep- if true publish the resource and all child resources- Returns:
- the publish event
-
unpublish
Creates an event to be fired when a unpublish occurs.- Parameters:
resource- the content unpublishdeep- if true unpublish the resource and all child resources- Returns:
- the unpublish event
-