Class NotifPipelineStageExecInfo

java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.fd.model2.notification.pojos.NotifPipelineStageExecInfo
All Implemented Interfaces:
Serializable

public class NotifPipelineStageExecInfo extends BasePOJO
Represents the Execution Info of a pipeline stage execution. For use within Notification Templates.
See Also:
  • Constructor Details

    • NotifPipelineStageExecInfo

      public NotifPipelineStageExecInfo(Long pPipelineStageExecId)
      Creates the Execution Info for the give pipeline stage execution id.
      Parameters:
      pPipelineStageExecId - The internal id of the pipeline stage execution.
  • Method Details

    • getRelatedTicket

      public String getRelatedTicket() throws SQLException
      Returns the stage level Related Ticket. If no related ticket is defined, empty String will be returned.
      Returns:
      The stage level Related Ticket.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getRelatedTicket

      public String getRelatedTicket(Long pProjectId) throws SQLException
      Returns the project level Related Ticket. If no related ticket is defined, the stage level related ticket will be returned.
      Returns:
      The project level Related Ticket.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getRelatedTicket

      public String getRelatedTicket(Long pProjectId, String pPackageName) throws SQLException
      Returns the package level Related Ticket. If no related ticket is defined, the stage level related ticket will be returned.
      Returns:
      The package level Related Ticket.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getDeployOverrideEnum

      public DeploymentOverridesEnum getDeployOverrideEnum(Long pProjectId) throws SQLException
      Returns the enum of the deploy override selection (NOOVERRIDE, FORCE, SKIP) for the given project.
      Parameters:
      pProjectId - The id of the project to check for override.
      Returns:
      The override selection for the given project id.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getDeployOverride

      public String getDeployOverride(Long pProjectId) throws SQLException
      Returns the enum display name of the deploy override selection (No Override, Force, Skip) for the given project.
      Parameters:
      pProjectId - The id of the project to check for override.
      Returns:
      The override selection for the given project id.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getDeployOverrideCode

      public String getDeployOverrideCode(Long pProjectId, String pPackageName) throws SQLException
      Returns the enum name of the deploy override selection (NOOVERRIDE, FORCE, SKIP) for the given project and package.
      Parameters:
      pProjectId - The id of the project to check for override.
      pPackageName - The name of the package to check override for.
      Returns:
      The override selection for the given project id and package name.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getDeployOverrideEnum

      public DeploymentOverridesEnum getDeployOverrideEnum(Long pProjectId, String pPackageName) throws SQLException
      Returns the enum of the deploy override selection (NOOVERRIDE, FORCE, SKIP) for the given project and package.
      Parameters:
      pProjectId - The id of the project to check for override.
      pPackageName - The name of the package to check for override.
      Returns:
      The override selection for the given project id and package name.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getDeployOverride

      public String getDeployOverride(Long pProjectId, String pPackageName) throws SQLException
      Returns the enum display name of the deploy override selection (No Override, Force, Skip) for the given project and package.
      Parameters:
      pProjectId - The id of the project to check for override.
      pPackageName - The name of the package to check for override.
      Returns:
      The override selection for the given project id and package name.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • isForceDeploy

      public boolean isForceDeploy(Long pProjectId) throws SQLException
      Returns whether the given project is set to "Force" deploy.
      Parameters:
      pProjectId - The project id to check.
      Returns:
      Whether the project is set to force deploy.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • isForceDeploy

      public boolean isForceDeploy(Long pProjectId, String pPackageName) throws SQLException
      Returns whether the given project and package is set to "Force" deploy.
      Parameters:
      pProjectId - The project id to check.
      pPackageName - The package name to check.
      Returns:
      Whether the project and package is set to force deploy.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • isSkipDeploy

      public boolean isSkipDeploy(Long pProjectId) throws SQLException
      Returns whether the given project is set to "Skip" deploy.
      Parameters:
      pProjectId - The project id to check.
      Returns:
      Whether the project is set to force deploy.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • isSkipDeploy

      public boolean isSkipDeploy(Long pProjectId, String pPackageName) throws SQLException
      Returns whether the given project and package is set to "Skip" deploy.
      Parameters:
      pProjectId - The project id to check.
      pPackageName - The package name to check.
      Returns:
      Whether the project and package is set to skip deploy.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • isNoOverrideDeploy

      public boolean isNoOverrideDeploy(Long pProjectId) throws SQLException
      Returns whether the given project is set to "No Override" for deployment.
      Parameters:
      pProjectId - The project id to check.
      Returns:
      Whether the project is set to no override.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • isNoOverrideDeploy

      public boolean isNoOverrideDeploy(Long pProjectId, String pPackageName) throws SQLException
      Returns whether the given project and package is set to "No Override" for deployment.
      Parameters:
      pProjectId - The project id to check.
      pPackageName - The package name to check.
      Returns:
      Whether the project and package is set to no override.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getIntanceOverrides

      public List<NotifInstance> getIntanceOverrides(Long pProjectId) throws SQLException
      Returns a list of override instances set for the given project.
      Parameters:
      pProjectId - The id of the project to check.
      Returns:
      A list of override instances for the project.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getInstanceOverride

      public List<NotifInstance> getInstanceOverride(Long pProjectId, String pPackageName) throws SQLException
      Returns a list of override instances set for the given project and package.
      Parameters:
      pProjectId - The project id to check.
      pPackageName - The package name to check.
      Returns:
      A list of override instances for the project and package.
      Throws:
      SQLException - If the information cannot be retrieved from the database.