Class HvlAuthzUserPasswordPolicyRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.user.controller.HvlAuthzUserPasswordPolicyRestController
- All Implemented Interfaces:
HvlAuthzUserPasswordPolicyOperationalRestService
,HvlAuthzUserPasswordPolicyRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.user.password-policy.controller-path:/user-password-policies}")
@HvlActuatorService(name="HvlAuthzUserPasswordPolicyRestService",
groupName="HvlAuthzUser")
public class HvlAuthzUserPasswordPolicyRestController
extends Object
implements HvlAuthzUserPasswordPolicyOperationalRestService, HvlAuthzUserPasswordPolicyRestService
The class in which service endpoints are defined for user password policy operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzUserPasswordPolicyRestController
(HvlAuthzUserPasswordPolicyService userPasswordPolicyService) Instantiates a new HvlAuthzUserPasswordPolicyRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> Method used to activate user password policy data according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete user password policy by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthUserPasswordPolicyModel> Method user for providing active user password policy data.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthUserPasswordPolicyModel> Gets user password policy by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserPasswordPolicyModel>> queryPage
(@NotNull @Valid HvlOAuthUserPasswordPolicyQueryModel userPasswordPolicyQueryModel) Returns a page of user password policy matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> save
(@NotNull @Valid HvlOAuthUserPasswordPolicyModel userPasswordPolicyModel) Save user password policy.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> update
(@NotNull @Valid HvlOAuthUserPasswordPolicyModel userPasswordPolicyModel) Update user password policy.
-
Constructor Details
-
HvlAuthzUserPasswordPolicyRestController
public HvlAuthzUserPasswordPolicyRestController(HvlAuthzUserPasswordPolicyService userPasswordPolicyService) Instantiates a new HvlAuthzUserPasswordPolicyRestController.- Parameters:
userPasswordPolicyService
- the user password policy service
-
-
Method Details
-
save
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthUserPasswordPolicyModel userPasswordPolicyModel) Save user password policy.- Specified by:
save
in interfaceHvlAuthzUserPasswordPolicyOperationalRestService
- Parameters:
userPasswordPolicyModel
- the user password policy 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 HvlOAuthUserPasswordPolicyModel userPasswordPolicyModel) Update user password policy.- Specified by:
update
in interfaceHvlAuthzUserPasswordPolicyOperationalRestService
- Parameters:
userPasswordPolicyModel
- the user password policy 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) Delete user password policy by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzUserPasswordPolicyOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
activate
@PreAuthorize("hasAuthority(\'keysis\')") 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 password policy data according to uuid.- Specified by:
activate
in interfaceHvlAuthzUserPasswordPolicyOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- hvl response
-
getByUuid
public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthUserPasswordPolicyModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets user password policy by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzUserPasswordPolicyRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
getActive
public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthUserPasswordPolicyModel> getActive()Method user for providing active user password policy data.- Specified by:
getActive
in interfaceHvlAuthzUserPasswordPolicyRestService
- Returns:
- the hvl response
-
queryPage
public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthUserPasswordPolicyModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthUserPasswordPolicyQueryModel userPasswordPolicyQueryModel) Returns a page of user password policy matching the query criteria.- Specified by:
queryPage
in interfaceHvlAuthzUserPasswordPolicyRestService
- Parameters:
userPasswordPolicyQueryModel
- the user password policy query model- Returns:
- the hvl response
-