public class NotificationResponse extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
NotificationResponse() |
NotificationResponse(List<NotificationCategory> categories,
List<NotificationError> errors) |
NotificationResponse(NotificationResponse response) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Implements deep-copy clone.
|
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. |
NotificationEntry |
findNotificationEntryById(String notificationId)
Returns the
NotificationEntry with the specified id, or null if
not present. |
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 NotificationEntry findNotificationEntryById(String notificationId)
NotificationEntry with the specified id, or null if
not present.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 errorspublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - Not really, but it's on the method
signature we're overriding.Copyright © 2013 Jasig. All Rights Reserved.