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
- Author:
- latypov
-
Field Summary
Fields inherited from class ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao
dslContext, enrichedRecordMapper, recordMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jooq.RecordMapper<org.jooq.Record,SimpleCredentials> Creates simple credentials record mapper.voidcreateSimpleCredentials(SimpleCredentials simpleCredentials) Inserts simple credentials into database.getPasswordByUsername(String username) Gets simple credentials password by username.Gets simple credentials by user account id.getSimpleCredentialsByUsername(String username) Get simple credentials by username.voidupdateSimpleCredentialsPassword(SimpleCredentials simpleCredentials) Updates simple credentials in database.Methods inherited from class ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao
createEnrichedRecordMapper, enriched
-
Constructor Details
-
SimpleCredentialsDao
public SimpleCredentialsDao()
-
-
Method Details
-
createRecordMapper
Creates simple credentials record mapper.- Specified by:
createRecordMapperin classBaseDao<org.jooq.Record,SimpleCredentials> - Returns:
- new record mapper.
-
getSimpleCredentialsByUserAccountId
Gets simple credentials by user account id.- Parameters:
userId- user account id of user to receive simple credentials. Instance ofStringtype.- Returns:
- simple credentials or null if does not exist. Instance of
SimpleCredentialstype.
-
getSimpleCredentialsByUsername
Get simple credentials by username.- Parameters:
username- username of user to receive simple credentials. Instance ofStringtype.- Returns:
- simple credentials or null if does not exist. Instance of
SimpleCredentialstype.
-
getPasswordByUsername
Gets simple credentials password by username. -
createSimpleCredentials
Inserts simple credentials into database.- Parameters:
simpleCredentials- simple credentials to add. Instance ofSimpleCredentialstype.
-
updateSimpleCredentialsPassword
Updates simple credentials in database. If password is null when password updated value is ignored.- Parameters:
simpleCredentials- simple credentials to update. Instance ofSimpleCredentialstype.
-