public class PipelineNotificationStepPayload extends BaseNotificationPayload
mNotificationEventTypeEnum, mPipelineAttachments, mPipelineNotes
DATE_FORMAT
Constructor and Description |
---|
PipelineNotificationStepPayload(PipelineStageStepExecDataObject pPipelineStageStepExecDataObject,
NotificationEventTypeEnum pNotificationEventTypeEnum)
Creates the notification payload
|
Modifier and Type | Method and Description |
---|---|
void |
addRecipients(java.lang.String pAttributeGroupName) |
protected java.lang.Object |
evaluatePipelineFlexValueScript(PipelineScriptType pScript) |
java.util.List<EmailAttachment> |
getAttachments()
Returns a list of email attachments pertaining to the event which has occurred.
|
NotifEnvironment |
getEnvironment()
Returns the environment data for this request's linked pipeline stage execution.
|
java.lang.Long |
getId()
Returns the internal identifier of the object on which the event originated.
|
java.lang.String |
getMessage() |
NotificationStep |
getNotificationStep() |
NotifPipelineStageExecInfo |
getPipelineStageExecInfo()
Returns the execution info data provided in the linked pipeline stage.
|
NotifSnapshot |
getSnapshot()
Returns the snapshot data linked to this request's pipeline execution.
|
java.lang.String |
getSnapshotCreatedBy()
Returns the name of the user who created the snapshot linked to this step execution.
|
java.lang.String |
getSnapshotCreatedByFullName()
Returns the full name of the user who created the snapshot linked to this step execution
("[First Name] [Last Name]").
|
java.lang.String |
getSnapshotCreatedByUserAndFullName() |
java.lang.String |
getStepExecutionStatus()
Returns the display name of this step's execution status.
|
java.lang.String |
getStepExecutionStatusCode()
Returns the step execution status type name of the step.
|
ExecutionUnitStatus |
getStepExecutionStatusEnum()
Returns the execution status enum of the step.
|
java.lang.String |
getSubject() |
java.lang.Long |
getTemplateId() |
protected boolean |
isValueExpression(PipelineScriptType pScript) |
addAttachment, addAttachment, addAttachment, addAttachment, addRecipientsByCommittersIfEligible, addRecipientsByGroupId, addRecipientsByGroupIdIfEligible, addRecipientsByGroupNameIfEligible, addRecipientsByPipelineRoleMember, addRecipientsByPipelineRoleUserOrEmailMember, addRecipientsBySubscriptions, addRecipientsByUserIdIfEligible, addRecipientsByUserNameIfEligible, addRecipientsForPipelineStepExecFailure, evaluatePipelineRoleScript, getApprovalGateRoleByGateId, getApprovalTaskUrlPath, getFolderWithHierarchy, getHumanTaskIdentityUuid, getHumanTaskUrlPath, getInputFieldsForStep, getManualStepRoleByStepId, getPipelineRoleScriptForGate, getPipelineRoleScriptForStep, getPipelineStageExecutionSnapshotQueryResultRow, getRecipients, getUserFullName, hasAttachments, isGroupMemberOfPipelineRole, isSendLogAttachments, isShowNotesAndSendAttachments, populatePipelineAttachmentsAndNotes, sendLogAttachments, showNotesAndSendAttachments, showTextForMissingUrlSetup, toNotifScmCommits, toString
public PipelineNotificationStepPayload(PipelineStageStepExecDataObject pPipelineStageStepExecDataObject, NotificationEventTypeEnum pNotificationEventTypeEnum)
pPipelineStageStepExecDataObject
- The pipeline stage step execution data.pNotificationEventTypeEnum
- The event type.public void addRecipients(java.lang.String pAttributeGroupName)
public NotificationStep getNotificationStep() throws java.sql.SQLException
java.sql.SQLException
public NotifSnapshot getSnapshot() throws java.sql.SQLException
java.sql.SQLException
- If the information cannot be retrieved from the database.public NotifEnvironment getEnvironment() throws java.sql.SQLException
java.sql.SQLException
- If the information cannot be retrieved from the database.public NotifPipelineStageExecInfo getPipelineStageExecInfo() throws java.sql.SQLException
java.sql.SQLException
- If the information cannot be retrieved from the database.public java.util.List<EmailAttachment> getAttachments() throws java.sql.SQLException
NotificationPayload
getAttachments
in interface NotificationPayload
getAttachments
in class BaseNotificationPayload
java.sql.SQLException
public java.lang.String getSnapshotCreatedBy() throws java.sql.SQLException
java.sql.SQLException
- If the information cannot be retrieved from the database.public java.lang.String getSnapshotCreatedByFullName() throws java.sql.SQLException
java.sql.SQLException
- If the information cannot be retrieved from the database.public java.lang.String getSnapshotCreatedByUserAndFullName() throws java.sql.SQLException
java.sql.SQLException
public java.lang.Long getId()
NotificationPayload
public java.lang.String getStepExecutionStatus()
public ExecutionUnitStatus getStepExecutionStatusEnum()
public java.lang.String getStepExecutionStatusCode()
public java.lang.Long getTemplateId() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getSubject() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getMessage() throws java.sql.SQLException
java.sql.SQLException
protected java.lang.Object evaluatePipelineFlexValueScript(PipelineScriptType pScript) throws java.sql.SQLException
java.sql.SQLException
protected boolean isValueExpression(PipelineScriptType pScript)