Class UserService

    • Constructor Summary

      Constructors 
      Constructor Description
      UserService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.vertx.core.Future<io.vertx.core.json.JsonObject> createUser​(io.vertx.core.json.JsonObject params)
      create user: SUser and OUser
      io.vertx.core.Future<Boolean> deleteUser​(String userKey)
      delete user including related roles and groups
      io.vertx.core.Future<io.vertx.core.json.JsonObject> fetchEmployee​(String userId)  
      io.vertx.core.Future<io.vertx.core.json.JsonArray> fetchGroupIds​(String userKey)
      R_USER_GROUP
      io.vertx.core.Future<io.vertx.core.json.JsonObject> fetchOUser​(String userKey)
      Fetch ouser by client_id
      io.vertx.core.Future<io.vertx.core.json.JsonArray> fetchRoleIds​(String userKey)
      R_USER_ROLE
      io.vertx.core.Future<io.vertx.core.json.JsonObject> fetchUser​(String userKey)
      modified by Hongwei at 2019/12/06 add fetchUser method to get user information: user information and related roles and groups add createUser method to create user entity: create user record in SUser and OUser tables modify updateUser method: save user information and related roles and groups add deleteUser method to delete user information: delete user information and related roles and groups
      io.vertx.core.Future<io.vertx.core.json.JsonObject> updateEmployee​(String userId, io.vertx.core.json.JsonObject params)
      Update employee information
      io.vertx.core.Future<io.vertx.core.json.JsonObject> updateUser​(String userId, io.vertx.core.json.JsonObject params)
      Update user information
    • Constructor Detail

      • UserService

        public UserService()
    • Method Detail

      • fetchOUser

        public io.vertx.core.Future<io.vertx.core.json.JsonObject> fetchOUser​(String userKey)
        Description copied from interface: UserStub
        Fetch ouser by client_id
        Specified by:
        fetchOUser in interface UserStub
      • fetchRoleIds

        public io.vertx.core.Future<io.vertx.core.json.JsonArray> fetchRoleIds​(String userKey)
        Description copied from interface: UserStub
        R_USER_ROLE

        userKey -> Relation to Role

        Specified by:
        fetchRoleIds in interface UserStub
      • fetchGroupIds

        public io.vertx.core.Future<io.vertx.core.json.JsonArray> fetchGroupIds​(String userKey)
        Description copied from interface: UserStub
        R_USER_GROUP

        userKey -> Relation to Group

        Specified by:
        fetchGroupIds in interface UserStub
      • fetchEmployee

        public io.vertx.core.Future<io.vertx.core.json.JsonObject> fetchEmployee​(String userId)
        Specified by:
        fetchEmployee in interface UserStub
      • updateUser

        public io.vertx.core.Future<io.vertx.core.json.JsonObject> updateUser​(String userId,
                                                                              io.vertx.core.json.JsonObject params)
        Description copied from interface: UserStub
        Update user information
        Specified by:
        updateUser in interface UserStub
      • updateEmployee

        public io.vertx.core.Future<io.vertx.core.json.JsonObject> updateEmployee​(String userId,
                                                                                  io.vertx.core.json.JsonObject params)
        Description copied from interface: UserStub
        Update employee information
        Specified by:
        updateEmployee in interface UserStub
      • fetchUser

        public io.vertx.core.Future<io.vertx.core.json.JsonObject> fetchUser​(String userKey)
        Description copied from interface: UserStub
        modified by Hongwei at 2019/12/06 add fetchUser method to get user information: user information and related roles and groups add createUser method to create user entity: create user record in SUser and OUser tables modify updateUser method: save user information and related roles and groups add deleteUser method to delete user information: delete user information and related roles and groups
        Specified by:
        fetchUser in interface UserStub
      • createUser

        public io.vertx.core.Future<io.vertx.core.json.JsonObject> createUser​(io.vertx.core.json.JsonObject params)
        Description copied from interface: UserStub
        create user: SUser and OUser
        Specified by:
        createUser in interface UserStub
      • deleteUser

        public io.vertx.core.Future<Boolean> deleteUser​(String userKey)
        Description copied from interface: UserStub
        delete user including related roles and groups
        Specified by:
        deleteUser in interface UserStub