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 Summary
ConstructorDescriptionHvlAuthzUserStrategyRestController
(HvlAuthzUserStrategyService userStrategyService) Instantiates a new HvlAuthzUserStrategyRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<Void>
Method used to activate user strategy data according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
deactivate
(@NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate user strategy data according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete user strategy by uuid.tr.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.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
save
(@NotNull @Valid HvlOAuthUserStrategyModel userStrategyModel) Save user strategy.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
update
(@NotNull @Valid HvlOAuthUserStrategyModel userStrategyModel) Update user strategy.
-
Constructor Details
-
HvlAuthzUserStrategyRestController
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 interfaceHvlAuthzUserStrategyOperationalRestService
- 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 interfaceHvlAuthzUserStrategyOperationalRestService
- 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 interfaceHvlAuthzUserStrategyOperationalRestService
- 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 interfaceHvlAuthzUserStrategyOperationalRestService
- 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 interfaceHvlAuthzUserStrategyOperationalRestService
- 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 interfaceHvlAuthzUserStrategyRestService
- 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 interfaceHvlAuthzUserStrategyRestService
- 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 interfaceHvlAuthzUserStrategyRestService
- 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 interfaceHvlAuthzUserStrategyRestService
-