public class SystemKeyspaceUsers extends UsersHandler
SUPERUSER, USER_EMAIL, USER_ENTITY, USER_FIRST_NAME, USER_IS_ADMIN, USER_LAST_NAME, USER_NAME, USER_PASSWORD, USER_SALT| Modifier and Type | Method and Description |
|---|---|
boolean |
addUser(mjson.Json userJson)
Add a new user.
|
mjson.Json |
allUsers(int offset,
int limit)
Retrieve the list of all users with all their properties.
|
mjson.Json |
getUser(String username)
Return the user with the specified name as a JSON object where the properties have the same
names as the Grakn resource types.
|
boolean |
removeUser(String username)
Removes a user with the given username.
|
boolean |
updateUser(mjson.Json user)
Update a given user.
|
boolean |
userExists(String username)
Return
true if the user with the specified name exists and false otherwise. |
boolean |
validateUser(String username,
String passwordClient) |
create, superUsernamepublic boolean addUser(mjson.Json userJson)
addUser in class UsersHandlertrue if the new user was added successfully and false
otherwise.public boolean userExists(String username)
true if the user with the specified name exists and false otherwise.userExists in class UsersHandlerpublic mjson.Json getUser(String username)
Json.nil() is returned.getUser in class UsersHandlerpublic boolean validateUser(String username, String passwordClient)
validateUser in class UsersHandlerusername - The username of the user to validate.passwordClient - The password sent from the client.public mjson.Json allUsers(int offset,
int limit)
allUsers in class UsersHandleroffset - limit - public boolean removeUser(String username)
removeUser in class UsersHandlertrue if the user was removed successfully and false otherwise.public boolean updateUser(mjson.Json user)
updateUser in class UsersHandlertrue if the user was updated successfully and false otherwise.Copyright © 2017 Grakn Labs Ltd. All rights reserved.