Interface HvlOAuthAcquiredRoleManager
- All Known Implementing Classes:
HvlOAuthAcquiredRoleManagerImpl
@Validated
public interface HvlOAuthAcquiredRoleManager
This manager provides query methods.
-
Method Summary
Modifier and TypeMethodDescriptionfindAuthorityCodeSetByProfileId
(@NotNull Long profileId) Find authority code set by profile id set.findAuthorityCodeSetByProxyId
(@NotNull Long proxyId) Find authority code set by proxy id set.default List
<HvlOAuthAcquiredRoleDataModel> findRoleDataListByUsername
(@NotBlank @Size(max=50) String username) Find role data list by username list.default List
<HvlOAuthAcquiredRoleDataModel> findRoleDataListByUsername
(@NotBlank @Size(max=50) String username, Boolean enabled) Find role data list by username list.findRoleDataListByUsernameSet
(@NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled) Find role data list by username set list.default List
<HvlOAuthAcquiredRoleGroupDataModel> findRoleGroupDataListByUsername
(@NotBlank @Size(max=50) String username) Find role group data list by username list.default List
<HvlOAuthAcquiredRoleGroupDataModel> findRoleGroupDataListByUsername
(@NotBlank @Size(max=50) String username, Boolean enabled) Find role group data list by username list.findRoleGroupDataListByUsernameSet
(@NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled) Find role group data list by username set list.findUsernameSetByProfileGroupId
(@NotNull Long profileGroupId, boolean onlyEnabled) Finds a set of username by profile group id.findUsernameSetByProxiedRoleId
(@NotNull Long roleId, boolean onlyEnabled) Find username set by proxied role id set.findUsernameSetByProxyId
(@NotNull Long proxyId, boolean onlyEnabled) Finds a set of username by proxy id.findUsernameSetByRoleGroupId
(@NotNull Long roleGroupId, boolean onlyEnabled) Finds a set of username by role group id.findUsernameSetByRoleId
(@NotNull Long roleId, boolean onlyEnabled, boolean includeProxied) Finds a set of username by role id.void
verifyProxyableRolesInProfile
(@NotNull Long profileId, @NotEmpty Set<@NotNull Long> roleIdSet, Boolean enabled) Verify proxyable role in profile by profileId and roleIdSet or else throw exception.void
verifyRoleAssignerInProfile
(@NotNull Long profileId, @NotNull Long roleAssignerId) Verify role assigner in profile by profileId and roleAssignerId or else throw exception.default void
verifyRolesInProfile
(@NotBlank @Size(min=36,max=36) String profileUuid, @NotEmpty Set<@NotNull Long> roleIdSet) Verify roles in profile.void
verifyRolesInProfile
(@NotBlank @Size(min=36,max=36) String profileUuid, @NotEmpty Set<@NotNull Long> roleIdSet, Boolean enabled) Verify role in profile by profileUuid and roleIdSet or else throw exception.default void
verifyRolesInProfile
(@NotNull Long profileId, @NotEmpty Set<@NotNull Long> roleIdSet) Verify roles in profile.void
verifyRolesInProfile
(@NotNull Long profileId, @NotEmpty Set<@NotNull Long> roleIdSet, Boolean enabled) Verify role in profile by profileId and roleIdSet or else throw exception.
-
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 idonlyEnabled
- the only enabledincludeProxied
- the include proxied- Returns:
- the username set
-
findUsernameSetByRoleGroupId
Finds a set of username by role group id.- Parameters:
roleGroupId
- the role group idonlyEnabled
- 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 idonlyEnabled
- the only enabled- Returns:
- the username set
-
findUsernameSetByProxyId
Finds a set of username by proxy id.- Parameters:
proxyId
- the proxy idonlyEnabled
- the only enabled- Returns:
- the username set
-
findUsernameSetByProxiedRoleId
Find username set by proxied role id set.- Parameters:
roleId
- the role idonlyEnabled
- 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 setenabled
- 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 usernameenabled
- 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 setenabled
- 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 usernameenabled
- 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
Find authority code set by profile id set.- Parameters:
profileId
- the profile id- Returns:
- the authority code set
-
findAuthorityCodeSetByProxyId
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 idroleIdSet
- the role id setenabled
- the enabled
-
verifyRolesInProfile
default void verifyRolesInProfile(@NotNull @NotNull Long profileId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet) Verify roles in profile.- Parameters:
profileId
- the profile idroleIdSet
- 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 uuidroleIdSet
- the role id setenabled
- 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 uuidroleIdSet
- 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 idroleAssignerId
- 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 idroleIdSet
- the role id setenabled
- the enabled
-