public class NotificationFunctions
extends java.lang.Object
Constructor and Description |
---|
NotificationFunctions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatDateTime(java.sql.Timestamp pTimestamp)
Returns date in format dd MMM, yyyy HH:mm a z
|
java.util.List<NotifEnvironment> |
getActiveBuildEnvironments()
Returns list of all active build environments
|
java.util.List<NotifEnvironment> |
getActiveEnvironments()
Returns list of all active environments
|
java.util.List<NotifEnvironment> |
getAllEnvironments()
Returns list of all environments in topology
|
java.util.List<NotifEnvironment> |
getBuildEnvironments()
Returns list of all build environments
|
java.lang.String |
getEmailApprovalByReplySection(NotificationPayload pPayload)
This method is used to generate the Approval reply links for an event to attach to
the event template
|
java.lang.String |
getEmailApprovalByReplySectionForManualStep(NotificationPayload pPayload) |
NotifEnvironment |
getEnvironmentByCode(java.lang.String pEnvironmentCode)
Returns environment object for environment with supplied code, or null if environment is not found
|
NotifEnvironment |
getEnvironmentById(java.lang.Long pEnvironmentId)
Returns environment object for environment with supplied id, or null if environment is not found
|
java.lang.String |
getFlexDeployBaseUrl()
Returns base FlexDeploy URL as configured in system settings
|
java.util.List<NotifProjectState> |
getFullDeployProjectEnvironmentState(NotifProjectVersion pProjectVersion,
java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
NotifPipelineStageExecInfo pNotifPipelineStageExecInfo)
Gets the current project state for a particular full deploy project version and environment
|
NotifInstance |
getInstanceByCode(java.lang.String pInstanceCode)
Returns instance object for instance with supplied code, or null if instance is not found
|
NotifInstance |
getInstanceById(java.lang.Long pInstanceId)
Returns instance object for instance with supplied id, or null if instance is not found
|
java.util.List<NotifProjectState> |
getPartialDeployProjectEnvironmentState(NotifProjectVersion pProjectVersion,
java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
NotifPipelineStageExecInfo pNotifPipelineStageExecInfo)
Gets the current project state for a particular partial deploy project version and environment
|
boolean |
isAttachLogsAlways()
Returns true if the Attach Logs system setting is set to Always
|
boolean |
isAttachLogsNever()
Returns true if the Attach Logs system setting is set to Never
|
boolean |
isAttachLogsOnFailure()
Returns true if the Attach Logs system setting is set to On Failure
|
public java.lang.String getEmailApprovalByReplySection(NotificationPayload pPayload)
pPayload
- Notification payloadpublic java.lang.String getEmailApprovalByReplySectionForManualStep(NotificationPayload pPayload)
public java.util.List<NotifProjectState> getPartialDeployProjectEnvironmentState(NotifProjectVersion pProjectVersion, java.lang.Long pProjectId, java.lang.Long pEnvironmentId, NotifPipelineStageExecInfo pNotifPipelineStageExecInfo) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<NotifProjectState> getFullDeployProjectEnvironmentState(NotifProjectVersion pProjectVersion, java.lang.Long pProjectId, java.lang.Long pEnvironmentId, NotifPipelineStageExecInfo pNotifPipelineStageExecInfo) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String formatDateTime(java.sql.Timestamp pTimestamp)
public java.lang.String getFlexDeployBaseUrl()
public java.util.List<NotifEnvironment> getAllEnvironments()
public NotifEnvironment getEnvironmentById(java.lang.Long pEnvironmentId)
public NotifEnvironment getEnvironmentByCode(java.lang.String pEnvironmentCode)
public java.util.List<NotifEnvironment> getBuildEnvironments()
public java.util.List<NotifEnvironment> getActiveEnvironments()
public java.util.List<NotifEnvironment> getActiveBuildEnvironments()
public NotifInstance getInstanceById(java.lang.Long pInstanceId)
public NotifInstance getInstanceByCode(java.lang.String pInstanceCode)
public boolean isAttachLogsAlways()
public boolean isAttachLogsOnFailure()
public boolean isAttachLogsNever()