All Known Implementing Classes:
HvlOAuthRoleManagerImpl

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

    • findIdByUuidOrElseThrow

      Long findIdByUuidOrElseThrow(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Finds role id by uuid.
      Parameters:
      uuid - the uuid
      Returns:
      an optional id
    • getById

      HvlOAuthRoleModel getById(@NotNull @NotNull Long id)
      Gets role by id.
      Parameters:
      id - the id
      Returns:
      the role model
    • getByUuid

      HvlOAuthRoleModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Gets role by uuid.
      Parameters:
      uuid - the uuid
      Returns:
      the role model
    • getDeletedByUuid

      HvlOAuthRoleModel getDeletedByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Gets by uuid for delete event.
      Parameters:
      uuid - the uuid
      Returns:
      the by uuid for delete event
    • getNameListByIdSet

      List<String> getNameListByIdSet(@NotEmpty @Size(max=100) @NotEmpty @Size(max=100) Set<@NotNull Long> idSet)
      Gets name list by id set.
      Parameters:
      idSet - the id set
      Returns:
      the name list
    • verifyEditableByIdThenReturnId

      Long verifyEditableByIdThenReturnId(@NotNull @NotNull Long id)
      Verify editable role by uuid or else throw exception.
      Parameters:
      id - the id
      Returns:
      the id
    • verifyEditableByUuidThenReturnId

      Long verifyEditableByUuidThenReturnId(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Verify editable role by uuid or else throw exception.
      Parameters:
      uuid - the uuid
      Returns:
      the id
    • queryDataList

      List<HvlOAuthRoleDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel, @NotNull @NotNull LongSupplier userProfileIdSupplier)
      Returns a list of role matching the query criteria.
      Parameters:
      roleQueryModel - the role query model
      userProfileIdSupplier - the user profile id supplier
      Returns:
      the role data model list
    • queryDataList

      default List<HvlOAuthRoleDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel)
      Query data list list.
      Parameters:
      roleQueryModel - the role query model
      Returns:
      the list
    • queryDataPage

      tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel, @NotNull @NotNull LongSupplier userProfileIdSupplier)
      Returns a page of role matching the query criteria.
      Parameters:
      roleQueryModel - the role query model
      userProfileIdSupplier - the user profile id supplier
      Returns:
      the role data model page
    • queryClaimDataPage

      tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleClaimDataModel> queryClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleClaimQueryModel roleClaimQueryModel, @NotNull @NotNull LongSupplier userProfileIdSupplier)
      Returns a page of role claim for assigned entity relation matching the query criteria.
      Parameters:
      roleClaimQueryModel - the role claim query model
      userProfileIdSupplier - the user profile id supplier
      Returns:
      the role claim data model page
    • queryReportDataPage

      @Validated(PredicatingOperation.class) tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryReportDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel)
      Returns a page of role report matching the report query criteria.
      Parameters:
      reportQueryModel - the report query model
      Returns:
      the hvl page