public class NotificationSubscription extends Object implements Comparable<NotificationSubscription>
eu.dnetlib.api.functionality.NotificationService,
eu.dnetlib.functionality.notification.executor.NotificationQueryExecutor,
NotificationQuery,
NotificationSchedule,
NotificationEvent,
NotificationResult| Constructor and Description |
|---|
NotificationSubscription()
Construct a new notification subscription with query identifier and alert service set to null and enabled set to false.
|
NotificationSubscription(String queryId,
URL alertService,
boolean enabled)
Construct a new notification subscription.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NotificationSubscription subscription) |
boolean |
equals(Object object) |
URL |
getAlertService()
Get the alert service of this subscription.
|
String |
getQueryId()
Get the query of this subscription.
|
int |
hashCode() |
boolean |
isEnabled()
Check if this subscription is enabled.
|
void |
setAlertService(URL alertService)
Set the alert service of this subscription.
|
void |
setEnabled(boolean enabled)
Set the enabled status of this subscription.
|
void |
setQueryId(String queryId)
Set the query of this subscription.
|
String |
toString() |
public NotificationSubscription(String queryId, URL alertService, boolean enabled)
queryId - the unique identifier of the query of this subscriptionalertService - the URL of the alert service of this subscriptionenabled - true if this subscription is currently enabled, false if it currently disabledpublic NotificationSubscription()
public String getQueryId()
public void setQueryId(String queryId)
queryId - the unique identifier of the query of this subscriptionpublic URL getAlertService()
public void setAlertService(URL alertService)
alertService - the URL of the alert service of this subscriptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - true to enable this subscription, false to disable itpublic int compareTo(NotificationSubscription subscription)
compareTo in interface Comparable<NotificationSubscription>Copyright © 2017. All rights reserved.