Interface ProjectDao

All Superinterfaces:
BambooObjectDao<Project>, BambooObjectWithOidDao<Project>
All Known Implementing Classes:
ProjectHibernateDao

public interface ProjectDao extends BambooObjectWithOidDao<Project>
  • Method Details

    • findById

      @Nullable @Nullable Project findById(long id)
    • findAll

      @NotNull @NotNull Collection<? extends Project> findAll()
    • findAll

      @NotNull @NotNull Collection<? extends Project> findAll(int firstResult, int maxResults)
    • findAllProjectsIds

      @NotNull @NotNull List<Long> findAllProjectsIds()
      Returns:
      ids of all projects (not marked for deletion)
    • findAllProjectsIds

      @NotNull @NotNull List<Long> findAllProjectsIds(int startIndex, int offset)
      Returns:
      ids of all projects (not marked for deletion)
      Since:
      10.0
    • count

      Number count()
    • countNonDeleted

      Number countNonDeleted()
    • delete

      void delete(@NotNull @NotNull Project project)
      Description copied from interface: BambooObjectDao
      Removes the given entity from the database
      Specified by:
      delete in interface BambooObjectDao<Project>
      Parameters:
      project - entity to be removed
    • isExistingProjectName

      boolean isExistingProjectName(@NotNull @NotNull String projectName)
    • isExistingProjectKey

      boolean isExistingProjectKey(@NotNull @NotNull String projectKey)
    • getProjectByKey

      Project getProjectByKey(@NotNull @NotNull String key)
    • getProjectByName

      Project getProjectByName(@NotNull @NotNull String projectName)
    • getNonEmptyProjects

      @NotNull @NotNull List<Project> getNonEmptyProjects()
      Returns:
      projects (not marked for deletion) with at least one top level plan (not marked for deletion)
    • getEmptyProjects

      @NotNull @NotNull List<Project> getEmptyProjects()
      Returns:
      projects (not marked for deletion) without top level plans (not marked for deletion)
    • getAllProjectsMarkedForDeletion

      @NotNull @NotNull List<Project> getAllProjectsMarkedForDeletion()
      Returns:
      all Projects that are marked for deletion..
    • getMaxProjectOid

      @Nullable @Nullable BambooEntityOid getMaxProjectOid(int serverKey)
      Returns the max BambooEntityOid that's currently in use of BambooEntityType.PROJECT type, with the given server key. Returns null if no OIDs are in use of this type with the given server key.