Interface UserFilterRepository

    • 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 UserFilter with specified name for a user on a project
      java.util.List<UserFilter> findAllByIdInAndProjectId​(java.util.Collection<java.lang.Long> ids, java.lang.Long projectId)  
      java.util.List<UserFilter> findAllByProjectId​(java.lang.Long projectId)  
      java.util.Optional<UserFilter> findByIdAndProjectId​(java.lang.Long id, java.lang.Long projectId)
      Finds filter 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<UserFilter> findByIdAndProjectId​(java.lang.Long id,
                                                            java.lang.Long projectId)
        Finds filter by 'id' and 'project id'
        Parameters:
        id - ShareableEntity.id
        projectId - Id of the Project whose filter will be extracted
        Returns:
        UserFilter wrapped in the Optional
      • findAllByIdInAndProjectId

        java.util.List<UserFilter> findAllByIdInAndProjectId​(java.util.Collection<java.lang.Long> ids,
                                                             java.lang.Long projectId)
        Parameters:
        ids - Iterable of the filter Ids
        projectId - Id of the Project whose filters will be extracted
        Returns:
        The List of the UserFilter
      • findAllByProjectId

        java.util.List<UserFilter> findAllByProjectId​(java.lang.Long projectId)
        Parameters:
        projectId - Id of the Project whose filters will be extracted
        Returns:
        The List of the UserFilter
      • existsByNameAndOwnerAndProjectId

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