Class HvlAuthzProfileServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.service.HvlAuthzBaseService
tr.com.havelsan.javarch.oauth.authz.starter.module.profile.logic.HvlAuthzProfileServiceImpl
- All Implemented Interfaces:
HvlAuthzProfileService
@Service
public class HvlAuthzProfileServiceImpl
extends HvlAuthzBaseService
implements HvlAuthzProfileService
The class which implements
HvlAuthzProfileService
.-
Constructor Summary
ConstructorDescriptionHvlAuthzProfileServiceImpl
(HvlOAuthProfileManager profileManager, HvlOAuthProfileOperationalManager profileOperationalManager, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlAuthzBundleService bundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher, HvlOAuthProfileRoleRelOperationalManager profileRoleRelOperationalManager, HvlOAuthProfileRoleGroupRelOperationalManager profileRoleGroupRelOperationalManager, HvlOAuthAcquiredProfileManager acquiredProfileManager, HvlOAuthRoleManager roleManager, HvlAuthzSessionService authzSessionService, HvlOAuthProfileGroupManager profileGroupManager, HvlOAuthProfileGroupProfileRelManager profileGroupProfileRelManager, HvlOAuthRoleAssignerManager roleAssignerManager, HvlOAuthAcquiredProfileManager authAcquiredProfileManager) Instantiates a new HvlAuthzProfileServiceImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Activates profile according to uuid.void
deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Deactivates profile according to uuid.void
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Deletes profile by uuid.Gets acquired data list using authenticated session.getByIntegrationCode
(@NotBlank @Size(max=20) String integrationCode) Gets profile by integration code.Gets profile model by uuid.getDataByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Gets profile data model by uuid.getIdListByProfileGroupUuid
(@NotBlank @Size(min=36,max=36) String profileGroupUuid) Gets profile id list by profile group uuid.getProfileNameListByUsername
(@NotBlank @Size(max=50) String username) Gets profile data model list by username.Checks whether profile exists or not.queryDataList
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile data model list.queryList
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile model list.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthProfileModel> queryPage
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile model page.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.data.commons.pageable.HvlPage
<HvlOAuthProfileUserDataModel> queryProfileUserDataPage
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile user data model page.void
resetProfile
(@NotNull @Valid HvlOAuthProfileResetModel profileResetModel) Resets profile.save
(@NotNull @Valid HvlOAuthProfileCopiablePersistModel profileCopiablePersistModel) Saves profile.void
update
(@NotNull @Valid HvlOAuthProfilePersistModel profilePersistModel) Updates profile.void
updateRoleProfiles
(@NotNull @Valid HvlOAuthRoleProfilePersistModel roleProfilePersistModel) Updates role profilesvoid
updateRoles
(@NotNull @Valid HvlOAuthProfileRolePersistByAdminModel profileRolePersistByAdminModel) Updates roles.void
updateRolesByRoleAssigner
(@NotNull @Valid HvlOAuthProfileRolePersistByRoleAssignerModel profileRolePersistByRoleAssignerModel) Updates roles by role assigner.void
userMigrationProfileToProfile
(@NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel) Migrates user profile to profile.Methods inherited from class tr.com.havelsan.javarch.oauth.authz.starter.service.HvlAuthzBaseService
sendLog, sendLog, sendLogAndOperationEvent, sendLogAndOperationEvent, sendOperationEvent
-
Constructor Details
-
HvlAuthzProfileServiceImpl
public HvlAuthzProfileServiceImpl(HvlOAuthProfileManager profileManager, HvlOAuthProfileOperationalManager profileOperationalManager, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlAuthzBundleService bundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher, HvlOAuthProfileRoleRelOperationalManager profileRoleRelOperationalManager, HvlOAuthProfileRoleGroupRelOperationalManager profileRoleGroupRelOperationalManager, HvlOAuthAcquiredProfileManager acquiredProfileManager, HvlOAuthRoleManager roleManager, HvlAuthzSessionService authzSessionService, HvlOAuthProfileGroupManager profileGroupManager, HvlOAuthProfileGroupProfileRelManager profileGroupProfileRelManager, HvlOAuthRoleAssignerManager roleAssignerManager, HvlOAuthAcquiredProfileManager authAcquiredProfileManager) Instantiates a new HvlAuthzProfileServiceImpl.- Parameters:
profileManager
- the profile managerprofileOperationalManager
- the profile operational managerloggerProducerProvider
- the logger producer providerbundleService
- the bundle serviceinstanceInternalEventPublisher
- the instance internal event publisherprofileRoleRelOperationalManager
- the profile role rel operational managerprofileRoleGroupRelOperationalManager
- the profile role group rel operational manageracquiredProfileManager
- the acquired profile managerroleManager
- the role managerauthzSessionService
- the authz session serviceprofileGroupManager
- the profile group managerprofileGroupProfileRelManager
- the profile group profile rel managerroleAssignerManager
- the role assigner managerauthAcquiredProfileManager
- the auth acquired profile manager
-
-
Method Details
-
save
public HvlOAuthProfileModel save(@NotNull @Valid @NotNull @Valid HvlOAuthProfileCopiablePersistModel profileCopiablePersistModel) Saves profile.- Specified by:
save
in interfaceHvlAuthzProfileService
- Parameters:
profileCopiablePersistModel
- the profile copiable persist model- Returns:
- the hvl o auth profile model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public void update(@NotNull @Valid @NotNull @Valid HvlOAuthProfilePersistModel profilePersistModel) Updates profile.- Specified by:
update
in interfaceHvlAuthzProfileService
- Parameters:
profilePersistModel
- the profile persist model
-
updateRoles
public void updateRoles(@NotNull @Valid @NotNull @Valid HvlOAuthProfileRolePersistByAdminModel profileRolePersistByAdminModel) Updates roles.- Specified by:
updateRoles
in interfaceHvlAuthzProfileService
- Parameters:
profileRolePersistByAdminModel
- the profile role persist by admin model
-
updateRoleProfiles
public void updateRoleProfiles(@NotNull @Valid @NotNull @Valid HvlOAuthRoleProfilePersistModel roleProfilePersistModel) Updates role profiles- Specified by:
updateRoleProfiles
in interfaceHvlAuthzProfileService
- Parameters:
roleProfilePersistModel
- the role profile persist model
-
updateRolesByRoleAssigner
public void updateRolesByRoleAssigner(@NotNull @Valid @NotNull @Valid HvlOAuthProfileRolePersistByRoleAssignerModel profileRolePersistByRoleAssignerModel) Updates roles by role assigner.- Specified by:
updateRolesByRoleAssigner
in interfaceHvlAuthzProfileService
- Parameters:
profileRolePersistByRoleAssignerModel
- the profile role persist by role assigner model
-
deleteByUuid
Deletes profile by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid
-
activateByUuid
public void activateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Activates profile according to uuid.- Specified by:
activateByUuid
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid
-
deactivateByUuid
public void deactivateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Deactivates profile according to uuid.- Specified by:
deactivateByUuid
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid
-
userMigrationProfileToProfile
public void userMigrationProfileToProfile(@NotNull @Valid @NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel) Migrates user profile to profile.- Specified by:
userMigrationProfileToProfile
in interfaceHvlAuthzProfileService
- Parameters:
userMigrationModel
- the user migration model
-
resetProfile
public void resetProfile(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileResetModel profileResetModel) Resets profile.- Specified by:
resetProfile
in interfaceHvlAuthzProfileService
- Parameters:
profileResetModel
- the profile reset model
-
getByUuid
public HvlOAuthProfileModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets profile model by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid- Returns:
- profile model
-
getDataByUuid
public HvlOAuthProfileDataModel getDataByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets profile data model by uuid.- Specified by:
getDataByUuid
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid- Returns:
- profile data model
-
getProfileNameListByUsername
public List<HvlOAuthProfileDataModel> getProfileNameListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username) Gets profile data model list by username.- Specified by:
getProfileNameListByUsername
in interfaceHvlAuthzProfileService
- Parameters:
username
- the username- Returns:
- profile data model list
-
getIdListByProfileGroupUuid
public List<Long> getIdListByProfileGroupUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String profileGroupUuid) Gets profile id list by profile group uuid.- Specified by:
getIdListByProfileGroupUuid
in interfaceHvlAuthzProfileService
- Parameters:
profileGroupUuid
- the profile group uuid- Returns:
- profile id list
-
getAcquiredDataListByUsername
Gets acquired data list using authenticated session.- Specified by:
getAcquiredDataListByUsername
in interfaceHvlAuthzProfileService
- Returns:
- the acquired profile data list
-
getByIntegrationCode
public HvlOAuthProfileModel getByIntegrationCode(@NotBlank @Size(max=20) @NotBlank @Size(max=20) String integrationCode) Gets profile by integration code.- Specified by:
getByIntegrationCode
in interfaceHvlAuthzProfileService
- Parameters:
integrationCode
- the integration code- Returns:
- the profile model
-
isExists
Checks whether profile exists or not.- Specified by:
isExists
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid- Returns:
- true or false
-
queryList
public List<HvlOAuthProfileModel> queryList(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile model list.- Specified by:
queryList
in interfaceHvlAuthzProfileService
- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile model list
-
queryPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileModel> queryPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile model page.- Specified by:
queryPage
in interfaceHvlAuthzProfileService
- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile model page
-
queryDataList
public List<HvlOAuthProfileDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile data model list.- Specified by:
queryDataList
in interfaceHvlAuthzProfileService
- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile data model list
-
queryProfileUserDataPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserDataModel> queryProfileUserDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Gets profile user data model page.- Specified by:
queryProfileUserDataPage
in interfaceHvlAuthzProfileService
- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile user data model page
-
queryProfileUserClaimDataPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserClaimDataModel> queryProfileUserClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileClaimQueryModel profileClaimQueryModel) Gets profile user claim data model page.- Specified by:
queryProfileUserClaimDataPage
in interfaceHvlAuthzProfileService
- Parameters:
profileClaimQueryModel
- the available profile query model- Returns:
- profile user claim data model page
-