Class HvlOAuthProfileGroupRoleRelOperationalManagerImpl

java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.profile.manager.relation.HvlOAuthProfileGroupRoleRelOperationalManagerImpl
All Implemented Interfaces:
HvlOAuthProfileGroupRoleRelOperationalManager

@Service public class HvlOAuthProfileGroupRoleRelOperationalManagerImpl extends Object implements HvlOAuthProfileGroupRoleRelOperationalManager
  • Constructor Details

    • HvlOAuthProfileGroupRoleRelOperationalManagerImpl

      public HvlOAuthProfileGroupRoleRelOperationalManagerImpl(HvlOAuthProfileGroupRoleRelRepository profileGroupRoleRelRepository, HvlOAuthProfileGroupRoleRelMapper profileGroupRoleRelMapper, HvlOAuthProfileGroupRoleRelQueryGenerator profileGroupRoleQueryGenerator)
      Instantiates a new HvlOAuthProfileGroupRoleOperationalManagerImpl.
      Parameters:
      profileGroupRoleRelRepository - the profile group role repository
      profileGroupRoleRelMapper - the profile group role mapper
      profileGroupRoleQueryGenerator - the profile group role query generator
  • Method Details

    • merge

      @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlTransientValidationGroup.class) public Long merge(@NotNull @NotNull Long profileGroupId, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToRemove)
      Merge.
      Specified by:
      merge in interface HvlOAuthProfileGroupRoleRelOperationalManager
      Parameters:
      profileGroupId - the profile group id
      roleIdSetToAdd - the profile id set to add
      roleIdSetToRemove - the profile id set to remove
      Returns:
      the long
    • deleteAllByProfileGroupIdAndRoleIdSet

      public void deleteAllByProfileGroupIdAndRoleIdSet(@NotNull @NotNull Long profileGroupId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet)
      Delete all by profile group id and role id set.
      Specified by:
      deleteAllByProfileGroupIdAndRoleIdSet in interface HvlOAuthProfileGroupRoleRelOperationalManager
      Parameters:
      profileGroupId - the profile group id
      roleIdSet - the role id set
    • deleteAllByProfileGroupId

      public void deleteAllByProfileGroupId(@NotNull @NotNull Long profileGroupId)
      Delete all by profile group id.
      Specified by:
      deleteAllByProfileGroupId in interface HvlOAuthProfileGroupRoleRelOperationalManager
      Parameters:
      profileGroupId - the profile group id