All Known Implementing Classes:
HvlOAuthUserManagerImpl

@Validated public interface HvlOAuthUserManager
This manager provides query methods.
  • Method Details

    • findIdByUsernameOrElseThrow

      Long findIdByUsernameOrElseThrow(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username)
      Find id by username or else throw long.
      Parameters:
      username - the username
      Returns:
      the long
    • getById

      HvlOAuthUserModel getById(@NotNull @NotNull Long id)
      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

      HvlOAuthUserModel getByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username)
      Gets user by username.
      Parameters:
      username - the username
      Returns:
      the user model
    • getByEmail

      HvlOAuthUserModel getByEmail(@NotBlank @Size(max=100) @NotBlank @Size(max=100) String email)
      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 username
      tenant - 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 username
      tenant - 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

      String getPasswordByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username)
      Gets password by username.
      Parameters:
      username - the username
      Returns:
      the password by user
    • getTenantByUsername

      String getTenantByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username)
      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 id
      password - 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