Class HvlAuthzUserServiceLdapImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.user.logic.HvlAuthzAbstractUserServiceImpl
tr.com.havelsan.javarch.oauth.authz.starter.module.user.logic.HvlAuthzUserServiceLdapImpl
- All Implemented Interfaces:
HvlAuthzUserService
@Primary
@Profile("ldap")
@Service("HvlAuthzUserService")
public class HvlAuthzUserServiceLdapImpl
extends HvlAuthzAbstractUserServiceImpl
The class which extends
HvlAuthzUserServiceImpl
.-
Field Summary
Fields inherited from class tr.com.havelsan.javarch.oauth.authz.starter.module.user.logic.HvlAuthzAbstractUserServiceImpl
cryptoService, userFieldValueGeneratorProvider, USERNAME_FIELD, userOperationalManager
-
Constructor Summary
ConstructorDescriptionHvlAuthzUserServiceLdapImpl
(HvlAuthVerificationRestService verificationCloudRestService, HvlOAuthUserManager userManager, HvlOAuthUserOperationalManager userOperationalManager, HvlOAuthUserFieldValueGeneratorProvider userFieldValueGeneratorProvider, HvlAuthzSessionService sessionService, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlOAuthUserPasswordProvider userPasswordProvider, HvlAuthzBundleService bundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher, HvlLdapEntryProvider ldapEntryProvider, HvlAuthzKeyProperties authzKeyProperties, HvlOAuthUserLdapEntryOperation ldapEntryOperation, HvlAuthzLdapProperties ldapProperties, HvlAuthzUserDetailService userDetailService) Instantiates a new HvlAuthzUserServiceImpl. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
changePasswordForOtherSystem
(HvlOAuthUserModel user, String password) save
(@NotNull @Valid HvlOAuthUserModel userModel) Saves user.saveLdapEntry
(@NotNull @Valid HvlOAuthUserLdapPersistModel persistLdapModel) Saves ldap entry with provided persistLdapModel model.void
saveLdapEntry
(HvlOAuthUserLdapPersistModel persistLdapModel, HvlOAuthUserModel userModel) saveWithPredefinedValues
(@NotNull @Valid HvlOAuthUserModel userModel) saveWithPredefinedValues is a method which is used to add new user data with predefined values which can be defined by administrator.update
(@NotNull @Valid HvlOAuthUserModel userModel) Update user.Methods inherited from class tr.com.havelsan.javarch.oauth.authz.starter.module.user.logic.HvlAuthzAbstractUserServiceImpl
changePassword, changePasswordByAdmin, changePasswordUsingVerification, deleteByUuid, getByIntegrationCode, getByUsername, getByUuid, lock, queryClaimDataPage, queryPage, sendLogAndOperationEvent, unlock
-
Constructor Details
-
HvlAuthzUserServiceLdapImpl
public HvlAuthzUserServiceLdapImpl(HvlAuthVerificationRestService verificationCloudRestService, HvlOAuthUserManager userManager, HvlOAuthUserOperationalManager userOperationalManager, HvlOAuthUserFieldValueGeneratorProvider userFieldValueGeneratorProvider, HvlAuthzSessionService sessionService, HvlAuthzLoggerProducerProvider loggerProducerProvider, HvlOAuthUserPasswordProvider userPasswordProvider, HvlAuthzBundleService bundleService, HvlAuthzInstanceInternalEventPublisher instanceInternalEventPublisher, HvlLdapEntryProvider ldapEntryProvider, HvlAuthzKeyProperties authzKeyProperties, HvlOAuthUserLdapEntryOperation ldapEntryOperation, HvlAuthzLdapProperties ldapProperties, HvlAuthzUserDetailService userDetailService) Instantiates a new HvlAuthzUserServiceImpl.- Parameters:
verificationCloudRestService
- the verification cloud rest serviceuserManager
- the user manageruserOperationalManager
- the user operational manageruserFieldValueGeneratorProvider
- the user field value generator providersessionService
- the session serviceloggerProducerProvider
- the logger producer provideruserPasswordProvider
- the user password providerbundleService
- the bundle serviceinstanceInternalEventPublisher
- the instance internal event publisherldapEntryProvider
- the ldap serviceauthzKeyProperties
- the authz key propertiesldapEntryOperation
- the ldap operationldapProperties
- the ldap properties
-
-
Method Details
-
changePasswordForOtherSystem
- Specified by:
changePasswordForOtherSystem
in classHvlAuthzAbstractUserServiceImpl
-
save
Saves user.- Specified by:
save
in interfaceHvlAuthzUserService
- Overrides:
save
in classHvlAuthzAbstractUserServiceImpl
- Parameters:
userModel
- the user model- Returns:
- the user model
-
saveWithPredefinedValues
public HvlOAuthUserModel saveWithPredefinedValues(@NotNull @Valid @NotNull @Valid HvlOAuthUserModel userModel) saveWithPredefinedValues is a method which is used to add new user data with predefined values which can be defined by administrator. For example, If there is a record for user type of user trying to be added matching with predefined role, system would create a profile authorized with this predefined roles for this user.- Specified by:
saveWithPredefinedValues
in interfaceHvlAuthzUserService
- Overrides:
saveWithPredefinedValues
in classHvlAuthzAbstractUserServiceImpl
- Parameters:
userModel
- the user model- Returns:
- the user model
-
update
Update user.- Specified by:
update
in interfaceHvlAuthzUserService
- Overrides:
update
in classHvlAuthzAbstractUserServiceImpl
- Parameters:
userModel
- the user model- Returns:
- the user model
-
saveLdapEntry
public HvlOAuthUserLdapResultModel saveLdapEntry(@NotNull @Valid @NotNull @Valid HvlOAuthUserLdapPersistModel persistLdapModel) Saves ldap entry with provided persistLdapModel model.- Parameters:
persistLdapModel
- the persist ldap model- Returns:
- the HvlOAuthUserLdapResultModel
-
saveLdapEntry
public void saveLdapEntry(HvlOAuthUserLdapPersistModel persistLdapModel, HvlOAuthUserModel userModel) throws HvlLdapException - Throws:
HvlLdapException
-