Interface DashboardRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean existsByNameAndOwnerAndProjectId​(java.lang.String name, java.lang.String owner, java.lang.Long projectId)
      Checks the existence of the Dashboard with specified name for a user on a project
      boolean existsByNameAndProjectId​(java.lang.String name, java.lang.Long projectId)
      Checks the existence of the Dashboard with specified name on a project
      java.util.List<Dashboard> findAllByProjectId​(java.lang.Long projectId)  
      java.util.Optional<Dashboard> findByIdAndProjectId​(java.lang.Long id, java.lang.Long projectId)
      Finds dashboard by 'id' and 'project id'
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByIdAndProjectId

        java.util.Optional<Dashboard> findByIdAndProjectId​(java.lang.Long id,
                                                           java.lang.Long projectId)
        Finds dashboard by 'id' and 'project id'
        Parameters:
        id - ShareableEntity.id
        projectId - Id of the Project whose dashboard will be extracted
        Returns:
        Dashboard wrapped in the Optional
      • findAllByProjectId

        java.util.List<Dashboard> findAllByProjectId​(java.lang.Long projectId)
      • existsByNameAndOwnerAndProjectId

        boolean existsByNameAndOwnerAndProjectId​(java.lang.String name,
                                                 java.lang.String owner,
                                                 java.lang.Long projectId)
        Checks the existence of the Dashboard with specified name for a user on a project
        Parameters:
        name - Dashboard.name
        owner - ShareableEntity.owner
        projectId - Id of the Project on which dashboard existence will be checked
        Returns:
        if exists 'true' else 'false'
      • existsByNameAndProjectId

        boolean existsByNameAndProjectId​(java.lang.String name,
                                         java.lang.Long projectId)
        Checks the existence of the Dashboard with specified name on a project
        Parameters:
        name - Dashboard.name
        projectId - Project.id
        Returns:
        if exists 'true' else 'false'