public class NotificationEvent extends Object implements Comparable<NotificationEvent>
eu.dnetlib.api.functionality.NotificationService,
eu.dnetlib.functionality.notification.executor.NotificationQueryExecutor,
NotificationQuery,
NotificationSchedule,
NotificationResult,
NotificationSubscription| Constructor and Description |
|---|
NotificationEvent()
Construct a new notification event with query identifier and date set to null.
|
NotificationEvent(String queryId,
Date date)
Construct a new notification event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NotificationEvent event) |
boolean |
equals(Object object) |
Date |
getDate()
Get the date of this event.
|
String |
getQueryId()
Get the query of this event.
|
int |
hashCode() |
void |
setDate(Date date)
Set the date of this event.
|
void |
setQueryId(String queryId)
Set the query of this event.
|
String |
toString() |
public NotificationEvent(String queryId, Date date)
queryId - the unique identifier of the query that generated this eventdate - the date the event was generatedpublic NotificationEvent()
public String getQueryId()
public void setQueryId(String queryId)
queryId - the unique identifier of the query of this eventpublic Date getDate()
public void setDate(Date date)
date - the date of this eventpublic int compareTo(NotificationEvent event)
compareTo in interface Comparable<NotificationEvent>Copyright © 2017. All rights reserved.