public class SecurityTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
SecurityTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
void |
addNewUser(String user,
String saltPassHash,
int permLevel) |
void |
addNewUser(WebUser info) |
void |
addUsers(List<WebUser> users) |
void |
createTable() |
List<WebUser> |
getUsers() |
WebUser |
getWebUser(String user) |
boolean |
removeUser(String user) |
boolean |
userExists(String user) |
addColumns, close, commit, createTable, equals, execute, executeUnsafe, getConnection, getDb, getTableName, getVersion, hashCode, removeAllData, removeColumns, toString
public SecurityTable(SQLDB db, boolean usingMySQL)
public void createTable() throws DBCreateTableException
createTable
in class Table
DBCreateTableException
public boolean removeUser(String user)
public void addNewUser(WebUser info) throws SQLException
SQLException
public void addNewUser(String user, String saltPassHash, int permLevel) throws SQLException
SQLException
public boolean userExists(String user) throws SQLException
SQLException
public WebUser getWebUser(String user) throws SQLException
SQLException
public List<WebUser> getUsers() throws SQLException
SQLException
public void addUsers(List<WebUser> users) throws SQLException
SQLException
Copyright © 2017. All rights reserved.