SessionLogEntryRepository

Provides supporting functionality for querying SessionLogEntry entities.

API

SessionLogEntryRepository.java
interface SessionLogEntryRepository {
  void logoutAllSessions(Timestamp logoutTimestamp)
  SessionLogEntry create(String username, UUID sessionGuid, String httpSessionId, SessionSubscriber.CausedBy causedBy, Timestamp timestamp)
  Optional<SessionLogEntry> findBySessionGuid(UUID sessionGuid)
  Optional<SessionLogEntry> findByHttpSessionId(String httpSessionId)
  List<SessionLogEntry> findByUsername(String username)
  List<SessionLogEntry> findByUsernameAndFromAndTo(String username, LocalDate from, LocalDate to)
  List<SessionLogEntry> findByFromAndTo(LocalDate from, LocalDate to)
  List<SessionLogEntry> findByUsernameAndStrictlyBefore(String username, Timestamp from)
  List<SessionLogEntry> findByUsernameAndStrictlyAfter(String username, Timestamp from)
  List<SessionLogEntry> findActiveSessions()
  List<SessionLogEntry> findRecentByUsername(String username)
  List<SessionLogEntry> findAll()     (1)
  void removeAll()     (2)
}
1 findAll()

for testing purposes only

2 removeAll()

for testing purposes only

Members

findAll()

for testing purposes only

removeAll()

for testing purposes only