public class NotificationResponse extends Object implements Serializable
| Constructor and Description |
|---|
NotificationResponse() |
NotificationResponse(List<NotificationCategory> categories,
List<NotificationError> errors) |
NotificationResponse(NotificationResponse response) |
| Modifier and Type | Method and Description |
|---|---|
NotificationResponse |
combine(NotificationResponse response)
Combine the contents of this response with the provided response and
return a new instance of
NotificationResponse. |
NotificationResponse |
filterErrors(Set<Integer> hiddenErrorKeys)
Return a new instance of
NotificationResponse from which
the specified errors have been removed. |
List<NotificationCategory> |
getCategories() |
List<NotificationError> |
getErrors() |
void |
setCategories(List<NotificationCategory> categories) |
void |
setErrors(List<NotificationError> errors) |
String |
toString() |
public NotificationResponse()
public NotificationResponse(NotificationResponse response)
public NotificationResponse(List<NotificationCategory> categories, List<NotificationError> errors)
public List<NotificationCategory> getCategories()
public void setCategories(List<NotificationCategory> categories)
public List<NotificationError> getErrors()
public void setErrors(List<NotificationError> errors)
public NotificationResponse combine(NotificationResponse response)
NotificationResponse. The
original instances are unchanged.A - new NotificationResponse that contains data from both
originalspublic NotificationResponse filterErrors(Set<Integer> hiddenErrorKeys)
NotificationResponse from which
the specified errors have been removed. The original instances are
unchanged.A - new NotificationResponse that does not contain the
specified errorsCopyright © 2013 Jasig. All Rights Reserved.