Interface HvlOAuthRoleOperationalManager
- All Known Implementing Classes:
HvlOAuthRoleOperationalManagerImpl
@Validated
public interface HvlOAuthRoleOperationalManager
This manager provides operational methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to activate role according to uuid.void
deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) Method used to deactivate role according to uuid.void
deleteById
(@NotNull Long id, Consumer<Set<String>> affectedUsersAction) Delete role by id.void
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) Delete role by id.save
(@NotNull @Valid HvlOAuthRoleCopiablePersistModel roleCopiablePersistModel) Save role.update
(@NotNull @Valid HvlOAuthRolePersistModel rolePersistModel, Consumer<Set<String>> affectedUsersAction) Update hvl o auth role model.
-
Method Details
-
save
HvlOAuthRoleModel save(@NotNull @Valid @NotNull @Valid HvlOAuthRoleCopiablePersistModel roleCopiablePersistModel) Save role.- Parameters:
roleCopiablePersistModel
- the role copiable persist model- Returns:
- the role model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) HvlOAuthRoleModel update(@NotNull @Valid @NotNull @Valid HvlOAuthRolePersistModel rolePersistModel, Consumer<Set<String>> affectedUsersAction) Update hvl o auth role model.- Parameters:
rolePersistModel
- the role persist modelaffectedUsersAction
- the affected users action- Returns:
- the hvl o auth role model
-
deleteById
Delete role by id.- Parameters:
id
- the idaffectedUsersAction
- the affected users action
-
deleteByUuid
void deleteByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) Delete role by id.- Parameters:
uuid
- the uuidaffectedUsersAction
- the affected users action
-
activateByUuid
Method used to activate role according to uuid.- Parameters:
uuid
- the uuid
-
deactivateByUuid
void deactivateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) Method used to deactivate role according to uuid.- Parameters:
uuid
- the uuidaffectedUsersAction
- the affected users action
-