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) void
updateEditableGroupsWritableFolders
(String editableGroups, String writableFolders, Long userId) void
updateMobileDeviceByUserId
(Long userId, String mobileDevice) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, 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, saveAll, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, 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 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
-