Class HvlAuthzRoleAssignerRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.role.controller.HvlAuthzRoleAssignerRestController
- All Implemented Interfaces:
HvlAuthzRoleAssignerOperationalRestService
,HvlAuthzRoleAssignerRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.role-assigner.controller-path:/role-assigners}")
@HvlActuatorService(name="HvlAuthzRoleAssignerRestService",
groupName="HvlAuthzRoleAssigner")
public class HvlAuthzRoleAssignerRestController
extends Object
implements HvlAuthzRoleAssignerOperationalRestService, HvlAuthzRoleAssignerRestService
The class in which service endpoints are defined for role operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzRoleAssignerRestController
(HvlAuthzRoleAssignerService roleAssignerService) -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlOAuthRoleDataModel>> Gets data list.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel>> queryDataPage
(@NotNull @Valid HvlOAuthRoleAssignerQueryModel roleAssignerQueryModel) Returns a page of role matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> updateRoleAssignerRelations
(@NotNull @Valid HvlOAuthRoleAssignerPersistModel roleAssignerPersistModel) Update role assigner relations.
-
Constructor Details
-
HvlAuthzRoleAssignerRestController
-
-
Method Details
-
updateRoleAssignerRelations
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateRoleAssignerRelations(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleAssignerPersistModel roleAssignerPersistModel) Update role assigner relations.- Specified by:
updateRoleAssignerRelations
in interfaceHvlAuthzRoleAssignerOperationalRestService
- Parameters:
roleAssignerPersistModel
- the role assigner persist model- Returns:
- the hvl response
-
getDataList
@PreAuthorize("hasAuthority(\'keysis:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthRoleDataModel>> getDataList()Gets data list.- Specified by:
getDataList
in interfaceHvlAuthzRoleAssignerRestService
- Returns:
- the data list
-
queryDataPage
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleAssignerQueryModel roleAssignerQueryModel) Returns a page of role matching the query criteria.- Specified by:
queryDataPage
in interfaceHvlAuthzRoleAssignerRestService
- Parameters:
roleAssignerQueryModel
- the role assigner query model- Returns:
- the hvl response
-