Class HvlOauthRoleAuthorityRelManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.role.manager.relation.HvlOauthRoleAuthorityRelManagerImpl
- All Implemented Interfaces:
HvlOAuthRoleAuthorityRelManager
@Service
@Transactional(readOnly=true)
public class HvlOauthRoleAuthorityRelManagerImpl
extends Object
implements HvlOAuthRoleAuthorityRelManager
The class which implements
HvlOAuthRoleAuthorityRelManager
.-
Constructor Summary
ConstructorDescriptionHvlOauthRoleAuthorityRelManagerImpl
(HvlOAuthRoleAuthorityRelRepository roleAuthorityRelRepository, HvlOAuthRoleQueryGenerator roleQueryGenerator) Instantiates a HvlOauthRoleAuthorityRelManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptionverifyRoleIfExistsAuthority
(@NotEmpty String roleUuid, @NotNull Long authorityId) Verify whether the authority is in the role.
-
Constructor Details
-
HvlOauthRoleAuthorityRelManagerImpl
public HvlOauthRoleAuthorityRelManagerImpl(HvlOAuthRoleAuthorityRelRepository roleAuthorityRelRepository, HvlOAuthRoleQueryGenerator roleQueryGenerator) Instantiates a HvlOauthRoleAuthorityRelManagerImpl.- Parameters:
roleAuthorityRelRepository
- the role authority rel repositoryroleQueryGenerator
- the role 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
-