public class AlertRecipient extends BaseOpenmrsObject implements Serializable
Alert
,
Serialized FormConstructor and Description |
---|
AlertRecipient()
Default empty constructor
|
AlertRecipient(Alert a)
Initializes a recipient with the given alert
|
AlertRecipient(Alert a,
User recipient)
Initializes a recipient with the given alert and recipient/user
|
AlertRecipient(User user,
Boolean read)
Initializes a recipient with the given user
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Alert |
getAlert() |
Boolean |
getAlertRead() |
Date |
getDateChanged() |
Integer |
getId() |
User |
getRecipient() |
int |
hashCode() |
Boolean |
isAlertRead() |
void |
setAlert(Alert alert) |
void |
setAlertRead(Boolean alertRead) |
void |
setDateChanged(Date dateChanged) |
void |
setId(Integer id) |
void |
setRecipient(User user) |
String |
toString() |
getUuid, setUuid
public AlertRecipient()
public AlertRecipient(Alert a)
public AlertRecipient(Alert a, User recipient)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public Alert getAlert()
public void setAlert(Alert alert)
alert
- The alert to set.public Date getDateChanged()
public void setDateChanged(Date dateChanged)
dateChanged
- The date this alert was changedpublic Boolean isAlertRead()
public Boolean getAlertRead()
getAlertRead()
public void setAlertRead(Boolean alertRead)
alertRead
- The alertRead to set.public User getRecipient()
public void setRecipient(User user)
user
- The recipient/user to set.public Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.