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 Summary
ConstructorDescriptionHvlAuthzProfileRestController
(HvlAuthzProfileService profileService) Instantiates a new HvlAuthzProfileRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> activateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to activate role according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate role according to uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Deletes by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlOAuthAcquiredProfileDataModel>> Gets acquired data list using authenticated session.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthProfileModel> getByIntegrationCode
(@NotBlank @Size(max=20) String integrationCode) Gets by integration code.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthProfileModel> Get profile by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthProfileDataModel> getDataByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Get profile data using uuidgetIdListByProfileGroupUuid
(@NotBlank @Size(min=36,max=36) String profileGroupUuid) Gets profile id list by profile group uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlOAuthProfileDataModel>> getProfileNameListByUsername
(@NotBlank @Size(max=50) String username) Get profile data list using username.tr.com.havelsan.javarch.service.data.HvlResponse
<Boolean> Profile exist control using profile uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlOAuthProfileDataModel>> queryDataList
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Get eager profile data list using profile query.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileModel>> queryPage
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Get lazy profile using profile query.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserClaimDataModel>> queryProfileUserClaimDataPage
(@NotNull @Valid HvlOAuthProfileClaimQueryModel profileClaimQueryModel) Gets profile user claim data model page.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserDataModel>> queryProfileUserDataPage
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Get lazy profile data list using profile query.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> resetProfile
(@NotNull @Valid HvlOAuthProfileResetModel profileResetModel) Method used to reset profile.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthProfileModel> save
(@NotNull @Valid HvlOAuthProfileCopiablePersistModel profileCopiablePersistModel) Saves profile.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> update
(@NotNull @Valid HvlOAuthProfilePersistModel profilePersistModel) Updates profile.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> updateRoleProfilesRoles
(@NotNull @Valid HvlOAuthRoleProfilePersistModel roleProfilePersistModel) Update role profiles hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> updateRoles
(@NotNull @Valid HvlOAuthProfileRolePersistByAdminModel profileRolePersistByAdminModel) Update roles hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> updateRolesByRoleAssigner
(@NotNull @Valid HvlOAuthProfileRolePersistByRoleAssignerModel profileRolePersistByRoleAssignerModel) Update roles by role assigner hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> userMigrationProfileToProfile
(@NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel) Method used to migrate profiles user to another profile.
-
Constructor Details
-
HvlAuthzProfileRestController
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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileOperationalRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- 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 interfaceHvlAuthzProfileRestService
- Parameters:
profileClaimQueryModel
- the available profile query model- Returns:
- the hvl response
-