Class SessionRepo

java.lang.Object
com.abavilla.fpi.fw.repo.AbsMongoRepo<Session>
com.abavilla.fpi.login.repo.SessionRepo
All Implemented Interfaces:
com.abavilla.fpi.fw.repo.IMongoRepo<Session>, io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepository<Session>, io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase<Session,org.bson.types.ObjectId>

@ApplicationScoped public class SessionRepo extends com.abavilla.fpi.fw.repo.AbsMongoRepo<Session>
Repository layer for managing the session table in DB.
Author:
Vince Villamora
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<Optional<Session>>
    Finds an existing active session by username

    Methods inherited from class com.abavilla.fpi.fw.repo.AbsMongoRepo

    byId, byPage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase

    count, count, count, count, count, delete, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, find, find, findAll, findAll, findById, findByIdOptional, list, list, list, list, list, list, list, list, listAll, listAll, mongoCollection, mongoDatabase, persist, persist, persist, persist, persistOrUpdate, persistOrUpdate, persistOrUpdate, persistOrUpdate, stream, stream, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update, update, update, update, update, update
  • Constructor Details

    • SessionRepo

      public SessionRepo()
  • Method Details

    • findByUsername

      public io.smallrye.mutiny.Uni<Optional<Session>> findByUsername(String username)
      Finds an existing active session by username
      Parameters:
      username - Username to find
      Returns:
      Session found