All Known Implementing Classes:
HvlOAuthAcquiredRoleManagerImpl

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

    • findUsernameSetByRoleId

      Set<String> findUsernameSetByRoleId(@NotNull @NotNull Long roleId, boolean onlyEnabled, boolean includeProxied)
      Finds a set of username by role id.
      Parameters:
      roleId - the role id
      onlyEnabled - the only enabled
      includeProxied - the include proxied
      Returns:
      the username set
    • findUsernameSetByRoleGroupId

      Set<String> findUsernameSetByRoleGroupId(@NotNull @NotNull Long roleGroupId, boolean onlyEnabled)
      Finds a set of username by role group id.
      Parameters:
      roleGroupId - the role group id
      onlyEnabled - the only enabled
      Returns:
      the username set
    • findUsernameSetByProfileGroupId

      Set<String> findUsernameSetByProfileGroupId(@NotNull @NotNull Long profileGroupId, boolean onlyEnabled)
      Finds a set of username by profile group id.
      Parameters:
      profileGroupId - the profile group id
      onlyEnabled - the only enabled
      Returns:
      the username set
    • findUsernameSetByProxyId

      Set<String> findUsernameSetByProxyId(@NotNull @NotNull Long proxyId, boolean onlyEnabled)
      Finds a set of username by proxy id.
      Parameters:
      proxyId - the proxy id
      onlyEnabled - the only enabled
      Returns:
      the username set
    • findUsernameSetByProxiedRoleId

      Set<String> findUsernameSetByProxiedRoleId(@NotNull @NotNull Long roleId, boolean onlyEnabled)
      Find username set by proxied role id set.
      Parameters:
      roleId - the role id
      onlyEnabled - the only enabled
      Returns:
      the username set
    • findRoleDataListByUsernameSet

      List<HvlOAuthAcquiredRoleDataModel> findRoleDataListByUsernameSet(@NotEmpty @NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled)
      Find role data list by username set list.
      Parameters:
      usernameSet - the username set
      enabled - the enabled
      Returns:
      the list
    • findRoleDataListByUsername

      default List<HvlOAuthAcquiredRoleDataModel> findRoleDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, Boolean enabled)
      Find role data list by username list.
      Parameters:
      username - the username
      enabled - the enabled
      Returns:
      the list
    • findRoleDataListByUsername

      default List<HvlOAuthAcquiredRoleDataModel> findRoleDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username)
      Find role data list by username list.
      Parameters:
      username - the username
      Returns:
      the list
    • findRoleGroupDataListByUsernameSet

      List<HvlOAuthAcquiredRoleGroupDataModel> findRoleGroupDataListByUsernameSet(@NotEmpty @NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled)
      Find role group data list by username set list.
      Parameters:
      usernameSet - the username set
      enabled - the enabled
      Returns:
      the list
    • findRoleGroupDataListByUsername

      default List<HvlOAuthAcquiredRoleGroupDataModel> findRoleGroupDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, Boolean enabled)
      Find role group data list by username list.
      Parameters:
      username - the username
      enabled - the enabled
      Returns:
      the list
    • findRoleGroupDataListByUsername

      default List<HvlOAuthAcquiredRoleGroupDataModel> findRoleGroupDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username)
      Find role group data list by username list.
      Parameters:
      username - the username
      Returns:
      the list
    • findAuthorityCodeSetByProfileId

      Set<String> findAuthorityCodeSetByProfileId(@NotNull @NotNull Long profileId)
      Find authority code set by profile id set.
      Parameters:
      profileId - the profile id
      Returns:
      the authority code set
    • findAuthorityCodeSetByProxyId

      Set<String> findAuthorityCodeSetByProxyId(@NotNull @NotNull Long proxyId)
      Find authority code set by proxy id set.
      Parameters:
      proxyId - the proxy id
      Returns:
      the authority code set
    • verifyRolesInProfile

      void verifyRolesInProfile(@NotNull @NotNull Long profileId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet, Boolean enabled)
      Verify role in profile by profileId and roleIdSet or else throw exception.
      Parameters:
      profileId - the profile id
      roleIdSet - the role id set
      enabled - the enabled
    • verifyRolesInProfile

      default void verifyRolesInProfile(@NotNull @NotNull Long profileId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet)
      Verify roles in profile.
      Parameters:
      profileId - the profile id
      roleIdSet - the role id set
    • verifyRolesInProfile

      void verifyRolesInProfile(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String profileUuid, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet, Boolean enabled)
      Verify role in profile by profileUuid and roleIdSet or else throw exception.
      Parameters:
      profileUuid - the profile uuid
      roleIdSet - the role id set
      enabled - the enabled
    • verifyRolesInProfile

      default void verifyRolesInProfile(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String profileUuid, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet)
      Verify roles in profile.
      Parameters:
      profileUuid - the profile uuid
      roleIdSet - the role id set
    • verifyRoleAssignerInProfile

      void verifyRoleAssignerInProfile(@NotNull @NotNull Long profileId, @NotNull @NotNull Long roleAssignerId)
      Verify role assigner in profile by profileId and roleAssignerId or else throw exception.
      Parameters:
      profileId - the profile id
      roleAssignerId - the role assigner id
    • verifyProxyableRolesInProfile

      void verifyProxyableRolesInProfile(@NotNull @NotNull Long profileId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet, Boolean enabled)
      Verify proxyable role in profile by profileId and roleIdSet or else throw exception.
      Parameters:
      profileId - the profile id
      roleIdSet - the role id set
      enabled - the enabled