Class HvlAuthzProfileRestController

java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.profile.controller.HvlAuthzProfileRestController
All Implemented Interfaces:
HvlAuthzProfileOperationalRestService, HvlAuthzProfileRestService

@RestController @RequestMapping("${hvl.oauth.authz.service.profile.controller-path:/profiles}") @HvlActuatorService(name="HvlAuthzProfileRestService", groupName="HvlAuthzProfile") public class HvlAuthzProfileRestController extends Object implements HvlAuthzProfileOperationalRestService, HvlAuthzProfileRestService
The class in which service endpoints are defined for profile operations.
  • Constructor Details

    • HvlAuthzProfileRestController

      public HvlAuthzProfileRestController(HvlAuthzProfileService profileService)
      Instantiates a new HvlAuthzProfileRestController.
      Parameters:
      profileService - the profile service
  • Method Details

    • save

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthProfileModel> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileCopiablePersistModel profileCopiablePersistModel)
      Saves profile.
      Specified by:
      save in interface HvlAuthzProfileOperationalRestService
      Parameters:
      profileCopiablePersistModel - the profile copiable persist model
      Returns:
      the hvl response
    • update

      @PreAuthorize("hasAuthority(\'keysis\')") @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfilePersistModel profilePersistModel)
      Updates profile.
      Specified by:
      update in interface HvlAuthzProfileOperationalRestService
      Parameters:
      profilePersistModel - the profile persist model
      Returns:
      the hvl response
    • updateRoles

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateRoles(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileRolePersistByAdminModel profileRolePersistByAdminModel)
      Update roles hvl response.
      Specified by:
      updateRoles in interface HvlAuthzProfileOperationalRestService
      Parameters:
      profileRolePersistByAdminModel - the profile role persist by admin model
      Returns:
      the hvl response
    • updateRoleProfilesRoles

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateRoleProfilesRoles(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthRoleProfilePersistModel roleProfilePersistModel)
      Update role profiles hvl response.
      Specified by:
      updateRoleProfilesRoles in interface HvlAuthzProfileOperationalRestService
      Parameters:
      roleProfilePersistModel - the role profile persist model
      Returns:
      the hvl response
    • updateRolesByRoleAssigner

      @PreAuthorize("hasAuthority(\'keysis:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateRolesByRoleAssigner(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileRolePersistByRoleAssignerModel profileRolePersistByRoleAssignerModel)
      Update roles by role assigner hvl response.
      Specified by:
      updateRolesByRoleAssigner in interface HvlAuthzProfileOperationalRestService
      Parameters:
      profileRolePersistByRoleAssignerModel - the profile role container persist 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)
      Deletes by uuid.
      Specified by:
      deleteByUuid in interface HvlAuthzProfileOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • activateByUuid

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

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

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> userMigrationProfileToProfile(@NotNull @Valid @NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel)
      Method used to migrate profiles user to another profile.
      Specified by:
      userMigrationProfileToProfile in interface HvlAuthzProfileOperationalRestService
      Parameters:
      userMigrationModel - the user migration model
      Returns:
      the hvl response
    • resetProfile

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> resetProfile(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileResetModel profileResetModel)
      Method used to reset profile.
      Specified by:
      resetProfile in interface HvlAuthzProfileOperationalRestService
      Parameters:
      profileResetModel - the profile reset model
      Returns:
      the hvl response
    • getByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthProfileModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Get profile by uuid.
      Specified by:
      getByUuid in interface HvlAuthzProfileRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getDataByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthProfileDataModel> getDataByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Get profile data using uuid
      Specified by:
      getDataByUuid in interface HvlAuthzProfileRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getProfileNameListByUsername

      public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthProfileDataModel>> getProfileNameListByUsername(@NotBlank @Size(max=50) @PathVariable("username") @NotBlank @Size(max=50) String username)
      Get profile data list using username.
      Specified by:
      getProfileNameListByUsername in interface HvlAuthzProfileRestService
      Parameters:
      username - the username
      Returns:
      the hvl response
    • getIdListByProfileGroupUuid

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<Long>> getIdListByProfileGroupUuid(@NotBlank @Size(min=36,max=36) @PathVariable("profileGroupUuid") @NotBlank @Size(min=36,max=36) String profileGroupUuid)
      Gets profile id list by profile group uuid.
      Specified by:
      getIdListByProfileGroupUuid in interface HvlAuthzProfileRestService
      Parameters:
      profileGroupUuid - the profile group uuid
      Returns:
      the hvl response
    • getAcquiredDataListByUsername

      public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthAcquiredProfileDataModel>> getAcquiredDataListByUsername()
      Gets acquired data list using authenticated session.
      Specified by:
      getAcquiredDataListByUsername in interface HvlAuthzProfileRestService
      Returns:
      the hvl response
    • getByIntegrationCode

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthProfileModel> getByIntegrationCode(@NotBlank @Size(max=20) @PathVariable("integrationCode") @NotBlank @Size(max=20) String integrationCode)
      Gets by integration code.
      Specified by:
      getByIntegrationCode in interface HvlAuthzProfileRestService
      Parameters:
      integrationCode - the integration code
      Returns:
      the by integration code
    • isExists

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Boolean> isExists(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Profile exist control using profile uuid.
      Specified by:
      isExists in interface HvlAuthzProfileRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • queryPage

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      Get lazy profile using profile query.
      Specified by:
      queryPage in interface HvlAuthzProfileRestService
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      the hvl response
    • queryDataList

      @PreAuthorize("hasAuthority(\'keysis:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthProfileDataModel>> queryDataList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      Get eager profile data list using profile query.
      Specified by:
      queryDataList in interface HvlAuthzProfileRestService
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      the hvl response
    • queryProfileUserDataPage

      @PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserDataModel>> queryProfileUserDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel)
      Get lazy profile data list using profile query.
      Specified by:
      queryProfileUserDataPage in interface HvlAuthzProfileRestService
      Parameters:
      profileQueryModel - the profile query model
      Returns:
      the hvl response
    • queryProfileUserClaimDataPage

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserClaimDataModel>> queryProfileUserClaimDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileClaimQueryModel profileClaimQueryModel)
      Gets profile user claim data model page.
      Specified by:
      queryProfileUserClaimDataPage in interface HvlAuthzProfileRestService
      Parameters:
      profileClaimQueryModel - the available profile query model
      Returns:
      the hvl response