Interface HvlAuthzUserStrategyRestService
- All Known Implementing Classes:
HvlAuthzUserStrategyRestController
@Validated
@HvlPublicFeignRestService
@FeignClient(name="userStrategyPublicRestService",
path="${hvl.oauth.authz.service.user.strategy.path:/user-strategies}",
url="${hvl.oauth.authz.service.user.strategy.url:${hvl.oauth.authz.service.url}}")
public interface HvlAuthzUserStrategyRestService
A restful service which provides specific methods for user strategy.
-
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthUserStrategyModel> getActiveByUserTypeId
(@NotNull Long userTypeId) tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthUserStrategyModel> Gets user strategy by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlOAuthUserStrategyModel>> queryList
(@NotNull @Valid HvlOAuthUserStrategyQueryModel strategyQueryModel) Returns a list of user strategy matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserStrategyModel>> queryPage
(@NotNull @Valid HvlOAuthUserStrategyQueryModel strategyQueryModel) Returns a page of user strategy matching the query criteria.
-
Method Details
-
getByUuid
@GetMapping(path="/by-uuid/{uuid}", produces="application/json") 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.- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
queryList
@PostMapping(path="/list", consumes="application/json", produces="application/json") 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.- Parameters:
strategyQueryModel
- the strategy query model- Returns:
- the hvl response
-
queryPage
@PostMapping(path="/page", consumes="application/json", produces="application/json") 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.- Parameters:
strategyQueryModel
- the strategy query model- Returns:
- the hvl response
-
getActiveByUserTypeId
@GetMapping(path="/by-user-type-id/{userTypeId}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthUserStrategyModel> getActiveByUserTypeId(@PathVariable("userTypeId") @NotNull @NotNull Long userTypeId)
-