Class QueryUserByEmail

java.lang.Object
net.lightapi.portal.user.query.handler.QueryUserByEmail
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class QueryUserByEmail extends Object implements com.networknt.rpc.HybridHandler
This endpoint will be called from the UI with a logged-in user to get his/her profile. It is also being called from the user-command to check if a user exists before creating a new user. When called from the UI, an authorization code token is required. When calling from another service, for example, user-command service, a client credentials token is required. There would be no user_id and roles in the client credentials token. As we need the latest info about the user to get retrieved, we need to query the database directly.
Author:
Steve Hu
  • Field Summary

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.undertow.server.HttpServerExchange exchange, Object input)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Constructor Details

    • QueryUserByEmail

      public QueryUserByEmail()
  • Method Details

    • handle

      public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
      Specified by:
      handle in interface com.networknt.rpc.HybridHandler