|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.notification.AlertRecipient
public class AlertRecipient
This class is essentially a wrapper for the user object. The alert is assigned to each recipient. A recipient then has either "read" the alert or has not.
Alert
,
Serialized FormConstructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Alert |
getAlert()
|
java.lang.Boolean |
getAlertRead()
|
java.util.Date |
getDateChanged()
|
java.lang.Integer |
getId()
|
User |
getRecipient()
|
int |
hashCode()
|
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()
|
Methods inherited from class org.openmrs.BaseOpenmrsObject |
---|
getUuid, setUuid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AlertRecipient()
public AlertRecipient(Alert a)
public AlertRecipient(Alert a, User recipient)
public AlertRecipient(User user, java.lang.Boolean read)
read
- user
- Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
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()
toString
in class java.lang.Object
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)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |