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 for
PointOfServiceModel.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Businessprotected StringgenerateOpeningHours(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 StringgeneratePhoneNumber(String phone1) Hyphens are recommended; however, parentheses are also accepted (xxx-xxx-xxxx or (xxx) xxx-xxxx).protected Stringvoidpopulate(org.springframework.messaging.Message<PointOfServiceModel> message, Business business) Override this method to populate the target from the sourcevoidsetBusinessCategories(String businessCategories) voidsetInternationalToInitialDigitCode(Map<String, String> internationalToInitialDigitCode) Methods inherited from class de.hybris.platform.converters.impl.AbstractConverter
afterPropertiesSet, convert, convert, createFromClass, getMyBeanName, setBeanName, setTargetClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Field Details
-
FIRST_SPLIT_INDEX
public static final int FIRST_SPLIT_INDEX- See Also:
-
SECOND_SPLIT_INDEX
public static final int SECOND_SPLIT_INDEX- See Also:
-
-
Constructor Details
-
PosConverter
public PosConverter()
-
-
Method Details
-
getBusinessCategories
-
setBusinessCategories
-
getInternationalToInitialDigitCode
-
setInternationalToInitialDigitCode
-
generateOpeningHours
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
Hyphens are recommended; however, parentheses are also accepted (xxx-xxx-xxxx or (xxx) xxx-xxxx). -
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:
-