Class PackageDataConverter
java.lang.Object
ma.glasnost.orika.CustomConverter<PackageData,Property>
de.hybris.platform.coreairlinepackagesocc.mapping.converters.PackageDataConverter
- All Implemented Interfaces:
ma.glasnost.orika.Converter<PackageData,,Property> ma.glasnost.orika.MappedTypePair<PackageData,Property>
This is to populate Search Response for the package converting the property data to the property response
-
Field Summary
Fields inherited from class ma.glasnost.orika.CustomConverter
destinationType, mapperFacade, sourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(PackageData propertyData, ma.glasnost.orika.metadata.Type<? extends Property> type, ma.glasnost.orika.MappingContext mappingContext) protected PricecreatePriceData(PriceData priceData) Create Price Dataprotected voidpopulateAddress(PropertyData source, Property target) Populates address to thePropertyfromPropertyDataprotected voidpopulateAwards(PropertyData source, Property target) Populates awards to thePropertyfromPropertyDataprotected ConfiguredRatepopulateConfiguredRate(RateRangeData rateRange) Populate configured rateprotected voidpopulateCountry(AddressData source, Address target) Populates country to theAddressfromAddressDataprotected voidpopulateImages(PropertyData source, Property target) Populates images to thePropertyfromPropertyDataprotected voidpopulateRegion(AddressData source, Address target) Populates region to theAddressfromAddressDataMethods inherited from class ma.glasnost.orika.CustomConverter
canConvert, equals, getAType, getBType, hashCode, setMapperFacade, toString
-
Constructor Details
-
PackageDataConverter
public PackageDataConverter()
-
-
Method Details
-
convert
public Property convert(PackageData propertyData, ma.glasnost.orika.metadata.Type<? extends Property> type, ma.glasnost.orika.MappingContext mappingContext) -
populateConfiguredRate
Populate configured rate- Parameters:
rateRange-- Returns:
- configured rate
-
createPriceData
Create Price Data- Parameters:
priceData- price data- Returns:
-
populateImages
Populates images to thePropertyfromPropertyData- Parameters:
source- the source objecttarget- the target to fill
-
populateAddress
Populates address to thePropertyfromPropertyData- Parameters:
source- the source objecttarget- the target to fill
-
populateRegion
Populates region to theAddressfromAddressData- Parameters:
source- the source objecttarget- the target to fill
-
populateCountry
Populates country to theAddressfromAddressData- Parameters:
source- the source objecttarget- the target to fill
-
populateAwards
Populates awards to thePropertyfromPropertyData- Parameters:
source- the source objecttarget- the target to fill
-