Package com.redwood.scheduler.api.model
Interface OperatorMessage
- 
- All Superinterfaces:
- OperatorMessageComp,- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface OperatorMessage extends OperatorMessageComp, Root A message created by the application or the system to inform the operator A message can be informational or it can require an answer. When a job requires an answer from the operator its status will be CONSOLE.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "OperatorMessage" objects.static StringSEC_PRIV_DELETEThis privilege can be granted at a group level.static StringSEC_PRIV_REPLYThis privilege can be granted at a group level.static StringSEC_PRIV_VIEWThis privilege can be granted at a group level.static StringSEC_RANK_ALLThis rank is made of the following privileges: view , reply , deletestatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_OPERATORThis rank is made of the following privileges: view , replystatic StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<OperatorMessage>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 RequiredPermissioncheckDeletePrivilege()Check whether or not the delete action can be performed on this object.RequiredPermissioncheckReplyPrivilege()Check whether or not the reply action can be performed on this object.RequiredPermissioncheckViewPrivilege()Check whether or not the view action can be performed on this object.OperatorMessageDatumcreateOperatorMessageDatum()Create a newOperatorMessageDatumlinked to this object.RWIterable<Alert>getAlerts()Get anRWIterableover an ordered collection ofAlerts.StringgetFullText()Get the value for FullText.IsolationGroupgetIsolationGroup()Get the IsolationGroup.Map<String,String>getMapOfReplies()Get a map of possible values that are applicable for this message.LonggetNumAdditionalLines()Get the value for NumAdditionalLines.RWIterable<OperatorMessageDatum>getOperatorMessageData()Get anRWIterableover a collection ofOperatorMessageData, the collection will be ordered by Name.OperatorMessageDatumgetOperatorMessageDatumByName(String name)Get the OperatorMessageDatum by OperatorMessageName.PartitiongetPartition()Get the Partition.SubjectgetRepliedBySubject()Get the RepliedBySubject.StringgetReply()Get the value for Reply.StringgetReplyExpression()Get the value for ReplyExpression.ReplyStatusgetReplyStatus()Get the value for ReplyStatus.DateTimeZonegetReplyTime()Get the value for ReplyTime.SchedulerEntitygetSenderObject()Get the value for SenderObject.ObjectDefinitiongetSenderObjectDefinition()Get the SenderObjectDefinition.StringgetSenderObjectDescription()Get the value for SenderObjectDescription.StringgetTitleText()Get the value for TitleText.voidsetFullText(String newFullText)Set the value for FullText.voidsetIsolationGroup(IsolationGroup newIsolationGroup)Set the value for IsolationGroup.voidsetPartition(Partition newPartition)Set the value for Partition.voidsetReply(String newReply)Set the value for Reply.voidsetReplyExpression(String newReplyExpression)Set the value for ReplyExpression.voidsetSenderObject(SchedulerEntity newSenderObject)Set the value for SenderObject.voidsetSenderObjectDefinition(ObjectDefinition newSenderObjectDefinition)Set the value for SenderObjectDefinition.- 
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
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "OperatorMessage" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<OperatorMessage> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_PRIV_VIEWstatic final String SEC_PRIV_VIEW This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_REPLYstatic final String SEC_PRIV_REPLY This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_DELETEstatic final String SEC_PRIV_DELETE This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_VIEWstatic final String SEC_RANK_VIEW This rank is made of the following privileges: view- See Also:
- Constant Field Values
 
 - 
SEC_RANK_OPERATORstatic final String SEC_RANK_OPERATOR This rank is made of the following privileges: view , reply- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: view , reply , delete- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFullTextString getFullText() Get the value for FullText. (The full text of the operator message.) 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.
 
 - 
getTitleTextString getTitleText() Get the value for TitleText. (The first line of the translated operator message, or the entire message if it cannot be translated.) 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.
 
 - 
getNumAdditionalLinesLong getNumAdditionalLines() Get the value for NumAdditionalLines. (The number of additional lines to this message.) 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.
 
 - 
getReplyExpressionString getReplyExpression() Get the value for ReplyExpression. (Aregular expressionto which the reply should match, or null of no reply is expected)- 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.
 
 - 
getReplyString getReply() Get the value for Reply. (The reply to the operator message)- 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.
 
 - 
getReplyStatusReplyStatus getReplyStatus() Get the value for ReplyStatus. (Query the status of this operator message with respect to a reply.) 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.
 
 - 
getReplyTimeDateTimeZone getReplyTime() Get the value for ReplyTime. (When was this message replied 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.
 
 - 
getSenderObjectSchedulerEntity getSenderObject() Get the value for SenderObject. (Get the SchedulerEntity that sent this operator message, or null if no sender 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.
 
 - 
getSenderObjectDescriptionString getSenderObjectDescription() Get the value for SenderObjectDescription. (Text representation of the SenderObject that sent this operator message)- 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.
 
 - 
setFullTextvoid setFullText(String newFullText) Set the value for FullText. (The full text of the operator message.) This value is mandatory.- Parameters:
- newFullText- the new value for FullText. 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.
 
 - 
setReplyExpressionvoid setReplyExpression(String newReplyExpression) Set the value for ReplyExpression. (Aregular expressionto which the reply should match, or null of no reply is expected) This value is optional.- Parameters:
- newReplyExpression- the new value for ReplyExpression.
- 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.
 
 - 
setReplyvoid setReply(String newReply) Set the value for Reply. (The reply to the operator message) This value is optional.- Parameters:
- newReply- the new value for Reply.
- 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.
 
 - 
setSenderObjectvoid setSenderObject(SchedulerEntity newSenderObject) Set the value for SenderObject. (Get the SchedulerEntity that sent this operator message, or null if no sender was specified, or the sender has been deleted) This value is optional.- Parameters:
- newSenderObject- the new value for SenderObject.
- 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.
 
 - 
getMapOfRepliesMap<String,String> getMapOfReplies() Get a map of possible values that are applicable for this message. If a list cannot be generated from the regular expression, it returns null. The key in the map is the value that must be set as the reply, the value is the string to be displayed to the user (which is already translated if it can be translated)- Returns:
- The map with the possible values, null if a map could not be generated.
 
 - 
getIsolationGroupIsolationGroup getIsolationGroup() Get the IsolationGroup.- Returns:
- IsolationGroup
- 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.
 
 - 
getSenderObjectDefinitionObjectDefinition getSenderObjectDefinition() Get the SenderObjectDefinition.- Returns:
- SenderObjectDefinition
- 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.
 
 - 
getPartitionPartition getPartition() Get the Partition.- Returns:
- Partition
- 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.
 
 - 
getRepliedBySubjectSubject getRepliedBySubject() Get the RepliedBySubject.- Returns:
- RepliedBySubject
- 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.
 
 - 
setIsolationGroupvoid setIsolationGroup(IsolationGroup newIsolationGroup) Set the value for IsolationGroup. This value is mandatory.- Parameters:
- newIsolationGroup- is the object to set IsolationGroup to. To which isolation group does this message effectively belong. If this is- null, then the object cannot be persisted.
 
 - 
setSenderObjectDefinitionvoid setSenderObjectDefinition(ObjectDefinition newSenderObjectDefinition) Set the value for SenderObjectDefinition. This value is optional.- Parameters:
- newSenderObjectDefinition- is the object to set SenderObjectDefinition to. What type of object raised this operator message?
 
 - 
setPartitionvoid setPartition(Partition newPartition) Set the value for Partition. This value is optional.- Parameters:
- newPartition- is the object to set Partition to. To which isolation group does this message effectively belong.
 
 - 
getAlertsRWIterable<Alert> getAlerts() Get anRWIterableover an ordered collection ofAlerts. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. What type of object raised this alert?- Specified by:
- getAlertsin interface- OperatorMessageComp
- Returns:
- An RWIterableover an ordered collection ofAlertobjects .
 
 - 
getOperatorMessageDataRWIterable<OperatorMessageDatum> getOperatorMessageData() Get anRWIterableover a collection ofOperatorMessageData, the collection will be ordered by Name. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Email alert gateway headers.- Specified by:
- getOperatorMessageDatain interface- OperatorMessageComp
- Returns:
- An RWIterableover a collection ofOperatorMessageDatumobjects , the collection will be ordered by Name.
 
 - 
createOperatorMessageDatumOperatorMessageDatum createOperatorMessageDatum() Create a newOperatorMessageDatumlinked to this object.- Returns:
- a new OperatorMessageDatum.
 
 - 
getOperatorMessageDatumByNameOperatorMessageDatum getOperatorMessageDatumByName(String name) Get the OperatorMessageDatum by OperatorMessageName.- Parameters:
- name-
- Returns:
- the OperatorMessageDatum, or nullif it could not be found
 
 - 
checkViewPrivilegeRequiredPermission checkViewPrivilege() Check whether or not the view action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkReplyPrivilegeRequiredPermission checkReplyPrivilege() Check whether or not the reply action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkDeletePrivilegeRequiredPermission checkDeletePrivilege() Check whether or not the delete action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 
- 
 
-