Uses of Class
com.jangular.backend.models.UserLoginHistory
Packages that use UserLoginHistory
Package
Description
-
Uses of UserLoginHistory in com.jangular.backend.controller
Methods in com.jangular.backend.controller that return types with arguments of type UserLoginHistoryModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<UserLoginHistory>> UserController.getActiveSessions(Long id) Get active sessionsorg.springframework.http.ResponseEntity<List<UserLoginHistory>> UserController.getUserLoginHistory(Long id) Get user login historyorg.springframework.http.ResponseEntity<List<UserLoginHistory>> UserController.getUserLoginHistoryRange(Long id, String startDate, String endDate) Get user login history for a specific date range -
Uses of UserLoginHistory in com.jangular.backend.repository
Methods in com.jangular.backend.repository that return types with arguments of type UserLoginHistoryModifier and TypeMethodDescriptionUserLoginHistoryRepository.findActiveSessionsByUserId(Long userId) UserLoginHistoryRepository.findByUserIdAndLoginTimeBetween(Long userId, LocalDateTime startDate, LocalDateTime endDate) UserLoginHistoryRepository.findByUserIdAndSuccessfulOrderByLoginTimeDesc(Long userId, boolean successful) UserLoginHistoryRepository.findByUserIdOrderByLoginTimeDesc(Long userId) UserLoginHistoryRepository.findTopByUserIdAndSuccessfulTrueAndLogoutTimeIsNullOrderByLoginTimeDesc(Long userId) -
Uses of UserLoginHistory in com.jangular.backend.service
Methods in com.jangular.backend.service that return UserLoginHistoryModifier and TypeMethodDescriptionUserLoginHistoryService.recordLoginAttempt(Long userId, String ipAddress, String userAgent, boolean successful, String errorMessage) Record a login attempt (successful or failed)Methods in com.jangular.backend.service that return types with arguments of type UserLoginHistoryModifier and TypeMethodDescriptionUserLoginHistoryService.getActiveSessions(Long userId) Get active sessions (logins without logout)UserLoginHistoryService.getFailedLogins(Long userId) Get failed login attemptsUserLoginHistoryService.getLoginHistoryBetween(Long userId, LocalDateTime startDate, LocalDateTime endDate) Get login history within a date rangeUserLoginHistoryService.getSuccessfulLogins(Long userId) Get successful login historyUserLoginHistoryService.getUserLoginHistory(Long userId) Get user login history