Methods
createHashedUser
- createHashedUser(username: string, hash: string): PromiseLike<void>
- createHashedUser(username: string, hash: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
-
Parameters
-
username: string
-
hash: string
Returns PromiseLike<void>
-
Parameters
-
username: string
-
hash: string
-
resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>
createRolePermission
- createRolePermission(role: string, permission: string): PromiseLike<void>
- createRolePermission(role: string, permission: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
-
Parameters
-
role: string
-
permission: string
Returns PromiseLike<void>
-
Parameters
-
role: string
-
permission: string
-
resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>
createUser
- createUser(username: string, password: string): PromiseLike<void>
- createUser(username: string, password: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
-
Parameters
-
username: string
-
password: string
Returns PromiseLike<void>
-
Parameters
-
username: string
-
password: string
-
resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>
createUserRole
- createUserRole(username: string, role: string): PromiseLike<void>
- createUserRole(username: string, role: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
-
Parameters
-
username: string
-
role: string
Returns PromiseLike<void>
-
Parameters
-
username: string
-
role: string
-
resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>
Static create
- create(client: JDBCClient): JDBCUserUtil
- create(client: JDBCClient, insertUserSQL: string, insertUserRoleSQL: string, insertRolePermissionSQL: string): JDBCUserUtil
-
Parameters
-
Parameters
-
client: JDBCClient
-
insertUserSQL: string
-
insertUserRoleSQL: string
-
insertRolePermissionSQL: string
Insert a user into a database.