Class PackageSearchResponseDataReferenceConverter
java.lang.Object
ma.glasnost.orika.CustomConverter<PackageSearchResponseData,DataReferences>
de.hybris.platform.coreairlinepackagesocc.mapping.converters.PackageSearchResponseDataReferenceConverter
- All Implemented Interfaces:
ma.glasnost.orika.Converter<PackageSearchResponseData,,DataReferences> ma.glasnost.orika.MappedTypePair<PackageSearchResponseData,DataReferences>
public class PackageSearchResponseDataReferenceConverter
extends ma.glasnost.orika.CustomConverter<PackageSearchResponseData,DataReferences>
This is to populate the data reference in the Search Response for the packages.
-
Field Summary
Fields inherited from class ma.glasnost.orika.CustomConverter
destinationType, mapperFacade, sourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(PackageSearchResponseData searchResponse, ma.glasnost.orika.metadata.Type<? extends DataReferences> type, ma.glasnost.orika.MappingContext mappingContext) protected voidpopulateAmenities(List<Amenity> amenityList, PropertyData propertyData) Populate the amenitiesprotected voidpopulateBrands(List<Brand> brandList, PropertyData propertyData) Populate the brandsprotected voidpopulateChainDetails(List<Chain> chainList, PropertyData propertyData) Populate chain detailsprotected voidpopulateDataReferenceDetails(List<PropertyData> propertyDataList, List<Amenity> amenityList, List<Brand> brandList, List<Location> locationList, List<Chain> chainList) Populate amenitiesprotected voidpopulateLocationDetails(List<Location> locationList, PropertyData propertyData) Populate Location detailsMethods inherited from class ma.glasnost.orika.CustomConverter
canConvert, equals, getAType, getBType, hashCode, setMapperFacade, toString
-
Constructor Details
-
PackageSearchResponseDataReferenceConverter
public PackageSearchResponseDataReferenceConverter()
-
-
Method Details
-
convert
public DataReferences convert(PackageSearchResponseData searchResponse, ma.glasnost.orika.metadata.Type<? extends DataReferences> type, ma.glasnost.orika.MappingContext mappingContext) -
populateDataReferenceDetails
protected void populateDataReferenceDetails(List<PropertyData> propertyDataList, List<Amenity> amenityList, List<Brand> brandList, List<Location> locationList, List<Chain> chainList) Populate amenities- Parameters:
propertyDataList-
-
populateChainDetails
Populate chain details- Parameters:
chainList- chain ListpropertyData- property data
-
populateLocationDetails
Populate Location details- Parameters:
locationList- location listpropertyData- property data
-
populateBrands
Populate the brands- Parameters:
brandList- brand listpropertyData- property data
-
populateAmenities
Populate the amenities- Parameters:
amenityList- amenity listpropertyData- property data
-