Class ChangeNotification


  • public class ChangeNotification
    extends Object
    An object representation of a change-notification. A change-notification is the resource that is published and consumed via subscriptions through the Ethos Integration messages service.
    Since:
    0.0.1
    • Constructor Detail

      • ChangeNotification

        public ChangeNotification()
        Creates an instance of a change-notification.
    • Method Detail

      • getId

        public String getId()
        Gets the ID of the change-notification
        Returns:
        the ID of the change-notification
      • getPublished

        public Date getPublished()
        Gets the date and time that this change-notification was published. This will be in the UTC time zone.
        Returns:
        the published date and time
      • getPublisher

        public Publisher getPublisher()
        Gets the publishing application information
        Returns:
        the publisher info
      • getResource

        public Resource getResource()
        Gets the resource to which the change occurred.
        Returns:
        the resource that changed
      • getOperation

        public String getOperation()
        Gets the operation that occurred to the resource.
        Returns:
        the change operation
      • getContentType

        public String getContentType()
        Gets the content-type associated with the content object.
        Returns:
        the resource content-type
      • setContentType

        public void setContentType​(String contentType)
        Sets the contentType. Used to replace the contentType if needed.
        Parameters:
        contentType - The contentType to replace the current contentType of this ChangeNotification.
      • getContent

        public com.fasterxml.jackson.databind.JsonNode getContent()
        Gets the content of the resource that was changed.
        Returns:
        the content of the changed resource
      • setContent

        public void setContent​(com.fasterxml.jackson.databind.JsonNode content)
        Sets the content. Used to replace the content if needed.
        Parameters:
        content - The content of the resource to replace the current content with.
      • toString

        public String toString()
        Provides a string representation of this ChangeNotification in JSON format.
        Overrides:
        toString in class Object
        Returns:
        A JSON formatted string of this ChangeNotification.