Class QueryUserById
java.lang.Object
net.lightapi.portal.user.query.handler.QueryUserById
- All Implemented Interfaces:
com.networknt.rpc.HybridHandler
This endpoint will be called from the user-command to check if the userId exists in the system when creating
a new user. It queries the userId from the user_t table and return the user object. This endpoint is protected
as we don't want to reveal user's email to others.
There are three situations: one is that the same user to query the user from the userId. The second one is an
admin or a host admin user doing the query in the admin page of the portal. The third one is that a peer to
query the user from a userId with client credential token for service to service call.
- 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
-
QueryUserById
public QueryUserById()
-
-
Method Details
-
handle
- Specified by:
handlein interfacecom.networknt.rpc.HybridHandler
-