Class ChangeNotificationFactory
- java.lang.Object
-
- com.ellucian.ethos.integration.client.messages.ChangeNotificationFactory
-
public class ChangeNotificationFactory extends Object
A Factory class to help with building ChangeNotification objects.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description ChangeNotificationFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChangeNotification
createCNFromJson(String json)
Create a ChangeNotification object using a JSON string.static List<ChangeNotification>
createCNListFromJson(String json)
Create a ChangeNotification array using a JSON string.
-
-
-
Method Detail
-
createCNFromJson
public static ChangeNotification createCNFromJson(String json) throws com.fasterxml.jackson.core.JsonProcessingException
Create a ChangeNotification object using a JSON string. This will attempt to parse the given string into a ChangeNotification object.- Parameters:
json
- The JSON string representing a change-notification.- Returns:
- A ChangeNotification object created from the given JSON string.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- if the string cannot be parsed to create a ChangeNotification
-
createCNListFromJson
public static List<ChangeNotification> createCNListFromJson(String json) throws com.fasterxml.jackson.core.JsonProcessingException
Create a ChangeNotification array using a JSON string. This will attempt to parse the given string into a ChangeNotification array.- Parameters:
json
- The JSON string representing an array of change-notifications.- Returns:
- A ChangeNotification array created from the given JSON string.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- if the string cannot be parsed to create a ChangeNotifications array
-
-