Package com.redwood.scheduler.api.model
Interface AlertSource
- 
- All Superinterfaces:
- AlertSourceComp,- ApplicationObject,- BusinessKeyObject,- NamedRootObject,- NamedRootObjectComp,- PartitionableObject,- PartitionableObjectComp,- Root,- SchedulerEntity,- SchedulerEntityComp,- UniqueNamedApplicationObject
 - All Known Subinterfaces:
- AdHocAlertSource,- JobDefinitionAlertSource,- MonitorAlertSource,- ProcessServerAlertSource,- QueueAlertSource
 
 public interface AlertSource extends AlertSourceComp, UniqueNamedApplicationObject An alert source
- 
- 
Field Summary- 
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 AlertSourceActioncreateAlertSourceAction()Create a newAlertSourceActionlinked to this object.AlertSourceEmailcreateAlertSourceEmail()Create a newAlertSourceEmaillinked to this object.StringgetAddress()Get the value for Address.RWIterable<AlertSourceAction>getAlertSourceActions()Get anRWIterableover an ordered collection ofAlertSourceActions.AlertSourceEmailgetAlertSourceEmail()Get the AlertSourceEmail.AlertEscalationgetDefaultAlertEscalation()Get the DefaultAlertEscalation.StringgetEscalationExpression()Get the value for EscalationExpression.StringgetOperatorMessageExpression()Get the value for OperatorMessageExpression.StringgetOperatorMessageReplyExpression()Get the value for OperatorMessageReplyExpression.TimeWindowgetTimeWindow()Get the TimeWindow.TimeWindowStatusgetTimeWindowStatus()Get the value for TimeWindowStatus.TimeZonegetTimeZone()Get the TimeZone.ValiditygetValidity()Get the value for Validity.booleanisEnabled()Get the value for Enabled.voidsetAddress(String newAddress)Set the value for Address.voidsetDefaultAlertEscalation(AlertEscalation newDefaultAlertEscalation)Set the value for DefaultAlertEscalation.voidsetEnabled(boolean newEnabled)Set the value for Enabled.voidsetEscalationExpression(String newEscalationExpression)Set the value for EscalationExpression.voidsetOperatorMessageExpression(String newOperatorMessageExpression)Set the value for OperatorMessageExpression.voidsetOperatorMessageReplyExpression(String newOperatorMessageReplyExpression)Set the value for OperatorMessageReplyExpression.voidsetTimeWindow(TimeWindow newTimeWindow)Set the value for TimeWindow.voidsetTimeWindowStatus(TimeWindowStatus newTimeWindowStatus)Set the value for TimeWindowStatus.voidsetTimeZone(TimeZone newTimeZone)Set the value for TimeZone.- 
Methods inherited from interface com.redwood.scheduler.api.model.ApplicationObjectgetParentApplication, setParentApplication
 - 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.NamedRootObjectcreateObjectReference, getComment, getDescription, getLinkedObjectReferenceByLinkedObject, getLinkedObjectReferenceByName, getLinkedObjectReferences, getName, getSearchName, getSourceObjectReferences, isHidden, setComment, setDescription, setName
 - 
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableObjectcreateObjectTag, getEditablePartitions, getObjectTagByObjectTagDefinition, getObjectTags, getPartition, setPartition
 - 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
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
 
- 
 
- 
- 
- 
Method Detail- 
getEscalationExpressionString getEscalationExpression() Get the value for EscalationExpression. (The (optional) alert escalation expression. If this is set, then the expression is evaluated. If the resulting channel exists, it is used for escalation, otherwise the default escalation channel is used.)- 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.
 
 - 
getOperatorMessageExpressionString getOperatorMessageExpression() Get the value for OperatorMessageExpression. (The operator message expression. If this is set, then the expression is evaluated, and the result is used as the operator message. If not set, a source specific default is used.)- 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.
 
 - 
getOperatorMessageReplyExpressionString getOperatorMessageReplyExpression() Get the value for OperatorMessageReplyExpression. (The operator message reply expression. If this is set, then the expression is evaluated, and the result is used as the allowed responses to the operator message. If not set, a source specific default is used.)- 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.
 
 - 
getTimeWindowStatusTimeWindowStatus getTimeWindowStatus() Get the value for TimeWindowStatus. (The status of the time window (open or closed).) 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.
 
 - 
getAddressString getAddress() Get the value for Address. (The (optional) address to send this alert to)- 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.
 
 - 
isEnabledboolean isEnabled() Get the value for Enabled. (Enable/disable the alert source)- 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.
 
 - 
getValidityValidity getValidity() Get the value for Validity. (Is this definition valid? That is, can this definition currently be used?) 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.
 
 - 
setEscalationExpressionvoid setEscalationExpression(String newEscalationExpression) Set the value for EscalationExpression. (The (optional) alert escalation expression. If this is set, then the expression is evaluated. If the resulting channel exists, it is used for escalation, otherwise the default escalation channel is used.) This value is optional.- Parameters:
- newEscalationExpression- the new value for EscalationExpression.
- 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.
 
 - 
setOperatorMessageExpressionvoid setOperatorMessageExpression(String newOperatorMessageExpression) Set the value for OperatorMessageExpression. (The operator message expression. If this is set, then the expression is evaluated, and the result is used as the operator message. If not set, a source specific default is used.) This value is optional.- Parameters:
- newOperatorMessageExpression- the new value for OperatorMessageExpression.
- 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.
 
 - 
setOperatorMessageReplyExpressionvoid setOperatorMessageReplyExpression(String newOperatorMessageReplyExpression) Set the value for OperatorMessageReplyExpression. (The operator message reply expression. If this is set, then the expression is evaluated, and the result is used as the allowed responses to the operator message. If not set, a source specific default is used.) This value is optional.- Parameters:
- newOperatorMessageReplyExpression- the new value for OperatorMessageReplyExpression.
- 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.
 
 - 
setTimeWindowStatusvoid setTimeWindowStatus(TimeWindowStatus newTimeWindowStatus) Set the value for TimeWindowStatus. (The status of the time window (open or closed).) This value is mandatory.- Parameters:
- newTimeWindowStatus- the new value for TimeWindowStatus. 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.
 
 - 
setAddressvoid setAddress(String newAddress) Set the value for Address. (The (optional) address to send this alert to) This value is optional.- Parameters:
- newAddress- the new value for Address.
- 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.
 
 - 
setEnabledvoid setEnabled(boolean newEnabled) Set the value for Enabled. (Enable/disable the alert source)- Parameters:
- newEnabled- the new value for Enabled.
- 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.
 
 - 
getDefaultAlertEscalationAlertEscalation getDefaultAlertEscalation() Get the DefaultAlertEscalation.- Returns:
- DefaultAlertEscalation
- 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.
 
 - 
getTimeWindowTimeWindow getTimeWindow() Get the TimeWindow.- Returns:
- TimeWindow
- 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.
 
 - 
getTimeZoneTimeZone getTimeZone() Get the TimeZone.- Returns:
- TimeZone
- 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.
 
 - 
setDefaultAlertEscalationvoid setDefaultAlertEscalation(AlertEscalation newDefaultAlertEscalation) Set the value for DefaultAlertEscalation. This value is optional.- Parameters:
- newDefaultAlertEscalation- is the object to set DefaultAlertEscalation to. The default escalation channel for this alert source.
 
 - 
setTimeWindowvoid setTimeWindow(TimeWindow newTimeWindow) Set the value for TimeWindow. This value is optional.- Parameters:
- newTimeWindow- is the object to set TimeWindow to. The time window during which this alert source is active.
 
 - 
setTimeZonevoid setTimeZone(TimeZone newTimeZone) Set the value for TimeZone. This value is optional.- Parameters:
- newTimeZone- is the object to set TimeZone to. The timezone for the timewindowinterval
 
 - 
getAlertSourceActionsRWIterable<AlertSourceAction> getAlertSourceActions() Get anRWIterableover an ordered collection ofAlertSourceActions. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. The alert source for an alert source action- Specified by:
- getAlertSourceActionsin interface- AlertSourceComp
- Returns:
- An RWIterableover an ordered collection ofAlertSourceActionobjects .
 
 - 
createAlertSourceActionAlertSourceAction createAlertSourceAction() Create a newAlertSourceActionlinked to this object.- Returns:
- a new AlertSourceAction.
 
 - 
getAlertSourceEmailAlertSourceEmail getAlertSourceEmail() Get the AlertSourceEmail. The email text.- Returns:
- nullAlertSourceEmail
- 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.
 
 - 
createAlertSourceEmailAlertSourceEmail createAlertSourceEmail() Create a newAlertSourceEmaillinked to this object.- Returns:
- a new AlertSourceEmail.
 
 
- 
 
-