Class QueryUserByTypeEntityId

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

public class QueryUserByTypeEntityId extends Object implements com.networknt.rpc.HybridHandler
This endpoint will be called from the user-command to check if the userType and entityId exists in the system when creating a new user. It queries the user database by calling the db provider. This endpoint is protected as we don't want to reveal user's email to others.
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

    • QueryUserByTypeEntityId

      public QueryUserByTypeEntityId()
  • Method Details

    • handle

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