Class ChangeNotification
- java.lang.Object
-
- com.ellucian.ethos.integration.client.messages.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 Summary
Constructors Constructor Description ChangeNotification()
Creates an instance of a change-notification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
getContent()
Gets the content of the resource that was changed.String
getContentType()
Gets the content-type associated with the content object.String
getId()
Gets the ID of the change-notificationString
getOperation()
Gets the operation that occurred to the resource.Date
getPublished()
Gets the date and time that this change-notification was published.Publisher
getPublisher()
Gets the publishing application informationResource
getResource()
Gets the resource to which the change occurred.void
setContent(com.fasterxml.jackson.databind.JsonNode content)
Sets the content.void
setContentType(String contentType)
Sets the contentType.String
toString()
Provides a string representation of this ChangeNotification in JSON format.
-
-
-
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.
-
-