Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JDBCUserUtil

Hierarchy

  • JDBCUserUtil

Index

Methods

createHashedUser

  • createHashedUser(username: string, hash: string): PromiseLike<void>
  • createHashedUser(username: string, hash: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
  • Insert a user into a database.

    Parameters

    • username: string
    • hash: string

    Returns PromiseLike<void>

  • Insert a user into a database.

    Parameters

    • username: string
    • hash: string
    • resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns JDBCUserUtil

createRolePermission

  • createRolePermission(role: string, permission: string): PromiseLike<void>
  • createRolePermission(role: string, permission: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
  • Insert a role permission into a database.

    Parameters

    • role: string
    • permission: string

    Returns PromiseLike<void>

  • Insert a role permission into a database.

    Parameters

    • role: string
    • permission: string
    • resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns JDBCUserUtil

createUser

  • createUser(username: string, password: string): PromiseLike<void>
  • createUser(username: string, password: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
  • Insert a user into a database.

    Parameters

    • username: string
    • password: string

    Returns PromiseLike<void>

  • Insert a user into a database.

    Parameters

    • username: string
    • password: string
    • resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns JDBCUserUtil

createUserRole

  • createUserRole(username: string, role: string): PromiseLike<void>
  • createUserRole(username: string, role: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): JDBCUserUtil
  • Insert a user role into a database.

    Parameters

    • username: string
    • role: string

    Returns PromiseLike<void>

  • Insert a user role into a database.

    Parameters

    • username: string
    • role: string
    • resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns JDBCUserUtil

Static create

  • create(client: JDBCClient): JDBCUserUtil
  • create(client: JDBCClient, insertUserSQL: string, insertUserRoleSQL: string, insertRolePermissionSQL: string): JDBCUserUtil
  • Create an instance of the user helper.

    Parameters

    • client: JDBCClient

    Returns JDBCUserUtil

  • Create an instance of the user helper with custom queries.

    Parameters

    • client: JDBCClient
    • insertUserSQL: string
    • insertUserRoleSQL: string
    • insertRolePermissionSQL: string

    Returns JDBCUserUtil

Generated using TypeDoc