* The list notification to copy
*/
public ListNotification(ListNotification<T> listNotification) {
- super(listNotification.getId(), new Template());
+ super(listNotification.getId(), listNotification.getCreatedTime(), listNotification.getLastUpdatedTime(), listNotification.isDismissable(), new Template());
this.key = listNotification.key;
getTemplate().add(listNotification.getTemplate());
getTemplate().getInitialContext().set(key, elements);
}
/**
- * Sets the elements to show in this notification.
+ * Sets the elements to show in this notification. This method will not call
+ * {@link #touch()}.
*
* @param elements
* The elements to show
public void setElements(Collection<? extends T> elements) {
this.elements.clear();
this.elements.addAll(elements);
- touch();
}
/**