Class HvlAuthzRoleServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.role.logic.HvlAuthzRoleServiceImpl
- All Implemented Interfaces:
HvlAuthzRoleService
The class which implements
HvlAuthzRoleService
.-
Constructor Summary
ConstructorDescriptionHvlAuthzRoleServiceImpl
(HvlOAuthRoleManager roleManager, HvlOAuthTrustedProxyManager trustedProxyManager, HvlOAuthRoleOperationalManager roleOperationalManager, HvlAuthzSessionService sessionService, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlAuthzBundleService messageBundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher) Instantiates a newHvlAuthzRoleService
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to activate role according to uuid.void
deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate role according to uuid.void
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete role by uuid.Gets role by uuid.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel>
queryAssignerDataPage
(@NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel) Query assigner data page hvl page.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleClaimDataModel>
queryClaimDataPage
(@NotNull @Valid HvlOAuthRoleClaimQueryModel roleClaimQueryModel) Returns a page of role claim for assigned entity relation matching the query criteria.queryDataList
(@NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel) Returns a list of role matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel>
queryDataPage
(@NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel) Returns a page of role matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel>
queryReportDataPage
(@NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of role report matching the report query criteria.void
save
(@NotNull @Valid HvlOAuthRoleCopiablePersistModel roleCopiablePersistModel) Save role.void
update
(@NotNull @Valid HvlOAuthRolePersistModel rolePersistModel) Update.
-
Constructor Details
-
HvlAuthzRoleServiceImpl
public HvlAuthzRoleServiceImpl(HvlOAuthRoleManager roleManager, HvlOAuthTrustedProxyManager trustedProxyManager, HvlOAuthRoleOperationalManager roleOperationalManager, HvlAuthzSessionService sessionService, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlAuthzBundleService messageBundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher) Instantiates a newHvlAuthzRoleService
.- Parameters:
roleManager
- the role managertrustedProxyManager
- the proxy managerroleOperationalManager
- the role operational managersessionService
- the session serviceloggerProducerProvider
- the logger producer providermessageBundleService
- the message bundle serviceinstanceInternalEventPublisher
- the instance internal event publisher
-
-
Method Details
-
save
public void save(@NotNull @Valid @NotNull @Valid HvlOAuthRoleCopiablePersistModel roleCopiablePersistModel) Save role.- Specified by:
save
in interfaceHvlAuthzRoleService
- Parameters:
roleCopiablePersistModel
- the role copiable persist model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public void update(@NotNull @Valid @NotNull @Valid HvlOAuthRolePersistModel rolePersistModel) Update.- Specified by:
update
in interfaceHvlAuthzRoleService
- Parameters:
rolePersistModel
- the role persist model
-
deleteByUuid
Delete role by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzRoleService
- Parameters:
uuid
- the uuid
-
activateByUuid
public void activateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Method used to activate role according to uuid.- Specified by:
activateByUuid
in interfaceHvlAuthzRoleService
- Parameters:
uuid
- the uuid
-
deactivateByUuid
public void deactivateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate role according to uuid.- Specified by:
deactivateByUuid
in interfaceHvlAuthzRoleService
- Parameters:
uuid
- the uuid
-
getByUuid
@Transactional(readOnly=true) public HvlOAuthRoleModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets role by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzRoleService
- Parameters:
uuid
- the uuid- Returns:
- the role model
-
queryDataList
@Transactional(readOnly=true) public List<HvlOAuthRoleDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel) Returns a list of role matching the query criteria.- Specified by:
queryDataList
in interfaceHvlAuthzRoleService
- Parameters:
roleQueryModel
- the role query model- Returns:
- the list of role projection model
-
queryDataPage
@Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel) Returns a page of role matching the query criteria.- Specified by:
queryDataPage
in interfaceHvlAuthzRoleService
- Parameters:
roleQueryModel
- the role query model- Returns:
- the page of role projection model
-
queryReportDataPage
@Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryReportDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of role report matching the report query criteria.- Specified by:
queryReportDataPage
in interfaceHvlAuthzRoleService
- Parameters:
reportQueryModel
- the report query model- Returns:
- the page of role projection model
-
queryAssignerDataPage
@Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryAssignerDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel) Query assigner data page hvl page.- Specified by:
queryAssignerDataPage
in interfaceHvlAuthzRoleService
- Parameters:
roleQueryModel
- the role query model- Returns:
- the hvl page
-
queryClaimDataPage
@Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleClaimDataModel> queryClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleClaimQueryModel roleClaimQueryModel) Returns a page of role claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataPage
in interfaceHvlAuthzRoleService
- Parameters:
roleClaimQueryModel
- the role claim query model- Returns:
- the page of role claim projection model
-