Class SimpleCredentialsDao

java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao<org.jooq.Record,SimpleCredentials>
ru.cg.webbpm.modules.security.api.impl.dao.jooq.SimpleCredentialsDao

@Repository public class SimpleCredentialsDao extends BaseDao<org.jooq.Record,SimpleCredentials>
Author:
latypov
  • Constructor Details

    • SimpleCredentialsDao

      public SimpleCredentialsDao()
  • Method Details

    • createRecordMapper

      protected org.jooq.RecordMapper<org.jooq.Record,SimpleCredentials> createRecordMapper()
      Creates simple credentials record mapper.
      Specified by:
      createRecordMapper in class BaseDao<org.jooq.Record,SimpleCredentials>
      Returns:
      new record mapper.
    • getSimpleCredentialsByUserAccountId

      public SimpleCredentials getSimpleCredentialsByUserAccountId(String userId)
      Gets simple credentials by user account id.
      Parameters:
      userId - user account id of user to receive simple credentials. Instance of String type.
      Returns:
      simple credentials or null if does not exist. Instance of SimpleCredentials type.
    • getSimpleCredentialsByUsername

      public SimpleCredentials getSimpleCredentialsByUsername(String username)
      Get simple credentials by username.
      Parameters:
      username - username of user to receive simple credentials. Instance of String type.
      Returns:
      simple credentials or null if does not exist. Instance of SimpleCredentials type.
    • getPasswordByUsername

      public String getPasswordByUsername(String username)
      Gets simple credentials password by username.
      Parameters:
      username - username of user to receive password. Instance of String type.
      Returns:
      simple credentials password or null if does not exist. Instance of String type.
    • createSimpleCredentials

      public void createSimpleCredentials(SimpleCredentials simpleCredentials)
      Inserts simple credentials into database.
      Parameters:
      simpleCredentials - simple credentials to add. Instance of SimpleCredentials type.
    • updateSimpleCredentialsPassword

      public void updateSimpleCredentialsPassword(SimpleCredentials simpleCredentials)
      Updates simple credentials in database. If password is null when password updated value is ignored.
      Parameters:
      simpleCredentials - simple credentials to update. Instance of SimpleCredentials type.