Class HvlOAuthRoleOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.role.manager.HvlOAuthRoleOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthRoleOperationalManager
@Service
public class HvlOAuthRoleOperationalManagerImpl
extends Object
implements HvlOAuthRoleOperationalManager
The class which implements
HvlOAuthRoleManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthRoleOperationalManagerImpl
(HvlOAuthRoleRepository roleRepository, HvlOAuthRoleManager roleManager, HvlOAuthRoleAuthorityRelOperationalManager roleAuthorityRelOperationalManager, HvlOAuthRoleAssignerRoleGroupRelOperationalManager roleAssignerRoleGroupRelOperationalManager, HvlOAuthRoleAssignerProfileGroupRelOperationalManager roleAssignerProfileGroupRelOperationalManager, HvlOAuthPredefinedProxyRoleRelOperationalManager predefinedProxyRoleRelOperationalManager, HvlOAuthTrustedProxyRoleRelOperationalManager trustedProxyRoleRelOperationalManager, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthAcquiredRoleManager acquiredRoleManager, HvlOAuthRoleAssignerProfileDetailRelOperationalManager roleAssignerProfileDetailRelOperationalManager, HvlOAuthRoleMapper roleMapper) Instantiates a new manager implementation. -
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.
-
Constructor Details
-
HvlOAuthRoleOperationalManagerImpl
public HvlOAuthRoleOperationalManagerImpl(HvlOAuthRoleRepository roleRepository, HvlOAuthRoleManager roleManager, HvlOAuthRoleAuthorityRelOperationalManager roleAuthorityRelOperationalManager, HvlOAuthRoleAssignerRoleGroupRelOperationalManager roleAssignerRoleGroupRelOperationalManager, HvlOAuthRoleAssignerProfileGroupRelOperationalManager roleAssignerProfileGroupRelOperationalManager, HvlOAuthPredefinedProxyRoleRelOperationalManager predefinedProxyRoleRelOperationalManager, HvlOAuthTrustedProxyRoleRelOperationalManager trustedProxyRoleRelOperationalManager, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthAcquiredRoleManager acquiredRoleManager, HvlOAuthRoleAssignerProfileDetailRelOperationalManager roleAssignerProfileDetailRelOperationalManager, HvlOAuthRoleMapper roleMapper) Instantiates a new manager implementation.- Parameters:
roleRepository
- the role repositoryroleManager
- the role managerroleAuthorityRelOperationalManager
- the role authority rel operational managerroleAssignerRoleGroupRelOperationalManager
- the role assigner role group rel operational managerroleAssignerProfileGroupRelOperationalManager
- the role assigner profile group rel operational managerpredefinedProxyRoleRelOperationalManager
- the predefined proxy role rel operational managertrustedProxyRoleRelOperationalManager
- the trusted proxy role rel operational managerproxyRoleRelOperationalManager
- the proxy role rel operational manageracquiredRoleManager
- the acquired role managerroleAssignerProfileDetailRelOperationalManager
- the role assigner profile detail rel operational managerroleMapper
- the role mapper
-
-
Method Details
-
save
public HvlOAuthRoleModel save(@NotNull @Valid @NotNull @Valid HvlOAuthRoleCopiablePersistModel roleCopiablePersistModel) Save role.- Specified by:
save
in interfaceHvlOAuthRoleOperationalManager
- Parameters:
roleCopiablePersistModel
- the role copiable persist model- Returns:
- the role model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public HvlOAuthRoleModel update(@NotNull @Valid @NotNull @Valid HvlOAuthRolePersistModel rolePersistModel, Consumer<Set<String>> affectedUsersAction) Update hvl o auth role model.- Specified by:
update
in interfaceHvlOAuthRoleOperationalManager
- Parameters:
rolePersistModel
- the role persist modelaffectedUsersAction
- the affected users action- Returns:
- the hvl o auth role model
-
deleteById
Delete role by id.- Specified by:
deleteById
in interfaceHvlOAuthRoleOperationalManager
- Parameters:
id
- the idaffectedUsersAction
- the affected users action
-
deleteByUuid
public void deleteByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) Delete role by id.- Specified by:
deleteByUuid
in interfaceHvlOAuthRoleOperationalManager
- Parameters:
uuid
- the uuidaffectedUsersAction
- the affected users action
-
activateByUuid
public void activateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Method used to activate role according to uuid.- Specified by:
activateByUuid
in interfaceHvlOAuthRoleOperationalManager
- Parameters:
uuid
- the uuid
-
deactivateByUuid
public 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.- Specified by:
deactivateByUuid
in interfaceHvlOAuthRoleOperationalManager
- Parameters:
uuid
- the uuidaffectedUsersAction
- the affected users action
-