Class DefaultProfileTransactionService
java.lang.Object
com.hybris.yprofile.services.impl.DefaultProfileTransactionService
- All Implemented Interfaces:
ProfileTransactionService
Implementation for
ProfileTransactionService. Communication service to send transactions to Profile-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProfileClientprotected StringgetConsentReference(OrderModel orderModel) protected static StringgetDebugFlagValue(UserModel userModel) protected static booleanisValidConsentReference(String consentReferenceId) protected static voidprotected static voidlogSuccess(Optional<com.hybris.charon.RawResponse> rawResponse, Object obj, String consentReferenceId) voidsendAddressDeletedEvent(UserModel userModel, String baseSiteId, String consentReferenceId) Sends address deleted event to CDS.voidsendAddressSavedEvent(UserModel userModel, String baseSiteId, String consentReferenceId) Sends address saved event to CDS.voidsendConsignmentEvent(ConsignmentModel consignmentModel) Send consignment to CDS.voidsendLoginEvent(UserModel userModel, String consentReferenceId, String sessionId, String baseSiteId) Send user login event to CDS.protected voidvoidsendPersonalDetailsChangedEvent(UserModel userModel, String baseSiteId, String consentReferenceId) Sends personal details updated event to CDS.voidsendReturnOrderEvent(ReturnRequestModel returnRequestModel) Send return to CDS.voidsendSubmitOrderEvent(OrderModel orderModel) Send order to CDS.voidsendUidChangedEvent(ChangeUIDEvent event, String consentReferenceId) Send changed UID event to CDS.protected voidsendUserEvent(UserModel userModel, String consentReferenceId, String sessionId, String baseSiteId, String eventType) voidsendUserRegistrationEvent(UserModel userModel, String consentReferenceId, String sessionId, String baseSiteId) Send user registration event to CDS.voidsetConsentService(ConsentService consentService) voidsetProfileConfigurationService(ProfileConfigurationService profileConfigurationService) voidsetProfileConsignmentEventConverter(Converter<ConsignmentModel, Order> profileConsignmentEventConverter) voidsetProfileOrderEventConverter(Converter<OrderModel, Order> profileOrderEventConverter) voidsetProfileReturnEventConverter(Converter<ReturnRequestModel, Order> profileReturnEventConverter) voidsetProfileUIDConverter(Converter<ChangeUIDEvent, UID> profileUIDConverter) voidsetProfileUserEventConverter(Converter<UserModel, User> profileUserEventConverter) voidsetRetrieveRestClientStrategy(RetrieveRestClientStrategy retrieveRestClientStrategy) protected booleanshouldSendEvent(String consentReference, String baseSiteId)
-
Constructor Details
-
DefaultProfileTransactionService
public DefaultProfileTransactionService()
-
-
Method Details
-
sendSubmitOrderEvent
Send order to CDS.- Specified by:
sendSubmitOrderEventin interfaceProfileTransactionService- Parameters:
orderModel- the order model
-
sendConsignmentEvent
Send consignment to CDS.- Specified by:
sendConsignmentEventin interfaceProfileTransactionService- Parameters:
consignmentModel- the consignment model
-
sendReturnOrderEvent
Send return to CDS.- Specified by:
sendReturnOrderEventin interfaceProfileTransactionService- Parameters:
returnRequestModel- the return request
-
sendOrder
-
shouldSendEvent
-
sendUserRegistrationEvent
public void sendUserRegistrationEvent(UserModel userModel, String consentReferenceId, String sessionId, String baseSiteId) Send user registration event to CDS.- Specified by:
sendUserRegistrationEventin interfaceProfileTransactionService- Parameters:
userModel- the user modelconsentReferenceId- consent referencesessionId- ec session idbaseSiteId- storefront name like 'electronics'
-
sendUidChangedEvent
Send changed UID event to CDS.- Specified by:
sendUidChangedEventin interfaceProfileTransactionService- Parameters:
event- the changeUIDEvent. The populator knows how to extract the appropriate informationconsentReferenceId- consent reference
-
sendAddressSavedEvent
public void sendAddressSavedEvent(UserModel userModel, String baseSiteId, String consentReferenceId) Sends address saved event to CDS.- Specified by:
sendAddressSavedEventin interfaceProfileTransactionService- Parameters:
userModel- the user modelconsentReferenceId- the consent referencebaseSiteId- site id from the event
-
sendAddressDeletedEvent
public void sendAddressDeletedEvent(UserModel userModel, String baseSiteId, String consentReferenceId) Sends address deleted event to CDS.- Specified by:
sendAddressDeletedEventin interfaceProfileTransactionService- Parameters:
userModel- the user modelconsentReferenceId- the consent referencebaseSiteId- site id from the event
-
sendPersonalDetailsChangedEvent
public void sendPersonalDetailsChangedEvent(UserModel userModel, String baseSiteId, String consentReferenceId) Sends personal details updated event to CDS.- Specified by:
sendPersonalDetailsChangedEventin interfaceProfileTransactionService- Parameters:
userModel- the user modelconsentReferenceId- the consent referencebaseSiteId- site id from the event
-
sendLoginEvent
public void sendLoginEvent(UserModel userModel, String consentReferenceId, String sessionId, String baseSiteId) Send user login event to CDS.- Specified by:
sendLoginEventin interfaceProfileTransactionService- Parameters:
userModel- the user modelconsentReferenceId- consent referencesessionId- ec session idbaseSiteId- storefront name like 'electronics'
-
sendUserEvent
-
getDebugFlagValue
-
isValidConsentReference
-
logSuccess
-
logError
-
getConsentReference
-
getClient
-
getRetrieveRestClientStrategy
-
setRetrieveRestClientStrategy
-
getProfileConfigurationService
-
setProfileConfigurationService
-
getProfileOrderEventConverter
-
setProfileOrderEventConverter
-
getProfileConsignmentEventConverter
-
setProfileConsignmentEventConverter
public void setProfileConsignmentEventConverter(Converter<ConsignmentModel, Order> profileConsignmentEventConverter) -
getProfileReturnEventConverter
-
setProfileReturnEventConverter
public void setProfileReturnEventConverter(Converter<ReturnRequestModel, Order> profileReturnEventConverter) -
getProfileUserEventConverter
-
setProfileUserEventConverter
-
getProfileUIDConverter
-
setProfileUIDConverter
-
getConsentService
-
setConsentService
-