Interface HvlOAuthRoleAssignerManager
- All Known Implementing Classes:
HvlOAuthRoleAssignerManagerImpl
@Validated
public interface HvlOAuthRoleAssignerManager
This manager provides query methods.
-
Method Summary
Modifier and TypeMethodDescriptionfindDataListByUsername
(@NotBlank String username, @NotNull Long profileId) Find data list by username list.findIdByUuidOrElseThrow
(@NotBlank @Size(min=36,max=36) String uuid) Finds role assigner id by uuid.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel>
queryDataPage
(@NotNull @Valid HvlOAuthRoleAssignerQueryModel roleAssignerQueryModel) queryProfileUserDataPage is a method which is used to get all profile data pagination list filtered via query modelverifyAuthorityByIdThenReturnId
(@NotNull Long roleAssignerId) Verify role id as role assigner.void
verifyProfileRoleAssignByRoleAssigner
(@NotNull Long roleAssignerId, @NotNull Long sourceProfileId, @NotBlank @Size(min=36,max=36) String targetProfileUuid, @NotEmpty @Size(max=100) Set<@NotNull Long> roleIdSet) Verify profile role assign by role assigner boolean.
-
Method Details
-
findIdByUuidOrElseThrow
Long findIdByUuidOrElseThrow(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Finds role assigner id by uuid.- Parameters:
uuid
- the uuid- Returns:
- an optional id
-
findDataListByUsername
List<HvlOAuthRoleDataModel> findDataListByUsername(@NotBlank @NotBlank String username, @NotNull @NotNull Long profileId) Find data list by username list.- Parameters:
username
- the usernameprofileId
- the profile id- Returns:
- the list
-
verifyProfileRoleAssignByRoleAssigner
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.- Parameters:
roleAssignerId
- the role assigner idsourceProfileId
- the source profile idtargetProfileUuid
- the target profile uuidroleIdSet
- the role id set
-
verifyAuthorityByIdThenReturnId
Verify role id as role assigner.- Parameters:
roleAssignerId
- the role assigner id- Returns:
- the id
-
queryDataPage
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- Parameters:
roleAssignerQueryModel
- the role assigner query model- Returns:
- profile data page
-