Class HvlAuthzRoleGroupRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.role.controller.HvlAuthzRoleGroupRestController
- All Implemented Interfaces:
HvlAuthzRoleGroupOperationalRestService
,HvlAuthzRoleGroupRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.role-group.controller-path:/role-groups}")
@HvlActuatorService(name="HvlAuthzRoleGroupRestService",
groupName="HvlAuthzRoleGroup")
public class HvlAuthzRoleGroupRestController
extends Object
implements HvlAuthzRoleGroupRestService, HvlAuthzRoleGroupOperationalRestService
The class in which service endpoints are defined for role group operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzRoleGroupRestController
(HvlAuthzRoleGroupService roleGroupService) Instantiates a new HvlAuthzRoleGroupRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<Void>
activateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to activate role group according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate role group according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) deleteByUuid is a method which is used to remove role group data criteria in uuid parameter.tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthRoleGroupModel>
Gets role group by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleGroupClaimDataModel>>
queryClaimDataPage
(@NotNull @Valid HvlOAuthRoleGroupClaimQueryModel roleGroupClaimQueryModel) Returns a page of role group claim for assigned entity relation matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthRoleGroupDataModel>>
queryDataList
(@NotNull @Valid HvlOAuthRoleGroupQueryModel roleGroupQueryModel) Returns a list of role group matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleGroupDataModel>>
queryDataPage
(@NotNull @Valid HvlOAuthRoleGroupQueryModel roleGroupQueryModel) Returns a page of role group matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleGroupDataModel>>
queryReportDataPage
(@NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of role group matching the report query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
save
(@NotNull @Valid HvlOAuthRoleGroupCopiablePersistModel roleGroupCopiablePersistModel) Save role group.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
update
(@NotNull @Valid HvlOAuthRoleGroupPersistModel roleGroupPersistModel) Update role group.
-
Constructor Details
-
HvlAuthzRoleGroupRestController
Instantiates a new HvlAuthzRoleGroupRestController.- Parameters:
roleGroupService
- the role group service
-
-
Method Details
-
save
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleGroupCopiablePersistModel roleGroupCopiablePersistModel) Save role group.- Specified by:
save
in interfaceHvlAuthzRoleGroupOperationalRestService
- Parameters:
roleGroupCopiablePersistModel
- the role group copiable persist model- Returns:
- the hvl response
-
update
@PreAuthorize("hasAuthority(\'keysys\')") @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleGroupPersistModel roleGroupPersistModel) Update role group.- Specified by:
update
in interfaceHvlAuthzRoleGroupOperationalRestService
- Parameters:
roleGroupPersistModel
- the role group persist container model- Returns:
- the hvl response
-
deleteByUuid
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> deleteByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) deleteByUuid is a method which is used to remove role group data criteria in uuid parameter.- Specified by:
deleteByUuid
in interfaceHvlAuthzRoleGroupOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
activateByUuid
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> activateByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Method used to activate role group according to uuid.- Specified by:
activateByUuid
in interfaceHvlAuthzRoleGroupOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
deactivateByUuid
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> deactivateByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate role group according to uuid.- Specified by:
deactivateByUuid
in interfaceHvlAuthzRoleGroupOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthRoleGroupModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets role group by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzRoleGroupRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
queryDataList
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthRoleGroupDataModel>> queryDataList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleGroupQueryModel roleGroupQueryModel) Returns a list of role group matching the query criteria.- Specified by:
queryDataList
in interfaceHvlAuthzRoleGroupRestService
- Parameters:
roleGroupQueryModel
- the role group query model- Returns:
- the hvl response
-
queryDataPage
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleGroupDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleGroupQueryModel roleGroupQueryModel) Returns a page of role group matching the query criteria.- Specified by:
queryDataPage
in interfaceHvlAuthzRoleGroupRestService
- Parameters:
roleGroupQueryModel
- the role group query model- Returns:
- the hvl response
-
queryClaimDataPage
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleGroupClaimDataModel>> queryClaimDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleGroupClaimQueryModel roleGroupClaimQueryModel) Returns a page of role group claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataPage
in interfaceHvlAuthzRoleGroupRestService
- Parameters:
roleGroupClaimQueryModel
- the role group claim query model- Returns:
- the hvl response
-
queryReportDataPage
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleGroupDataModel>> queryReportDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of role group matching the report query criteria.- Specified by:
queryReportDataPage
in interfaceHvlAuthzRoleGroupRestService
- Parameters:
reportQueryModel
- the report query model- Returns:
- the hvl response
-