Class HvlAuthzProfileGroupRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.profile.controller.HvlAuthzProfileGroupRestController
- All Implemented Interfaces:
HvlAuthzProfileGroupOperationalRestService
,HvlAuthzProfileGroupRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.profile-group.controller-path:/profileGroups}")
@HvlActuatorService(name="HvlAuthzProfileGroupRestService",
groupName="HvlAuthzProfile")
public class HvlAuthzProfileGroupRestController
extends Object
implements HvlAuthzProfileGroupRestService, HvlAuthzProfileGroupOperationalRestService
The class in which service endpoints are defined for profile group operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzProfileGroupRestController
(HvlAuthzProfileGroupService profileGroupService) Instantiates a new HvlAuthzProfileGroupRestController. -
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 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 according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Deletes by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthProfileGroupModel>
Gets by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileGroupClaimNodeModel>>
queryClaimDataPage
(@NotNull @Valid HvlOAuthProfileGroupClaimQueryModel profileGroupClaimQueryModel) Returns a page of profile group claim for assigned entity relation matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthProfileGroupModel>>
queryList
(@NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Query profile group list.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileGroupModel>>
queryPage
(@NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Query profile group as page.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileGroupDataModel>>
queryReportDataPage
(@NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of profile group report matching the report query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
save
(@NotNull @Valid HvlOAuthProfileGroupCopiablePersistModel profileGroupCopiablePersistModel) Save hvl response.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
update
(@NotNull @Valid HvlOAuthProfileGroupPersistModel hvlOAuthProfileGroupPersistModel) Updates profile group.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
updateRoles
(@NotNull @Valid HvlOAuthProfileGroupRolePersistModel profileGroupRolePersistModel) Updates profile group roles.
-
Constructor Details
-
HvlAuthzProfileGroupRestController
Instantiates a new HvlAuthzProfileGroupRestController.- Parameters:
profileGroupService
- the profile group service
-
-
Method Details
-
save
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupCopiablePersistModel profileGroupCopiablePersistModel) Save hvl response.- Specified by:
save
in interfaceHvlAuthzProfileGroupOperationalRestService
- Parameters:
profileGroupCopiablePersistModel
- the profile group copiable persist model- Returns:
- the hvl response
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) @PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupPersistModel hvlOAuthProfileGroupPersistModel) Updates profile group.- Specified by:
update
in interfaceHvlAuthzProfileGroupOperationalRestService
- Parameters:
hvlOAuthProfileGroupPersistModel
- the profile group persist 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) Deletes by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzProfileGroupOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
updateRoles
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateRoles(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupRolePersistModel profileGroupRolePersistModel) Updates profile group roles.- Specified by:
updateRoles
in interfaceHvlAuthzProfileGroupOperationalRestService
- Parameters:
profileGroupRolePersistModel
- the profile group role persist model- 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 according to uuid.- Specified by:
activateByUuid
in interfaceHvlAuthzProfileGroupOperationalRestService
- 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 according to uuid.- Specified by:
deactivateByUuid
in interfaceHvlAuthzProfileGroupOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthProfileGroupModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzProfileGroupRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
queryList
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthProfileGroupModel>> queryList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Query profile group list.- Specified by:
queryList
in interfaceHvlAuthzProfileGroupRestService
- Parameters:
profileGroupQueryModel
- the profile group query model- Returns:
- the hvl response
-
queryPage
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileGroupModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Query profile group as page.- Specified by:
queryPage
in interfaceHvlAuthzProfileGroupRestService
- Parameters:
profileGroupQueryModel
- the profile 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<HvlOAuthProfileGroupClaimNodeModel>> queryClaimDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupClaimQueryModel profileGroupClaimQueryModel) Returns a page of profile group claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataPage
in interfaceHvlAuthzProfileGroupRestService
- Parameters:
profileGroupClaimQueryModel
- the profile 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<HvlOAuthProfileGroupDataModel>> queryReportDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of profile group report matching the report query criteria.- Specified by:
queryReportDataPage
in interfaceHvlAuthzProfileGroupRestService
- Parameters:
reportQueryModel
- the report query model- Returns:
- the hvl response
-