Package com.redwood.scheduler.api.model
Interface Alert
- 
- All Superinterfaces:
- Detail,- SchedulerEntity,- SchedulerEntityComp
 
 public interface Alert extends Detail An alert.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "Alert" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<Alert>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description AlertEscalationgetAlertEscalation()Get the AlertEscalation.AlertSourcegetAlertSource()Get the AlertSource.AlertgetCauseAlert()Get the CauseAlert.DateTimeZonegetCreationTime()Get the value for CreationTime.LonggetDeprecated1()Get the value for Deprecated1.DateTimeZonegetLastModificationTime()Get the value for LastModificationTime.SubjectgetLastModifierSubject()Get the LastModifierSubject.OperatorMessagegetOperatorMessage()Get the OperatorMessage.LonggetRaisedSequence()Get the value for RaisedSequence.LonggetResendCount()Get the value for ResendCount.SchedulerEntitygetSourceObject()Get the value for SourceObject.ObjectDefinitiongetSourceObjectDefinition()Get the SourceObjectDefinition.AlertStatusgetStatus()Get the value for Status.voidsetAlertEscalation(AlertEscalation newAlertEscalation)Set the value for AlertEscalation.voidsetCauseAlert(Alert newCauseAlert)Set the value for CauseAlert.voidsetDeprecated1(Long newDeprecated1)Set the value for Deprecated1.voidsetOperatorMessage(OperatorMessage newOperatorMessage)Set the value for OperatorMessage.voidsetResendCount(Long newResendCount)Set the value for ResendCount.voidsetSourceObjectDefinition(ObjectDefinition newSourceObjectDefinition)Set the value for SourceObjectDefinition.voidsetStatus(AlertStatus newStatus)Set the value for Status.- 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "Alert" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<Alert> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getStatusAlertStatus getStatus() Get the value for Status. (The status of this alert.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getSourceObjectSchedulerEntity getSourceObject() Get the value for SourceObject. (Get the object that initiated this alert, or null if no source was specified, or the sender has been deleted)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getRaisedSequenceLong getRaisedSequence() Get the value for RaisedSequence. (Sequence number for this alert, this is unique for each alert, regardless of source.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getCreationTimeDateTimeZone getCreationTime() Get the value for CreationTime. (Timestamp that notes when the Alert was raised.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getLastModificationTimeDateTimeZone getLastModificationTime() Get the value for LastModificationTime. (Timestamp that notes when the Alert was last modified.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getDeprecated1Long getDeprecated1() Get the value for Deprecated1. (Deprecated Alert Escalation field as that is no longer mandatory but we can't change the field) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getResendCountLong getResendCount() Get the value for ResendCount. (The number of times an alert can be restarted before it fails.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setStatusvoid setStatus(AlertStatus newStatus) Set the value for Status. (The status of this alert.) This value is mandatory.- Parameters:
- newStatus- the new value for Status. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setDeprecated1void setDeprecated1(Long newDeprecated1) Set the value for Deprecated1. (Deprecated Alert Escalation field as that is no longer mandatory but we can't change the field) This value is mandatory.- Parameters:
- newDeprecated1- the new value for Deprecated1. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setResendCountvoid setResendCount(Long newResendCount) Set the value for ResendCount. (The number of times an alert can be restarted before it fails.) This value is mandatory.- Parameters:
- newResendCount- the new value for ResendCount. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getAlertSourceAlertSource getAlertSource() Get the AlertSource.- Returns:
- AlertSource
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getLastModifierSubjectSubject getLastModifierSubject() Get the LastModifierSubject.- Returns:
- LastModifierSubject
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getSourceObjectDefinitionObjectDefinition getSourceObjectDefinition() Get the SourceObjectDefinition.- Returns:
- SourceObjectDefinition
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getOperatorMessageOperatorMessage getOperatorMessage() Get the OperatorMessage.- Returns:
- OperatorMessage
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getCauseAlertAlert getCauseAlert() Get the CauseAlert.- Returns:
- CauseAlert
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getAlertEscalationAlertEscalation getAlertEscalation() Get the AlertEscalation.- Returns:
- AlertEscalation
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
setSourceObjectDefinitionvoid setSourceObjectDefinition(ObjectDefinition newSourceObjectDefinition) Set the value for SourceObjectDefinition. This value is optional.- Parameters:
- newSourceObjectDefinition- is the object to set SourceObjectDefinition to. What type of object raised this alert?
 
 - 
setOperatorMessagevoid setOperatorMessage(OperatorMessage newOperatorMessage) Set the value for OperatorMessage. This value is mandatory.- Parameters:
- newOperatorMessage- is the object to set OperatorMessage to. What type of object raised this alert? If this is- null, then the object cannot be persisted.
 
 - 
setCauseAlertvoid setCauseAlert(Alert newCauseAlert) Set the value for CauseAlert. This value is optional.- Parameters:
- newCauseAlert- is the object to set CauseAlert to. The alert that caused this alert.
 
 - 
setAlertEscalationvoid setAlertEscalation(AlertEscalation newAlertEscalation) Set the value for AlertEscalation. This value is optional.- Parameters:
- newAlertEscalation- is the object to set AlertEscalation to. The escalation channel this alert was sent on.
 
 
- 
 
-