public class AlertTemplate extends Object implements Comparable<AlertTemplate>
eu.dnetlib.api.functionality.AlertService,
eu.dnetlib.functionality.alert.alerter.Alerter,
AlertTopic,
AlertSubscription| Constructor and Description |
|---|
AlertTemplate()
Construct a new alert template with template identifier, title, message and link set to null.
|
AlertTemplate(String templateId,
String title,
String message,
URL link)
Construct a new alert template.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AlertTemplate template) |
boolean |
equals(Object object) |
URL |
getLink()
Get the link.
|
String |
getMessage()
Get the message.
|
String |
getTemplateId()
Get the unique identifier of this template.
|
String |
getTitle()
Get the title.
|
int |
hashCode() |
void |
setLink(URL link)
Set the link.
|
void |
setMessage(String message)
Set the message.
|
void |
setTemplateId(String templateId)
Set the unique identifier of this template.
|
void |
setTitle(String title)
Set the title.
|
String |
toString() |
public AlertTemplate(String templateId, String title, String message, URL link)
templateId - the unique identifier of this templatetitle - the title of the alerts generated by this templatemessage - the message of the alerts generated by this templatelink - the link of the alerts generated by this templatepublic AlertTemplate()
public String getTemplateId()
public void setTemplateId(String templateId)
templateId - the unique identifier of this templatepublic String getTitle()
public void setTitle(String title)
title - the title of this templatepublic String getMessage()
public void setMessage(String message)
message - the message of this templatepublic URL getLink()
public void setLink(URL link)
link - the link of this templatepublic int compareTo(AlertTemplate template)
compareTo in interface Comparable<AlertTemplate>Copyright © 2017. All rights reserved.