Class QueryUserByEmail
java.lang.Object
net.lightapi.portal.user.query.handler.QueryUserByEmail
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.rpc.HybridHandler
getStatus, getStatus, validate
-
Constructor Details
-
QueryUserByEmail
public QueryUserByEmail()
-
-
Method Details
-
handle
- Specified by:
handlein interfacecom.networknt.rpc.HybridHandler
-