Class ProjectWorkflowRequestPayload
java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.fd.model2.notification.payload.BaseNotificationPayload
flexagon.fd.model2.notification.payload.ProjectWorkflowRequestPayload
- All Implemented Interfaces:
NotificationPayload,Serializable
Notification Template payload representing a project workflow request.
- See Also:
-
Field Summary
Fields inherited from class flexagon.fd.model2.notification.payload.BaseNotificationPayload
mNotificationEventTypeEnum, mPipelineAttachments, mPipelineNotesFields inherited from interface flexagon.fd.model2.notification.payload.NotificationPayload
DATE_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionProjectWorkflowRequestPayload(WorkflowRequestDataObject pDataObject, NotificationEventTypeEnum pNotificationEventTypeEnum) Creates the notification payload -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipients(String pAttributeGroupName) Returns any approval comments for this project workflow request as a list of strings.Returns the list of all available email attachments for this request.Returns the SCM change logs for this project workflow request.Returns the name of the user that submitted this request.Returns the timstamp of when this request was created.Returns the environment the request was submitted for.getFlexfield(String pCode) Returns the project worflow request flexfield with the given code.Returns the list of flexfields for this project workflow request.getId()Returns the internal identifier of the project workflow request.Returns the list of inputs for this project workflow request.Returns the project linked to this workflow request.Returns the generated project version for this this workflow request.Returns the release associated to this project workflow request, if applicable.Returns the internal identifier of the snapshot linked to this request.Returns the full name of the user that submitted this request ("[First Name] [Last Name]").Returns the requested start time for this request, if applicable.Returns the display name of the project workflow request status.Returns the type name of the project workflow request status.Returns the type enum of the project workflow request status.Returns the stream for this project workflow request.Returns the test suite executions for this project workflow request.Returns the workflow linked to this workflow request's project.Returns the list of workflow executions for this project workflow request.booleanReturns whether this request is a build request.booleanReturns whether this request is a deploy request.booleanisForce()Returns whether "force" was selected for this request.booleanReturns whether "stop on package error" was selected for this request.Methods inherited from class flexagon.fd.model2.notification.payload.BaseNotificationPayload
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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface flexagon.fd.model2.notification.payload.NotificationPayload
isImportant
-
Constructor Details
-
ProjectWorkflowRequestPayload
public ProjectWorkflowRequestPayload(WorkflowRequestDataObject pDataObject, NotificationEventTypeEnum pNotificationEventTypeEnum) Creates the notification payload- Parameters:
pDataObject- The workflow request data.pAttributeGroupName- The medium settings group name.pMediumEnum- The medium type.pNotificationEventTypeEnum- The event type.
-
-
Method Details
-
addRecipients
-
getId
Returns the internal identifier of the project workflow request.- Returns:
- The internal identifier of the project workflow request.
-
getStatus
Returns the display name of the project workflow request status.- Returns:
- The display name of the project workflow request status.
-
getStatusCode
Returns the type name of the project workflow request status.- Returns:
- The type name of the project workflow request status.
-
getStatusEnum
Returns the type enum of the project workflow request status.- Returns:
- The type enum of the project workflow request status.
-
getProject
Returns the project linked to this workflow request.- Returns:
- The project linked to this workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getProjectVersion
Returns the generated project version for this this workflow request.- Returns:
- The generated project version for this this workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getStream
Returns the stream for this project workflow request.- Returns:
- The stream for this project workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getWorkflow
Returns the workflow linked to this workflow request's project.- Returns:
- The workflow linked to this workflow request's project.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getEnvironment
Returns the environment the request was submitted for.- Returns:
- The environment the request was submitted for.
-
getInputs
Returns the list of inputs for this project workflow request.- Returns:
- The list of inputs for this project workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getRequestCreatedByFullName
Returns the full name of the user that submitted this request ("[First Name] [Last Name]").- Returns:
- The full name of the user that submitted this request.
-
getRequestCreatedByUserAndFullName
-
getRequestStartTime
Returns the requested start time for this request, if applicable.- Returns:
- The requested start time for this request, if applicable.
-
isBuildWorkflow
Returns whether this request is a build request.- Returns:
- Whether this request is a build request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
isDeployWorkflow
Returns whether this request is a deploy request.- Returns:
- Whether this request is a deploy request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getFlexFields
Returns the list of flexfields for this project workflow request.- Returns:
- The list of inputs for this project workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getFlexfield
Returns the project worflow request flexfield with the given code.- Parameters:
The- flexfield code.- Returns:
- The project worflow request flexfield
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getCreatedBy
Returns the name of the user that submitted this request.- Returns:
- The name of the user that submitted this request.
-
isForce
public boolean isForce()Returns whether "force" was selected for this request.- Returns:
- Whether "force" was selected for this request.
-
isStopOnPkgError
public boolean isStopOnPkgError()Returns whether "stop on package error" was selected for this request. Applicable for partial deployment projects only.- Returns:
- Whether "stop on package error" was selected for this request.
-
getCreatedOn
Returns the timstamp of when this request was created.- Returns:
- The timstamp of when this request was created.
-
getReleaseIdSnapshotId
Returns the internal identifier of the snapshot linked to this request. Null if not part of a release execution.- Returns:
- The internal identifier of the snapshot linked to this request.
-
getWorkflowExecutions
Returns the list of workflow executions for this project workflow request.- Returns:
- The list of workflow executions for this project workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getChangeLogs
Returns the SCM change logs for this project workflow request.- Returns:
- The SCM change logs for this project workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getRelease
Returns the release associated to this project workflow request, if applicable.- Returns:
- The release associated to this project workflow request
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getAttachments
Returns the list of all available email attachments for this request.- Specified by:
getAttachmentsin interfaceNotificationPayload- Overrides:
getAttachmentsin classBaseNotificationPayload- Returns:
- The list of all available email attachments for this request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getApprovalComments
Returns any approval comments for this project workflow request as a list of strings.- Returns:
- Any approval comments for this project workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-
getTestSuiteExecutions
Returns the test suite executions for this project workflow request.- Returns:
- The test suite executions for this project workflow request.
- Throws:
SQLException- If the information cannot be retrieved from the database.
-