All Known Implementing Classes:
HvlOAuthProfileManagerImpl

@Validated public interface HvlOAuthProfileManager
A service in which includes custom methods used to persist/retrieve data.
  • Method Details

    • getByUuid

      HvlOAuthProfileModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      getByUuid is a method which is used to retrieve profile record via uuid parameter
      Parameters:
      uuid - the uuid
      Returns:
      profile by uuid
    • getUsernameByProfileUuid

      String getUsernameByProfileUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String profileUuid)
      Gets username by profile uuid.
      Parameters:
      profileUuid - the profile uuid
      Returns:
      the username by profile uuid
    • getUsernameListByIdList

      List<String> getUsernameListByIdList(@NotNull @NotNull List<Long> idList)
      Gets username list by id.
      Parameters:
      idList - the id list
      Returns:
      the username list by id
    • getUuidListByIdList

      List<String> getUuidListByIdList(@NotEmpty @NotEmpty List<@NotNull Long> idList)
      Gets uuid list by id list.
      Parameters:
      idList - the id list
      Returns:
      the username list by id
    • obtainSystemUserProfileIdsFromProfileList

      List<Long> obtainSystemUserProfileIdsFromProfileList(@NotEmpty @NotEmpty List<@NotNull Long> idList)
      Obtain system user profile id list based on a given profile id list.
      Parameters:
      idList - the id list
      Returns:
      the username list by id
    • getNameListByIdList

      List<String> getNameListByIdList(@NotEmpty @Size(max=100) @NotEmpty @Size(max=100) List<@NotNull Long> idList)
      Gets name list by id list.
      Parameters:
      idList - the id list
      Returns:
      the name list
    • getDataByUuid

      HvlOAuthProfileDataModel getDataByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      getProfileDataByUuid is a method which is used to retrieve profile data record via uuid parameter
      Parameters:
      uuid - the uuid
      Returns:
      profile data by uuid
    • getProfileUserDataById

      HvlOAuthProfileUserDataModel getProfileUserDataById(@NotNull @NotNull Long id)
      Gets profile user data by id.
      Parameters:
      id - the id
      Returns:
      profile data by uuid
    • getProfileNameListByUsername

      List<HvlOAuthProfileDataModel> getProfileNameListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String userName)
      getProfileNameListByUsername is a method which is used to get all filtered profile data list via username
      Parameters:
      userName - the user name
      Returns:
      profile data list
    • getByIntegrationCode

      HvlOAuthProfileModel getByIntegrationCode(@NotBlank @Size(max=20) @NotBlank @Size(max=20) String integrationCode)
      Gets profile by integration code.
      Parameters:
      integrationCode - the integration code
      Returns:
      the profile
    • findIdByUuid

      Optional<Long> findIdByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Find profile id by uuid.
      Parameters:
      uuid - the uuid
      Returns:
      an optional id
    • findIdByUuidOrElseThrow

      Long findIdByUuidOrElseThrow(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Find id by uuid or else throw long.
      Parameters:
      uuid - the uuid
      Returns:
      the long
    • findUserIdByIdOrElseThrow

      Long findUserIdByIdOrElseThrow(@NotNull @NotNull Long profileId)
      Find user id by profile id or else throw long.
      Parameters:
      profileId - the profile id
      Returns:
      the long
    • isExists

      Boolean isExists(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      isExists is a method which is used to checks the existence of the profile via id
      Parameters:
      uuid - the profile uuid
      Returns:
      boolean boolean
    • queryList

      List<HvlOAuthProfileModel> queryList(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      queryList is a method which is used to get all filtered profile list via querymodel
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      profile list
    • queryPage

      tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileModel> queryPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      queryPage is a method which is used to get all profile pagination list filtered via query model
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      profile page
    • queryDataList

      List<HvlOAuthProfileDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      queryProfileDataList is a method which is used to get all filtered profile data list via querymodel
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      profile data list
    • queryProfileUserDataPage

      tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserDataModel> queryProfileUserDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      queryProfileUserDataPage is a method which is used to get all profile data pagination list filtered via query model
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      profile data page
    • queryProfileUserClaimDataPage

      tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserClaimDataModel> queryProfileUserClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileClaimQueryModel profileClaimQueryModel)
      Returns a page of role group role matching the query criteria.
      Parameters:
      profileClaimQueryModel - the available profile query model
      Returns:
      profile user claim data model page
    • getProfileIdListByUserId

      List<Long> getProfileIdListByUserId(@NotNull @NotNull Long userId)
      Gets profile id list by user id.
      Parameters:
      userId - the user id
      Returns:
      the profile id list by user id
    • verifyProfileInRoleAssigner

      boolean verifyProfileInRoleAssigner(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      Verify profile in role assigner boolean.
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      the boolean