public class AlertSubscription extends Object implements Comparable<AlertSubscription>
eu.dnetlib.api.functionality.AlertService,
eu.dnetlib.functionality.alert.alerter.Alerter,
AlertTopic,
AlertTemplate| Constructor and Description |
|---|
AlertSubscription()
Construct a new alert subscription with template identifier, notification service, query identifier, result identifier, alert mode and subscriber set to null and enabled set to false.
|
AlertSubscription(String templateId,
URL notificationService,
String queryId,
String resultId,
String alertMode,
URI subscriber,
boolean enabled)
Construct a new alert subscription.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AlertSubscription subscription) |
boolean |
equals(Object object) |
String |
getAlertMode()
Get the alert mode of this subscription.
|
URL |
getNotificationService()
Get the notification service of the topic of this subscription.
|
String |
getQueryId()
Set the notification query of the topic of this subscription.
|
String |
getResultId()
Get the notification result of the topic of this subscription.
|
URI |
getSubscriber()
Get the subscriber of this subscription.
|
String |
getTemplateId()
Get the template of the topic of this subscription.
|
int |
hashCode() |
boolean |
isEnabled()
Check if this subscription is enabled.
|
void |
setAlertMode(String alertMode)
Set the alert mode of this subscription
|
void |
setEnabled(boolean enabled)
Set the enabled status of this subscription.
|
void |
setNotificationService(URL notificationService)
Set the notification service of the topic of this subscription.
|
void |
setQueryId(String queryId)
Set the notification query of the topic of this subscription.
|
void |
setResultId(String resultId)
Set the notification result of the topic of this subscription.
|
void |
setSubscriber(URI subscriber)
Set the subscriber of this subscription.
|
void |
setTemplateId(String templateId)
Set the template of the topic of this subscription.
|
String |
toString() |
public AlertSubscription(String templateId, URL notificationService, String queryId, String resultId, String alertMode, URI subscriber, boolean enabled)
templateId - the unique identifier of the template of the topic of this subscriptionnotificationService - the URL of notification service of the topic of this subscriptionqueryId - the unique identifier of the notification service of the topic of this subscriptionresultId - the unique identifier of the notification result of the topic of this subscriptionalertMode - the alert mode of this subscriptionsubscriber - the URI of the subscriber of this topicenabled - true if this subscription is currently enabled, false if it is currently disabledpublic AlertSubscription()
public String getTemplateId()
public void setTemplateId(String templateId)
templateId - the unique identifier of the template of the topic of this subscriptionpublic URL getNotificationService()
public void setNotificationService(URL notificationService)
notificationService - the URL of the notification service of the topic of this subscriptionpublic String getQueryId()
public void setQueryId(String queryId)
queryId - the unique identifier of the notification query of the topic of this subscriptionpublic String getResultId()
public void setResultId(String resultId)
resultId - the unique identifier of the notification result of the topic of this subscriptionpublic String getAlertMode()
public void setAlertMode(String alertMode)
alertMode - the alert mode of this subscriptionpublic URI getSubscriber()
public void setSubscriber(URI subscriber)
subscriber - the URI of the subscriber of this subscriptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - true to enable this subscription, false to disable itpublic int compareTo(AlertSubscription subscription)
compareTo in interface Comparable<AlertSubscription>Copyright © 2017. All rights reserved.