@Entity public class AlertRecipient extends BaseOpenmrsObject
Alert,
Serialized Form| Constructor 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 |
|---|---|
Alert |
getAlert() |
Boolean |
getAlertRead() |
Date |
getDateChanged() |
Integer |
getId() |
User |
getRecipient() |
Boolean |
isAlertRead() |
void |
setAlert(Alert alert) |
void |
setAlertRead(Boolean alertRead) |
void |
setDateChanged(Date dateChanged) |
void |
setId(Integer id) |
void |
setRecipient(User user) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
equals, getUuid, hashCode, setUuidpublic AlertRecipient()
public AlertRecipient(Alert a)
public AlertRecipient(Alert a, User recipient)
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 String toString()
BaseOpenmrsObjectClassName{hashCode=..., uuid=...}
If the uuid field is null, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString in class BaseOpenmrsObjectpublic 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()
OpenmrsObject.getId()public void setId(Integer id)
id - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)Copyright © 2024 OpenMRS Inc.. All rights reserved.