Class NotifProjectVersion

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

public class NotifProjectVersion extends BasePOJO
Represents a versioned project build. For use within Notification Templates.
See Also:
  • Constructor Details

    • NotifProjectVersion

      public NotifProjectVersion(ProjectVersionDataObject pDataObject)
      Creates an instance of this object with the given state information.
      Parameters:
      pDataObject - The project version data.
  • Method Details

    • getId

      public Long getId()
      Returns the internal identifier of the project version.
      Returns:
      The internal identifier of the project version.
    • getName

      public String getName()
      Returns the name of the project version (e.g. 1.0.15).
      Returns:
      The name of the project version.
    • getPackageName

      public String getPackageName()
      Returns the name of the build package. Only applicable for Partial Deployment projects.
      Returns:
      The name of the build package.
    • getProjectStreamId

      public Long getProjectStreamId()
      Returns the id of the stream which is used to perfrom the build.
      Returns:
      The id of the stream which is used to perfrom the build.
    • isRequestAllFiles

      public Boolean isRequestAllFiles()
      Returns whether the build version is for "all files" in the project. Only applicable for Partial Deployment projects.
      Returns:
      Whether the build version is for "all files" in the project.
    • isArtifactsPurged

      public boolean isArtifactsPurged()
      Returns whether the artifacts for the project version have been purged.
      Returns:
      Whether the artifacts for the project version have been purged.
    • isBuildSuccessful

      public boolean isBuildSuccessful()
      Returns whether the build represented by the project version is successful.
      Returns:
      Whether the build represented by the project version is successful.
    • getIsActive

      public boolean getIsActive()
      Returns whether the project version is active.
      Returns:
      Whether the project version is active.
    • getInactivatedBy

      public String getInactivatedBy()
    • getInactivatedOn

      public Timestamp getInactivatedOn()
    • getInactivatedReason

      public String getInactivatedReason()
    • getScmRevision

      public String getScmRevision()
      Returns the SCM revision associated with the build for this project version. Will be null for SCM type "NONE".
      Returns:
      The SCM revision associated with the build for this project version.
    • getCreatedOn

      public Timestamp getCreatedOn()
      Returns the date and time of when the project version was created.
      Returns:
      The date and time of when the project version was created.
    • getCreatedBy

      public String getCreatedBy()
      Returns the user who created the project version.
      Returns:
      The user who created the project version.
    • getCreatedByFullName

      public String getCreatedByFullName()
      Returns the full name of the user who created the project version.
      Returns:
      The full name of the user who created the project version.
    • getCreatedByUserAndFullName

      public String getCreatedByUserAndFullName()
      Returns the username(full name) of the user who created project version.
      Returns:
      Returns the username(full name) of the user who created project version.
    • getUpdatedOn

      public Timestamp getUpdatedOn()
      Returns the date and time of when the project version was last updated.
      Returns:
      The date and time of when the project version was last updated.
    • getUpdatedBy

      public String getUpdatedBy()
      Returns the user who last updated the project version.
      Returns:
      The user who last updated the project version.
    • getProjectVersionFiles

      public List<NotifProjectVersionFile> getProjectVersionFiles() throws SQLException
      Returns the list of package files contained in the build for this project version. Only applicable for Partial Deployment projects. Will return an empty list if not a Partial Deployment project.
      Returns:
      The list of package files contained in the build for this project version.
      Throws:
      SQLException - If the information cannot be retrieved from the database.