Class HvlAuthzAuthorityServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.service.HvlAuthzBaseService
tr.com.havelsan.javarch.oauth.authz.starter.module.authority.logic.HvlAuthzAuthorityServiceImpl
- All Implemented Interfaces:
HvlAuthzAuthorityService
@Service
public class HvlAuthzAuthorityServiceImpl
extends HvlAuthzBaseService
implements HvlAuthzAuthorityService
The class which implements
HvlAuthzAuthorityService
-
Constructor Summary
ConstructorDescriptionHvlAuthzAuthorityServiceImpl
(HvlOAuthAuthorityManager authorityManager, HvlOAuthAuthorityOperationalManager authorityOperationalManager, HvlOAuthAuthorityTagRelOperationalManager authorityTagRelOperationalManager, HvlOAuthAuthorityProfileGroupRelOperationalManager authAuthorityProfileGroupRelOperationalManager, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlAuthzSessionService authzSessionService, HvlAuthzBundleService bundleService, HvlAuthzBundleService messageBundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher) Instantiates a new HvlAuthzAuthorityService. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete authority by uuid.Gets authority by uuid.queryAuthorityTagList
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a list of authority tag matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthAuthorityTagDataModel> queryAuthorityTagPage
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority tag matching the query criteria.queryClaimDataList
(@NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a list of authority claim for assigned entity relation matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthAuthorityClaimDataModel> queryClaimDataPage
(@NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a page of authority claim for assigned entity relation matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthAuthorityDataModel> queryDataPage
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthAuthorityDataModel> queryModuleDataPage
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria and module name.save
(@NotNull @Valid HvlOAuthAuthorityModel authorityModel) Saves authority model.void
update
(@NotNull @Valid HvlOAuthAuthorityModel authorityModel) Update.void
updateProfileGroups
(@NotNull @Valid HvlOAuthAuthorityProfileGroupPersistModel authAuthorityProfileGroupPersistModel) Update profile groups.void
updateTags
(@NotNull @Valid HvlOAuthAuthorityTagPersistModel authorityTagPersistModel) Update tags to authority.Methods inherited from class tr.com.havelsan.javarch.oauth.authz.starter.service.HvlAuthzBaseService
sendLog, sendLog, sendLogAndOperationEvent, sendLogAndOperationEvent, sendOperationEvent
-
Constructor Details
-
HvlAuthzAuthorityServiceImpl
public HvlAuthzAuthorityServiceImpl(HvlOAuthAuthorityManager authorityManager, HvlOAuthAuthorityOperationalManager authorityOperationalManager, HvlOAuthAuthorityTagRelOperationalManager authorityTagRelOperationalManager, HvlOAuthAuthorityProfileGroupRelOperationalManager authAuthorityProfileGroupRelOperationalManager, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlAuthzSessionService authzSessionService, HvlAuthzBundleService bundleService, HvlAuthzBundleService messageBundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher) Instantiates a new HvlAuthzAuthorityService.- Parameters:
authorityManager
- the authority managerauthorityOperationalManager
- the authority operational managerauthorityTagRelOperationalManager
- the authority tag rel operational managerauthAuthorityProfileGroupRelOperationalManager
- the auth authority profile group rel operational managerloggerProducerProvider
- the logger producer providerauthzSessionService
- the authz session servicebundleService
- the bundle servicemessageBundleService
- the message bundle serviceinstanceInternalEventPublisher
- the instance internal event publisher
-
-
Method Details
-
save
public HvlOAuthAuthorityModel save(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityModel authorityModel) Saves authority model.- Specified by:
save
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityModel
- the authority model- Returns:
- profile detail model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public void update(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityModel authorityModel) Update.- Specified by:
update
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityModel
- the authority model
-
deleteByUuid
Delete authority by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzAuthorityService
- Parameters:
uuid
- the uuid
-
updateTags
public void updateTags(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityTagPersistModel authorityTagPersistModel) Update tags to authority.- Specified by:
updateTags
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityTagPersistModel
- the authority tag model
-
updateProfileGroups
public void updateProfileGroups(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityProfileGroupPersistModel authAuthorityProfileGroupPersistModel) Update profile groups.- Specified by:
updateProfileGroups
in interfaceHvlAuthzAuthorityService
- Parameters:
authAuthorityProfileGroupPersistModel
- the auth authority profile group persist model
-
getByUuid
public HvlOAuthAuthorityModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets authority by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzAuthorityService
- Parameters:
uuid
- the uuid- Returns:
- the authority model
-
queryClaimDataList
public List<HvlOAuthAuthorityClaimDataModel> queryClaimDataList(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a list of authority claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataList
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityClaimQueryModel
- the authority claim query model- Returns:
- the page of authority claim projection model
-
queryClaimDataPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityClaimDataModel> queryClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a page of authority claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataPage
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityClaimQueryModel
- the authority claim query model- Returns:
- the page of authority claim projection model
-
queryDataPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria.- Specified by:
queryDataPage
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityQueryModel
- the authority query model- Returns:
- the page of authority projection model
-
queryModuleDataPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityDataModel> queryModuleDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria and module name.- Specified by:
queryModuleDataPage
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityQueryModel
- the authority query model- Returns:
- the page of authority projection model
-
queryAuthorityTagPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityTagDataModel> queryAuthorityTagPage(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority tag matching the query criteria.- Specified by:
queryAuthorityTagPage
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityQueryModel
- the authority query model- Returns:
- the page of authority tag relation projection model
-
queryAuthorityTagList
public List<HvlOAuthAuthorityTagDataModel> queryAuthorityTagList(@NotNull @Valid @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a list of authority tag matching the query criteria.- Specified by:
queryAuthorityTagList
in interfaceHvlAuthzAuthorityService
- Parameters:
authorityQueryModel
- the authority query model- Returns:
- the list of authority tag relation projection model
-