Class HvlAuthzUserStrategyRestController

java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.user.controller.HvlAuthzUserStrategyRestController
All Implemented Interfaces:
HvlAuthzUserStrategyOperationalRestService, HvlAuthzUserStrategyRestService

@RestController @RequestMapping("${hvl.oauth.authz.service.user.strategy.controller-path:/user-strategies}") @HvlActuatorService(name="HvlAuthzUserStrategyRestService", groupName="HvlAuthzUser") public class HvlAuthzUserStrategyRestController extends Object implements HvlAuthzUserStrategyOperationalRestService, HvlAuthzUserStrategyRestService
The class in which service endpoints are defined for strategy operations.
  • Constructor Details

    • HvlAuthzUserStrategyRestController

      public HvlAuthzUserStrategyRestController(HvlAuthzUserStrategyService userStrategyService)
      Instantiates a new HvlAuthzUserStrategyRestController.
      Parameters:
      userStrategyService - the strategy service
  • Method Details

    • save

      @PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthUserStrategyModel userStrategyModel)
      Save user strategy.
      Specified by:
      save in interface HvlAuthzUserStrategyOperationalRestService
      Parameters:
      userStrategyModel - the user strategy 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 HvlOAuthUserStrategyModel userStrategyModel)
      Update user strategy.
      Specified by:
      update in interface HvlAuthzUserStrategyOperationalRestService
      Parameters:
      userStrategyModel - the user strategy 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)
      Delete user strategy by uuid.
      Specified by:
      deleteByUuid in interface HvlAuthzUserStrategyOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • activate

      @PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> activate(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Method used to activate user strategy data according to uuid.
      Specified by:
      activate in interface HvlAuthzUserStrategyOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • deactivate

      @PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> deactivate(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Method used to deactivate user strategy data according to uuid.
      Specified by:
      deactivate in interface HvlAuthzUserStrategyOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

      public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthUserStrategyModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Gets user strategy by uuid.
      Specified by:
      getByUuid in interface HvlAuthzUserStrategyRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • queryList

      public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthUserStrategyModel>> queryList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthUserStrategyQueryModel strategyQueryModel)
      Returns a list of user strategy matching the query criteria.
      Specified by:
      queryList in interface HvlAuthzUserStrategyRestService
      Parameters:
      strategyQueryModel - the strategy query model
      Returns:
      the hvl response
    • queryPage

      public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserStrategyModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthUserStrategyQueryModel strategyQueryModel)
      Returns a page of user strategy matching the query criteria.
      Specified by:
      queryPage in interface HvlAuthzUserStrategyRestService
      Parameters:
      strategyQueryModel - the strategy query model
      Returns:
      the hvl response
    • getActiveByUserTypeId

      public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthUserStrategyModel> getActiveByUserTypeId(@NotNull @NotNull Long userTypeId)
      Specified by:
      getActiveByUserTypeId in interface HvlAuthzUserStrategyRestService