@Entity public class AlertNoticeEntity extends Object
AlertNoticeEntity
class represents the need to dispatch a
notification to an AlertTargetEntity
. There are three
NotificationState
s that a single notice can exist in. These instances
are persisted indefinitely for historical reference.Constructor and Description |
---|
AlertNoticeEntity()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
AlertHistoryEntity |
getAlertHistory()
Gets the associated alert history entry for this alert notice.
|
AlertTargetEntity |
getAlertTarget()
Gets the intended audience for the notification.
|
Long |
getHistoryId()
Get parent AlertHistory id
|
Long |
getNotificationId()
Gets the unique ID for this alert notice.
|
NotificationState |
getNotifyState()
Gets the notification state for this alert notice.
|
String |
getUuid()
Gets the unique ID for this alert notice.
|
int |
hashCode() |
void |
setAlertHistory(AlertHistoryEntity alertHistory)
Sets the associated alert history entry for this alert notice.
|
void |
setAlertTarget(AlertTargetEntity alertTarget)
Sets the intended audience for the notification.
|
void |
setHistoryId(Long historyId)
Set parent Alert History id
|
void |
setNotificationId(Long notificationId)
Sets the unique ID for this alert notice.
|
void |
setNotifyState(NotificationState notifyState)
Sets the notification state for this alert notice.
|
void |
setUuid(String uuid)
Sets the unique ID for this alert notice.
|
public Long getNotificationId()
null
).public void setNotificationId(Long notificationId)
notificationId
- the ID (not null
).public NotificationState getNotifyState()
null
).public void setNotifyState(NotificationState notifyState)
notifyState
- the notification state (not null
).public String getUuid()
null
).public void setUuid(String uuid)
uuid
- the unique ID (not null
).public AlertHistoryEntity getAlertHistory()
null
).public void setAlertHistory(AlertHistoryEntity alertHistory)
alertHistory
- the historical event that traiggered this notice's creation (not
null
).public Long getHistoryId()
public void setHistoryId(Long historyId)
historyId
- history idpublic AlertTargetEntity getAlertTarget()
null
).public void setAlertTarget(AlertTargetEntity alertTarget)
alertTarget
- the recipient of this notification (not null
).Copyright © 2022 Apache Software Foundation. All rights reserved.