Interface HvlOAuthUserManager
- All Known Implementing Classes:
HvlOAuthUserManagerImpl
@Validated
public interface HvlOAuthUserManager
This manager provides query methods.
-
Method Summary
Modifier and TypeMethodDescriptionfindIdByUsernameOrElseThrow
(@NotBlank @Size(max=50) String username) Find id by username or else throw long.getByEmail
(@NotBlank @Size(max=100) String email) Gets user by email.Gets user by id.getByIntegrationCode
(@NotBlank @Size(max=20) String integrationCode) Gets user by integration code.getByUsername
(@NotBlank @Size(max=50) String username) Gets user by username.getByUsernameAndTenant
(@NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) String tenant) Gets user by username and tenant.getByUsernameAndTenantWithoutDetail
(@NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) String tenant) Gets user by username and tenant without detail.getByUsernameWithoutDetail
(@NotBlank @Size(max=50) String username) Gets user by username without detail.Gets user by uuid.getPasswordByUsername
(@NotBlank @Size(max=50) String username) Gets password by username.getTenantByUsername
(@NotBlank @Size(max=50) String username) Gets tenant identifier by username.boolean
isExistsByIdAndPassword
(@NotNull Long id, @NotBlank @Size(max=100) String password) Exists user by id and password.boolean
isExistsByUserDetailUuid
(@NotBlank @Size(min=36,max=36) String uuid) Exists user by user detail uuid.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserClaimDataModel>
queryClaimDataPage
(@NotNull @Valid HvlOAuthUserClaimQueryModel userClaimQueryModel) Returns a page of user claim for assigned entity relation matching the query criteria.queryList
(@NotNull @Valid HvlOAuthUserQueryModel userQueryModel) Returns a list of user matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserDataModel>
queryPage
(@NotNull @Valid HvlOAuthUserQueryModel userQueryModel) Returns a page of user matching the query criteria.
-
Method Details
-
findIdByUsernameOrElseThrow
Find id by username or else throw long.- Parameters:
username
- the username- Returns:
- the long
-
getById
Gets user by id.- Parameters:
id
- the id- Returns:
- the user model
-
getByUuid
HvlOAuthUserModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets user by uuid.- Parameters:
uuid
- the uuid- Returns:
- the user model
-
getByUsername
Gets user by username.- Parameters:
username
- the username- Returns:
- the user model
-
getByEmail
Gets user by email.- Parameters:
email
- the email- Returns:
- the user model
-
getByUsernameWithoutDetail
HvlOAuthUserModel getByUsernameWithoutDetail(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username) Gets user by username without detail.- Parameters:
username
- the username- Returns:
- the user model
-
getByUsernameAndTenant
HvlOAuthUserModel getByUsernameAndTenant(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String tenant) Gets user by username and tenant.- Parameters:
username
- the usernametenant
- the tenant- Returns:
- the user
-
getByUsernameAndTenantWithoutDetail
HvlOAuthUserModel getByUsernameAndTenantWithoutDetail(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String tenant) Gets user by username and tenant without detail.- Parameters:
username
- the usernametenant
- the tenant- Returns:
- the user
-
getByIntegrationCode
HvlOAuthUserModel getByIntegrationCode(@NotBlank @Size(max=20) @NotBlank @Size(max=20) String integrationCode) Gets user by integration code.- Parameters:
integrationCode
- the integration code- Returns:
- the user
-
getPasswordByUsername
Gets password by username.- Parameters:
username
- the username- Returns:
- the password by user
-
getTenantByUsername
Gets tenant identifier by username.- Parameters:
username
- the username- Returns:
- the tenant identifier
-
isExistsByIdAndPassword
boolean isExistsByIdAndPassword(@NotNull @NotNull Long id, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String password) Exists user by id and password.- Parameters:
id
- the idpassword
- the password- Returns:
- the boolean
-
isExistsByUserDetailUuid
boolean isExistsByUserDetailUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Exists user by user detail uuid.- Parameters:
uuid
- the uuid- Returns:
- the boolean
-
queryList
List<HvlOAuthUserModel> queryList(@NotNull @Valid @NotNull @Valid HvlOAuthUserQueryModel userQueryModel) Returns a list of user matching the query criteria.- Parameters:
userQueryModel
- the user query model- Returns:
- the list of user model
-
queryPage
tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserDataModel> queryPage(@NotNull @Valid @NotNull @Valid HvlOAuthUserQueryModel userQueryModel) Returns a page of user matching the query criteria.- Parameters:
userQueryModel
- the user query model- Returns:
- the page of user model
-
queryClaimDataPage
tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserClaimDataModel> queryClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthUserClaimQueryModel userClaimQueryModel) Returns a page of user claim for assigned entity relation matching the query criteria.- Parameters:
userClaimQueryModel
- the user claim query model- Returns:
- the user claim data model page
-