Class HvlOAuthRoleAssignerManagerImpl

java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.role.manager.HvlOAuthRoleAssignerManagerImpl
All Implemented Interfaces:
HvlOAuthRoleAssignerManager

@Service public class HvlOAuthRoleAssignerManagerImpl extends Object implements HvlOAuthRoleAssignerManager
The class which implements HvlOAuthRoleAssignerManager.
  • Constructor Details

  • Method Details

    • findIdByUuidOrElseThrow

      public Long findIdByUuidOrElseThrow(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Finds role assigner id by uuid.
      Specified by:
      findIdByUuidOrElseThrow in interface HvlOAuthRoleAssignerManager
      Parameters:
      uuid - the uuid
      Returns:
      an optional id
    • findDataListByUsername

      public List<HvlOAuthRoleDataModel> findDataListByUsername(@NotBlank @NotBlank String username, @NotNull @NotNull Long profileId)
      Find data list by username list.
      Specified by:
      findDataListByUsername in interface HvlOAuthRoleAssignerManager
      Parameters:
      username - the username
      profileId - the profile id
      Returns:
      the list
    • verifyProfileRoleAssignByRoleAssigner

      public void verifyProfileRoleAssignByRoleAssigner(@NotNull @NotNull Long roleAssignerId, @NotNull @NotNull Long sourceProfileId, @NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String targetProfileUuid, @NotEmpty @Size(max=100) @NotEmpty @Size(max=100) Set<@NotNull Long> roleIdSet)
      Verify profile role assign by role assigner boolean.
      Specified by:
      verifyProfileRoleAssignByRoleAssigner in interface HvlOAuthRoleAssignerManager
      Parameters:
      roleAssignerId - the role assigner id
      sourceProfileId - the source profile id
      targetProfileUuid - the target profile uuid
      roleIdSet - the role id set
    • verifyAuthorityByIdThenReturnId

      public Long verifyAuthorityByIdThenReturnId(@NotNull @NotNull Long roleAssignerId)
      Verify role id as role assigner.
      Specified by:
      verifyAuthorityByIdThenReturnId in interface HvlOAuthRoleAssignerManager
      Parameters:
      roleAssignerId - the role assigner id
      Returns:
      the id
    • queryDataPage

      public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleAssignerQueryModel roleAssignerQueryModel)
      queryProfileUserDataPage is a method which is used to get all profile data pagination list filtered via query model
      Specified by:
      queryDataPage in interface HvlOAuthRoleAssignerManager
      Parameters:
      roleAssignerQueryModel - the role assigner query model
      Returns:
      profile data page
    • prepareRoleDataProjection

      public static com.querydsl.core.types.QBean<HvlOAuthRoleDataModel> prepareRoleDataProjection(HvlOAuthRoleQuery roleQuery)
      Prepare role data projection q bean.
      Parameters:
      roleQuery - the role query
      Returns:
      the q bean