Class LoginSvc

java.lang.Object
com.abavilla.fpi.fw.service.AbsSvc<D,E>
com.abavilla.fpi.fw.service.AbsRepoSvc<LoginDto,Session,SessionRepo>
com.abavilla.fpi.login.service.LoginSvc
All Implemented Interfaces:
com.abavilla.fpi.fw.service.ISvc

@ApplicationScoped public class LoginSvc extends com.abavilla.fpi.fw.service.AbsRepoSvc<LoginDto,Session,SessionRepo>
Service layer for creating and managing login sessions.
Author:
Vince Villamora
  • Field Summary

    Fields inherited from class com.abavilla.fpi.fw.service.AbsRepoSvc

    repo
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<SessionDto>
    Performs login, if existing session is detected, return currently established token.
    io.smallrye.mutiny.Uni<SessionDto>
    Force to retrieve a new access token from authentication server.

    Methods inherited from class com.abavilla.fpi.fw.service.AbsSvc

    delete, get, getByPage, list, mapToDto, mapToEntity, patch, patchEntityFromDto, save, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoginSvc

      public LoginSvc()
  • Method Details

    • login

      public io.smallrye.mutiny.Uni<SessionDto> login(PasswordLoginDto login)
      Performs login, if existing session is detected, return currently established token.
      Parameters:
      login - LoginDto Object containing credentials
      Returns:
      SessionDto Session information
    • refreshToken

      public io.smallrye.mutiny.Uni<SessionDto> refreshToken(PasswordLoginDto login)
      Force to retrieve a new access token from authentication server.
      Parameters:
      login - Login credentials
      Returns:
      SessionDto object