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 Details

  • Method Details

    • publish

      public static PublicationEvent publish(PublishableResource resource, boolean deep)
      Creates an event to be fired when a publication occurs.
      Parameters:
      resource - the content published
      deep - if true publish the resource and all child resources
      Returns:
      the publish event
    • unpublish

      public static PublicationEvent unpublish(PublishableResource resource, boolean deep)
      Creates an event to be fired when a unpublish occurs.
      Parameters:
      resource - the content unpublish
      deep - if true unpublish the resource and all child resources
      Returns:
      the unpublish event