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 Details

    • HvlAuthzProfileGroupRestController

      public HvlAuthzProfileGroupRestController(HvlAuthzProfileGroupService profileGroupService)
      Instantiates a new HvlAuthzProfileGroupRestController.
      Parameters:
      profileGroupService - the profile group service
  • Method Details

    • save

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupCopiablePersistModel profileGroupCopiablePersistModel)
      Save hvl response.
      Specified by:
      save in interface HvlAuthzProfileGroupOperationalRestService
      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(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileGroupPersistModel hvlOAuthProfileGroupPersistModel)
      Updates profile group.
      Specified by:
      update in interface HvlAuthzProfileGroupOperationalRestService
      Parameters:
      hvlOAuthProfileGroupPersistModel - the profile group 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)
      Deletes by uuid.
      Specified by:
      deleteByUuid in interface HvlAuthzProfileGroupOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • updateRoles

      @PreAuthorize("hasAuthority(\'keysis\')") 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 interface HvlAuthzProfileGroupOperationalRestService
      Parameters:
      profileGroupRolePersistModel - the profile group role persist model
      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 according to uuid.
      Specified by:
      activateByUuid in interface HvlAuthzProfileGroupOperationalRestService
      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 according to uuid.
      Specified by:
      deactivateByUuid in interface HvlAuthzProfileGroupOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

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

      @PreAuthorize("hasAuthority(\'keysis\')") 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 interface HvlAuthzProfileGroupRestService
      Parameters:
      profileGroupQueryModel - the profile group query model
      Returns:
      the hvl response
    • queryPage

      @PreAuthorize("hasAuthority(\'keysis\')") 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 interface HvlAuthzProfileGroupRestService
      Parameters:
      profileGroupQueryModel - the profile 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<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 interface HvlAuthzProfileGroupRestService
      Parameters:
      profileGroupClaimQueryModel - the profile 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<HvlOAuthProfileGroupDataModel>> queryReportByAdminDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel)
      Returns a page of profile group report matching the report query criteria by admin.
      Specified by:
      queryReportByAdminDataPage in interface HvlAuthzProfileGroupRestService
      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<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 interface HvlAuthzProfileGroupRestService
      Parameters:
      reportQueryModel - the report query model
      Returns:
      the hvl response