Class DefaultInternalNumberReplacementMsgMappingCallback
java.lang.Object
de.hybris.platform.sap.sapordermgmtservices.messagemappingcallback.DefaultInternalNumberReplacementMsgMappingCallback
- All Implemented Interfaces:
MessageMappingCallbackProcessor
public class DefaultInternalNumberReplacementMsgMappingCallback
extends Object
implements MessageMappingCallbackProcessor
This callback is referenced in messages.xml. It is used to replace the internal SAP number as part of a back end
message with the readable product description (from the hybris product model)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Should return the id of the message mapping callback processor.booleanprocess(BackendMessage message) Method is called during message replacement.voidsetGenericFactory(GenericFactory genericFactory) voidsetProductService(de.hybris.platform.product.ProductService productService)
-
Field Details
-
SAP_INTERNAL_NUMBER_REPLACEMENT_CALLBACK_ID
- See Also:
-
-
Constructor Details
-
DefaultInternalNumberReplacementMsgMappingCallback
public DefaultInternalNumberReplacementMsgMappingCallback()
-
-
Method Details
-
process
Description copied from interface:MessageMappingCallbackProcessorMethod is called during message replacement. Implement this message if you want to change the message before it gets replaced. E.g.: Replace message arguments .
It's also possible to remove messages via returning false.- Specified by:
processin interfaceMessageMappingCallbackProcessor- Parameters:
message- Back end message to evaluate- Returns:
- Do we want to keep the message?
-
getId
Description copied from interface:MessageMappingCallbackProcessorShould return the id of the message mapping callback processor. Returned string must be equals to the callbackId specified in a message rule (messages.xml) in order to get called- Specified by:
getIdin interfaceMessageMappingCallbackProcessor- Returns:
- ID of callback
-
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) - Parameters:
productService- the productService to set
-
getGenericFactory
- Returns:
- the genericFactory
-
setGenericFactory
- Parameters:
genericFactory- the genericFactory to set
-