Class HvlOauthRoleAuthorityRelManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.role.manager.relation.HvlOauthRoleAuthorityRelManagerImpl
- All Implemented Interfaces:
HvlOAuthRoleAuthorityRelManager
@Service
public class HvlOauthRoleAuthorityRelManagerImpl
extends Object
implements HvlOAuthRoleAuthorityRelManager
The class which implements
HvlOAuthRoleAuthorityRelManager
.-
Constructor Summary
ConstructorDescriptionHvlOauthRoleAuthorityRelManagerImpl
(HvlOAuthRoleAuthorityRelRepository roleAuthorityRelRepository, HvlOAuthRoleQueryGenerator roleQueryGenerator, HvlOAuthAuthorityQueryGenerator authorityQueryGenerator) Instantiates a HvlOauthRoleAuthorityRelManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptiongetAllRelationIdOfChildrenOfParentAuthorityAndRole
(Long parentAuthorityId, Long roleId) Gets all authority role relation id according to parent authority id and role idverifyRoleIfExistsAuthority
(@NotEmpty String roleUuid, @NotNull Long authorityId) Verify whether the authority is in the role.
-
Constructor Details
-
HvlOauthRoleAuthorityRelManagerImpl
public HvlOauthRoleAuthorityRelManagerImpl(HvlOAuthRoleAuthorityRelRepository roleAuthorityRelRepository, HvlOAuthRoleQueryGenerator roleQueryGenerator, HvlOAuthAuthorityQueryGenerator authorityQueryGenerator) Instantiates a HvlOauthRoleAuthorityRelManagerImpl.- Parameters:
roleAuthorityRelRepository
- the role authority rel repositoryroleQueryGenerator
- the role query generatorauthorityQueryGenerator
- the authority query generator
-
-
Method Details
-
verifyRoleIfExistsAuthority
public Boolean verifyRoleIfExistsAuthority(@NotEmpty @NotEmpty String roleUuid, @NotNull @NotNull Long authorityId) Verify whether the authority is in the role.- Specified by:
verifyRoleIfExistsAuthority
in interfaceHvlOAuthRoleAuthorityRelManager
- Parameters:
roleUuid
- the role uuidauthorityId
- the authority id- Returns:
- the boolean
-
getAllRelationIdOfChildrenOfParentAuthorityAndRole
public List<Long> getAllRelationIdOfChildrenOfParentAuthorityAndRole(Long parentAuthorityId, Long roleId) Gets all authority role relation id according to parent authority id and role id- Specified by:
getAllRelationIdOfChildrenOfParentAuthorityAndRole
in interfaceHvlOAuthRoleAuthorityRelManager
- Parameters:
parentAuthorityId
-roleId
-- Returns:
-