Class LoginResource

java.lang.Object
com.abavilla.fpi.fw.controller.AbsBaseResource<LoginDto,Session,LoginSvc>
com.abavilla.fpi.login.controller.LoginResource
All Implemented Interfaces:
com.abavilla.fpi.fw.controller.IResource

@Path("/fpi/login") public class LoginResource extends com.abavilla.fpi.fw.controller.AbsBaseResource<LoginDto,Session,LoginSvc>
Resource for Login to FPI System URI Path: "/fpi/login"
Author:
Vince Villamora
  • Field Summary

    Fields inherited from class com.abavilla.fpi.fw.controller.AbsBaseResource

    service
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<SessionDto>
    login(PasswordLoginDto loginDto, Boolean refreshToken)
    Endpoint to establish a new login session
    protected org.jboss.resteasy.reactive.RestResponse<com.abavilla.fpi.fw.dto.impl.RespDto<com.abavilla.fpi.fw.dto.IDto>>
    mapException(com.abavilla.fpi.fw.exceptions.FPISvcEx x)

    Methods inherited from class java.lang.Object

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

    • LoginResource

      public LoginResource()
  • Method Details

    • login

      @POST public io.smallrye.mutiny.Uni<SessionDto> login(PasswordLoginDto loginDto, @QueryParam("refreshToken") Boolean refreshToken)
      Endpoint to establish a new login session
      Parameters:
      loginDto - Credentials used for authentication
      refreshToken - Flag to check if login will use a refresh token to refresh an expired access token
      Returns:
      SessionDto Session information
    • mapException

      protected org.jboss.resteasy.reactive.RestResponse<com.abavilla.fpi.fw.dto.impl.RespDto<com.abavilla.fpi.fw.dto.IDto>> mapException(com.abavilla.fpi.fw.exceptions.FPISvcEx x)
      Overrides:
      mapException in class com.abavilla.fpi.fw.controller.AbsBaseResource<LoginDto,Session,LoginSvc>