public class UsersHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_EMAIL |
static String |
USER_ENTITY |
static String |
USER_FIRST_NAME |
static String |
USER_IS_ADMIN |
static String |
USER_LAST_NAME |
static String |
USER_NAME |
static String |
USER_PASSWORD |
| Modifier | Constructor and Description |
|---|---|
protected |
UsersHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUser(mjson.Json user) |
mjson.Json |
allUsers(int offset,
int limit) |
static UsersHandler |
getInstance() |
mjson.Json |
getUser(String username) |
boolean |
removeUser(String username) |
boolean |
updateUser(mjson.Json user) |
boolean |
userExists(String username) |
boolean |
validateUser(String username,
String hashedPassword) |
public static final String USER_ENTITY
public static final String USER_NAME
public static final String USER_PASSWORD
public static final String USER_FIRST_NAME
public static final String USER_LAST_NAME
public static final String USER_EMAIL
public static final String USER_IS_ADMIN
public static UsersHandler getInstance()
public boolean addUser(mjson.Json user)
public boolean updateUser(mjson.Json user)
public boolean userExists(String username)
public mjson.Json getUser(String username)
public boolean removeUser(String username)
public mjson.Json allUsers(int offset,
int limit)
Copyright © 2016 Grakn Labs Ltd. All rights reserved.