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 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 interface HvlAuthzUserPasswordPolicyOperationalRestService
      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 interface HvlAuthzUserPasswordPolicyOperationalRestService
      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 interface HvlAuthzUserPasswordPolicyOperationalRestService
      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 interface HvlAuthzUserPasswordPolicyOperationalRestService
      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 interface HvlAuthzUserPasswordPolicyRestService
      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 interface HvlAuthzUserPasswordPolicyRestService
      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 interface HvlAuthzUserPasswordPolicyRestService
      Parameters:
      userPasswordPolicyQueryModel - the user password policy query model
      Returns:
      the hvl response