Class HvlAuthzPredefinedRoleRestController

java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.role.controller.HvlAuthzPredefinedRoleRestController
All Implemented Interfaces:
HvlAuthzPredefinedRoleOperationalRestService, HvlAuthzPredefinedRoleRestService

@RestController @RequestMapping("${hvl.oauth.authz.service.predefined-role.controller-path:/predefined-roles}") @HvlActuatorService(name="HvlAuthzPredefinedRoleRestService", groupName="HvlAuthzRole") public class HvlAuthzPredefinedRoleRestController extends Object implements HvlAuthzPredefinedRoleRestService, HvlAuthzPredefinedRoleOperationalRestService
The class in which service endpoints are defined for predefined role operations.
  • Constructor Details

    • HvlAuthzPredefinedRoleRestController

      public HvlAuthzPredefinedRoleRestController(HvlAuthzPredefinedRoleService predefinedRoleService)
      Instantiates a new HvlAuthzPredefinedRoleRestController.
      Parameters:
      predefinedRoleService - the predefined role service
  • Method Details

    • update

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthPredefinedRolePersistModel predefinedRolePersistModel)
      Update predefined roles.
      Specified by:
      update in interface HvlAuthzPredefinedRoleOperationalRestService
      Parameters:
      predefinedRolePersistModel - the predefined role persist model
      Returns:
      the hvl response
    • deleteByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") 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)
      Delete predefined role by uuid.
      Specified by:
      deleteByUuid in interface HvlAuthzPredefinedRoleOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthPredefinedRoleModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Gets predefined role by uuid.
      Specified by:
      getByUuid in interface HvlAuthzPredefinedRoleRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • queryDataList

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthPredefinedRoleDataModel>> queryDataList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthPredefinedRoleQueryModel preDefinedRoleQueryModel)
      Returns a list of predefined role matching the query criteria.
      Specified by:
      queryDataList in interface HvlAuthzPredefinedRoleRestService
      Parameters:
      preDefinedRoleQueryModel - the predefined role query model
      Returns:
      the hvl response
    • queryDataPage

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthPredefinedRoleDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthPredefinedRoleQueryModel preDefinedRoleQueryModel)
      Returns a page of predefined role matching the query criteria.
      Specified by:
      queryDataPage in interface HvlAuthzPredefinedRoleRestService
      Parameters:
      preDefinedRoleQueryModel - the predefined role query model
      Returns:
      the hvl response