Interface UserDetailsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserDetailsEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<UserDetailsEntity,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<UserDetailsEntity>,org.springframework.data.repository.PagingAndSortingRepository<UserDetailsEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<UserDetailsEntity>,org.springframework.data.repository.Repository<UserDetailsEntity,Long>
@Repository
public interface UserDetailsRepository
extends org.springframework.data.jpa.repository.JpaRepository<UserDetailsEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<UserDetailsEntity>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByAdmin(Boolean isAdmin) org.springframework.data.domain.Page<UserDetailsEntity>findAllByAdmin(Boolean admin, org.springframework.data.domain.Pageable pageable) findAllByIdIn(List<Long> ids) findByEmail(String email) findByLoginOrderByIdDesc(String login) getApiKeyByUserId(Long userId) getMobileDeviceByUserId(Long userId) getPasswordByUserId(Long userId) getPasswordSaltByUserId(Long userId) getUserEmailsByUserGroupsIds(String groupId1, String groupId2, String groupId3, String groupId4) getUserIdsByUserGroupsIds(String groupId1, String groupId2, String groupId3, String groupId4) voidupdateEditableGroupsWritableFolders(String editableGroups, String writableFolders, Long userId) voidupdateMobileDeviceByUserId(Long userId, String mobileDevice) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, findAll, findAll, findAll, findOneMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAllByAdmin
org.springframework.data.domain.Page<UserDetailsEntity> findAllByAdmin(Boolean admin, org.springframework.data.domain.Pageable pageable) -
findAllByAdmin
-
getUserIdsByUserGroupsIds
-
getUserEmailsByUserGroupsIds
-
getApiKeyByUserId
-
updateEditableGroupsWritableFolders
@Transactional @Modifying @Query("UPDATE UserDetailsEntity SET editableGroups = :editableGroups, writableFolders = :writableFolders WHERE id = :userId") void updateEditableGroupsWritableFolders(@Param("editableGroups") String editableGroups, @Param("writableFolders") String writableFolders, @Param("userId") Long userId) -
getMobileDeviceByUserId
-
getPasswordByUserId
-
getPasswordSaltByUserId
-
updateMobileDeviceByUserId
-
findByEmail
-
findAllByEmailOrderByIdDesc
-
findByLoginOrderByIdDesc
-
findAllByEmailAndAdminTrueOrderByIdDesc
-
findByLoginAndAdminTrueOrderByIdDesc
-
findAllByIdIn
@Query("SELECT u FROM UserDetailsEntity u WHERE u.id IN :ids") List<UserDetailsEntity> findAllByIdIn(@Param("ids") List<Long> ids)
-