Interface UserSshKeyRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteById​(String id)  
      void deleteByUserId​(String userId)  
      org.springframework.data.domain.Page<UserSshKeyEntity> findById​(String id, org.springframework.data.domain.Pageable page)  
      org.springframework.data.domain.Page<UserSshKeyEntity> findByUserId​(String userId, org.springframework.data.domain.Pageable page)  
      org.springframework.data.domain.Page<UserSshKeyEntity> getUserSshKeysAfterDate​(Date date, String userId, org.springframework.data.domain.Pageable page)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

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

        deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

        count, exists, findAll, findAll, findAll, findOne
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findBy, findOne
    • Method Detail

      • deleteByUserId

        @Modifying
        void deleteByUserId​(String userId)
      • deleteById

        @Modifying
        void deleteById​(String id)
        Specified by:
        deleteById in interface org.springframework.data.repository.CrudRepository<UserSshKeyEntity,​String>
      • findByUserId

        org.springframework.data.domain.Page<UserSshKeyEntity> findByUserId​(String userId,
                                                                            org.springframework.data.domain.Pageable page)
      • findById

        org.springframework.data.domain.Page<UserSshKeyEntity> findById​(String id,
                                                                        org.springframework.data.domain.Pageable page)
      • getUserSshKeysAfterDate

        @Query("SELECT u FROM UserSshKeyEntity u WHERE u.expirationDate > :date AND u.userId=:userId")
        org.springframework.data.domain.Page<UserSshKeyEntity> getUserSshKeysAfterDate​(@Param("date")
                                                                                       Date date,
                                                                                       @Param("userId")
                                                                                       String userId,
                                                                                       org.springframework.data.domain.Pageable page)