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 Details

    • HvlAuthzRoleGroupRestController

      public HvlAuthzRoleGroupRestController(HvlAuthzRoleGroupService roleGroupService)
      Instantiates a new HvlAuthzRoleGroupRestController.
      Parameters:
      roleGroupService - the role group service
  • Method Details

    • save

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleGroupCopiablePersistModel roleGroupCopiablePersistModel)
      Save role group.
      Specified by:
      save in interface HvlAuthzRoleGroupOperationalRestService
      Parameters:
      roleGroupCopiablePersistModel - the role group copiable persist model
      Returns:
      the hvl response
    • update

      @PreAuthorize("hasAuthority(\'keysis\')") @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 interface HvlAuthzRoleGroupOperationalRestService
      Parameters:
      roleGroupPersistModel - the role group persist container 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)
      deleteByUuid is a method which is used to remove role group data criteria in uuid parameter.
      Specified by:
      deleteByUuid in interface HvlAuthzRoleGroupOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • activateByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") 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 interface HvlAuthzRoleGroupOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • deactivateByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") 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 interface HvlAuthzRoleGroupOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

      @PreAuthorize("hasAuthority(\'keysis: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 interface HvlAuthzRoleGroupRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • queryDataList

      @PreAuthorize("hasAuthority(\'keysis: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 interface HvlAuthzRoleGroupRestService
      Parameters:
      roleGroupQueryModel - the role group query model
      Returns:
      the hvl response
    • queryDataPage

      @PreAuthorize("hasAuthority(\'keysis: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 interface HvlAuthzRoleGroupRestService
      Parameters:
      roleGroupQueryModel - the role group query model
      Returns:
      the hvl response
    • queryClaimDataPage

      @PreAuthorize("hasAuthority(\'keysis: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 interface HvlAuthzRoleGroupRestService
      Parameters:
      roleGroupClaimQueryModel - the role group claim query model
      Returns:
      the hvl response
    • queryReportByAdminDataPage

      @PreAuthorize("hasAuthority(\'keysis\')") @Validated(PredicatingOperation.class) public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleGroupDataModel>> queryReportByAdminDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel)
      Returns a page of role group matching the report query criteria by admin.
      Specified by:
      queryReportByAdminDataPage in interface HvlAuthzRoleGroupRestService
      Parameters:
      reportQueryModel - the report query model
      Returns:
      the hvl response
    • queryReportDataPage

      @PreAuthorize("hasAuthority(\'default_authority\')") 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 interface HvlAuthzRoleGroupRestService
      Parameters:
      reportQueryModel - the report query model
      Returns:
      the hvl response