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, 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) Method used to activate profile according to uuid.void
deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate 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) Reset profile.void
save
(@NotNull @Valid HvlOAuthProfileCopiablePersistModel profileCopiablePersistModel) Saves profile.void
update
(@NotNull @Valid HvlOAuthProfilePersistModel profilePersistModel) Updates profile.void
updateRoles
(@NotNull @Valid HvlOAuthProfileRolePersistByAdminModel profileRolePersistByAdminModel) Update roles.void
updateRolesByRoleAssigner
(@NotNull @Valid HvlOAuthProfileRolePersistByRoleAssignerModel profileRolePersistByRoleAssignerModel) Update roles by role assigner.void
userMigrationProfileToProfile
(@NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel) User migration 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, 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 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 void save(@NotNull @Valid @NotNull @Valid HvlOAuthProfileCopiablePersistModel profileCopiablePersistModel) Saves profile.- Specified by:
save
in interfaceHvlAuthzProfileService
- Parameters:
profileCopiablePersistModel
- the profile persist 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) Update roles.- Specified by:
updateRoles
in interfaceHvlAuthzProfileService
- Parameters:
profileRolePersistByAdminModel
- the profile role persist by admin model
-
updateRolesByRoleAssigner
public void updateRolesByRoleAssigner(@NotNull @Valid @NotNull @Valid HvlOAuthProfileRolePersistByRoleAssignerModel profileRolePersistByRoleAssignerModel) Update 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) Method used to activate 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) Method used to deactivate profile according to uuid.- Specified by:
deactivateByUuid
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid
-
userMigrationProfileToProfile
public void userMigrationProfileToProfile(@NotNull @Valid @NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel) User migration 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) Reset profile.- Specified by:
resetProfile
in interfaceHvlAuthzProfileService
- Parameters:
profileResetModel
- the profile reset model
-
getByUuid
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) public List<HvlOAuthAcquiredProfileDataModel> getAcquiredDataListByUsername()Gets acquired data list using authenticated session.- Specified by:
getAcquiredDataListByUsername
in interfaceHvlAuthzProfileService
- Returns:
- the acquired profile data list
-
getByIntegrationCode
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) public Boolean isExists(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Checks whether profile exists or not.- Specified by:
isExists
in interfaceHvlAuthzProfileService
- Parameters:
uuid
- the uuid- Returns:
- true or false
-
queryList
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) 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
-