Class TemplateVersionDeploymentDao

java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.TemplateVersionDeploymentDao

public class TemplateVersionDeploymentDao extends AbstractDao
Provides a DAO for the TemplateVersionDeployment entity.
See Also:
  • Constructor Details

    • TemplateVersionDeploymentDao

      public TemplateVersionDeploymentDao()
  • Method Details

    • getTemplateVersionDeployment

      public TemplateVersionDeployment getTemplateVersionDeployment(String id)
      Return the template version deployment with the specified OID
      Parameters:
      id - the OID
      Returns:
      the matching template version deployment record, or null if not found
    • getDueDeployments

      public List<TemplateVersionDeployment> getDueDeployments(Date cutoffDate)
      Return the list of all due template version deployments, meaning all deployments whose deployment time is before a cutoff date and whose status is on "Ready"
      Parameters:
      cutoffDate - the cutoff date
      Returns:
      the list of template version deployments, sorted descending by due date
    • getFutureDeployments

      public List<TemplateVersionDeployment> getFutureDeployments(Form form)
      Return the list of all template version deployments scheduled for a future time for the given template. Note that only deployments with a status of "Ready" will be returned.
      Parameters:
      form - a non-null form
      Returns:
      the list of matching template version deployments