Class PosConverter
- java.lang.Object
-
- de.hybris.platform.converters.impl.AbstractConverter<org.springframework.messaging.Message<PointOfServiceModel>,Business>
-
- de.hybris.platform.acceleratorservices.dataexport.googlelocal.converter.PosConverter
-
- All Implemented Interfaces:
Populator<org.springframework.messaging.Message<PointOfServiceModel>,Business>,Converter<org.springframework.messaging.Message<PointOfServiceModel>,Business>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.core.convert.converter.Converter<org.springframework.messaging.Message<PointOfServiceModel>,Business>
public class PosConverter extends AbstractConverter<org.springframework.messaging.Message<PointOfServiceModel>,Business>
Converter forPointOfServiceModel.
-
-
Field Summary
Fields Modifier and Type Field Description static intFIRST_SPLIT_INDEXstatic intSECOND_SPLIT_INDEX
-
Constructor Summary
Constructors Constructor Description PosConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BusinesscreateTarget()protected java.lang.StringgenerateOpeningHours(java.util.Collection<OpeningDayModel> openingDateModels)generate a string that represents the opening times in the format: 2:10:00:18:00,3:10:00:18:00,4:10:00:18:00,5:10:00:18:00,6:10:00:18:00,7:12:00:20:00protected java.lang.StringgeneratePhoneNumber(java.lang.String phone1)Hyphens are recommended; however, parentheses are also accepted (xxx-xxx-xxxx or (xxx) xxx-xxxx).protected java.lang.StringgetBusinessCategories()protected java.util.Map<java.lang.String,java.lang.String>getInternationalToInitialDigitCode()voidpopulate(org.springframework.messaging.Message<PointOfServiceModel> message, Business business)Override this method to populate the target from the sourcevoidsetBusinessCategories(java.lang.String businessCategories)voidsetInternationalToInitialDigitCode(java.util.Map<java.lang.String,java.lang.String> internationalToInitialDigitCode)-
Methods inherited from class de.hybris.platform.converters.impl.AbstractConverter
afterPropertiesSet, convert, convert, createFromClass, getMyBeanName, setBeanName, setTargetClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLogger
-
-
-
-
Field Detail
-
FIRST_SPLIT_INDEX
public static final int FIRST_SPLIT_INDEX
- See Also:
- Constant Field Values
-
SECOND_SPLIT_INDEX
public static final int SECOND_SPLIT_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBusinessCategories
protected java.lang.String getBusinessCategories()
-
setBusinessCategories
public void setBusinessCategories(java.lang.String businessCategories)
-
getInternationalToInitialDigitCode
protected java.util.Map<java.lang.String,java.lang.String> getInternationalToInitialDigitCode()
-
setInternationalToInitialDigitCode
public void setInternationalToInitialDigitCode(java.util.Map<java.lang.String,java.lang.String> internationalToInitialDigitCode)
-
generateOpeningHours
protected java.lang.String generateOpeningHours(java.util.Collection<OpeningDayModel> openingDateModels)
generate a string that represents the opening times in the format: 2:10:00:18:00,3:10:00:18:00,4:10:00:18:00,5:10:00:18:00,6:10:00:18:00,7:12:00:20:00
-
generatePhoneNumber
protected java.lang.String generatePhoneNumber(java.lang.String phone1)
Hyphens are recommended; however, parentheses are also accepted (xxx-xxx-xxxx or (xxx) xxx-xxxx).
-
createTarget
protected Business createTarget()
- Overrides:
createTargetin classAbstractConverter<org.springframework.messaging.Message<PointOfServiceModel>,Business>
-
populate
public void populate(org.springframework.messaging.Message<PointOfServiceModel> message, Business business)
Description copied from class:AbstractConverterOverride this method to populate the target from the source- Specified by:
populatein interfacePopulator<org.springframework.messaging.Message<PointOfServiceModel>,Business>- Specified by:
populatein classAbstractConverter<org.springframework.messaging.Message<PointOfServiceModel>,Business>- Parameters:
message- the source instancebusiness- the target instance to fill- See Also:
AbstractConverter.setTargetClass(Class)
-
-