public class AlertRecipient extends BaseOpenmrsObject implements java.io.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,
java.lang.Boolean read)
Initializes a recipient with the given user
|
Modifier and Type | Method and Description |
---|---|
Alert |
getAlert() |
java.lang.Boolean |
getAlertRead() |
java.util.Date |
getDateChanged() |
java.lang.Integer |
getId() |
User |
getRecipient() |
java.lang.Boolean |
isAlertRead() |
void |
setAlert(Alert alert) |
void |
setAlertRead(java.lang.Boolean alertRead) |
void |
setDateChanged(java.util.Date dateChanged) |
void |
setId(java.lang.Integer id) |
void |
setRecipient(User user) |
java.lang.String |
toString()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ] . |
equals, getUuid, hashCode, setUuid
public AlertRecipient()
public AlertRecipient(Alert a)
public AlertRecipient(Alert a, User recipient)
public AlertRecipient(User user, java.lang.Boolean read)
read
- user
- public Alert getAlert()
public void setAlert(Alert alert)
alert
- The alert to set.public java.util.Date getDateChanged()
public void setDateChanged(java.util.Date dateChanged)
dateChanged
- The date this alert was changedpublic java.lang.String toString()
BaseOpenmrsObject
uuid
field surrounded by [
and ]
. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid
field is null
, it delegates to
Object.toString()
toString
in class BaseOpenmrsObject
Object.toString()
public java.lang.Boolean isAlertRead()
public java.lang.Boolean getAlertRead()
getAlertRead()
public void setAlertRead(java.lang.Boolean alertRead)
alertRead
- The alertRead to set.public User getRecipient()
public void setRecipient(User user)
user
- The recipient/user to set.public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.