Class HvlOAuthProfileRoleRelManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.profile.manager.relation.HvlOAuthProfileRoleRelManagerImpl
- All Implemented Interfaces:
HvlOAuthProfileRoleRelManager
@Service
public class HvlOAuthProfileRoleRelManagerImpl
extends Object
implements HvlOAuthProfileRoleRelManager
The class which implements
HvlOAuthProfileRoleRelManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthProfileRoleRelManagerImpl
(HvlOAuthProfileRoleRelRepository profileRoleRepository, HvlOAuthProfileRepository profileRepository, HvlOAuthRoleRepository roleRepository, HvlOAuthProfileRoleRelMapper profileRoleMapper, HvlOAuthProfileMapper profileMapper, HvlOAuthRoleMapper roleMapper) Instantiates a new HvlOAuthProfileRoleRelManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptiongetProfileRolesByProfileId
(@NotNull Long profileId) get relation data between profile and direct roles belongs to profilegetProfilesByRoleId
(@NotNull Long roleId) Gets profiles by role id.getRolesByProfileId
(@NotNull Long profileId) Gets roles by profile id.
-
Constructor Details
-
HvlOAuthProfileRoleRelManagerImpl
public HvlOAuthProfileRoleRelManagerImpl(HvlOAuthProfileRoleRelRepository profileRoleRepository, HvlOAuthProfileRepository profileRepository, HvlOAuthRoleRepository roleRepository, HvlOAuthProfileRoleRelMapper profileRoleMapper, HvlOAuthProfileMapper profileMapper, HvlOAuthRoleMapper roleMapper) Instantiates a new HvlOAuthProfileRoleRelManagerImpl.- Parameters:
profileRoleRepository
- the profile role repositoryprofileRepository
- the profile repositoryroleRepository
- the role repositoryprofileRoleMapper
- the profile role mapperprofileMapper
- the profile mapperroleMapper
- the role mapper
-
-
Method Details
-
getProfileRolesByProfileId
public List<HvlOAuthProfileRoleRelModel> getProfileRolesByProfileId(@NotNull @NotNull Long profileId) get relation data between profile and direct roles belongs to profile- Specified by:
getProfileRolesByProfileId
in interfaceHvlOAuthProfileRoleRelManager
- Parameters:
profileId
- the profileId- Returns:
- profile roles by profile id
-
getProfilesByRoleId
Gets profiles by role id.- Specified by:
getProfilesByRoleId
in interfaceHvlOAuthProfileRoleRelManager
- Parameters:
roleId
- the role id- Returns:
- the profiles by role id
-
getRolesByProfileId
Gets roles by profile id.- Specified by:
getRolesByProfileId
in interfaceHvlOAuthProfileRoleRelManager
- Parameters:
profileId
- the profile id- Returns:
- the roles by profile id
-