Class DefaultPROSTravelBundleTemplateService
java.lang.Object
de.hybris.platform.configurablebundleservices.bundle.impl.DefaultBundleTemplateService
de.hybris.platform.travelservices.bundle.impl.DefaultTravelBundleTemplateService
de.hybris.platform.prosservices.services.impl.DefaultPROSTravelBundleTemplateService
- All Implemented Interfaces:
de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService,PROSTravelBundleTemplateService,TravelBundleTemplateService
public class DefaultPROSTravelBundleTemplateService
extends DefaultTravelBundleTemplateService
implements PROSTravelBundleTemplateService
Default implementation of
PROSTravelBundleTemplateService-
Field Summary
Fields inherited from class de.hybris.platform.travelservices.bundle.impl.DefaultTravelBundleTemplateService
DEFAULT_CATALOG_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBundleTemplateByCode(String fareBucketCode) Returns the bundle template for the given fare bucket codegetBundleTemplates(List<String> fareBucketCodes) Returns the list of available bundle template for the given fare bucket codesgetBundleTemplatesByTypeAndAPIUserAndShoppingReference(String bundleTypeCode, String apiUser, String shoppingFareReference) Gets all the bundle templates having the same bundle type code and fare product with same shoppingReference and apiUserprotected PROSTravelBundleTemplateDaobooleanisBundleTemplateFoundForBundleTypeCode(String bundleTypeCode) Check if the BundleTemplate model found for given bundleTypeCode.booleanisProsOrderEntryIncludedInBundleTemplate(AbstractOrderEntryModel orderEntryModel) Checks if the pros order entry is included in a bundle template.voidsetProsTravelBundleTemplateDao(PROSTravelBundleTemplateDao prosTravelBundleTemplateDao) Methods inherited from class de.hybris.platform.travelservices.bundle.impl.DefaultTravelBundleTemplateService
getBookingService, getBundleTemplateByCodeAndCatalogVersion, getBundleTemplateIdFromOrder, getBundleTemplateModelByEntryGroup, getBundleTemplates, getBundleTemplates, getBundleTemplates, getCatalogVersionService, getDefaultBundleTemplates, getTravelBundleTemplateDao, setBookingService, setCatalogVersionService, setTravelBundleTemplateDaoMethods inherited from class de.hybris.platform.configurablebundleservices.bundle.impl.DefaultBundleTemplateService
addGroupNumbers, addTreeToOrder, createBundleTree, createEntryGroupTree, getAllApprovedRootBundleTemplates, getAllRootBundleTemplates, getBundleComponentEditableChecker, getBundleEntryGroup, getBundleEntryGroup, getBundleTemplateDao, getBundleTemplateForCode, getBundleTemplateForCode, getBundleTemplateName, getBundleTemplatesByProduct, getEntryGroupService, getLeafComponents, getModelService, getPositionInParent, getPreviousBundleTemplate, getRelativeBundleTemplate, getRootBundleTemplate, getSubsequentBundleTemplate, isAutoPickComponent, isBundleTemplateUsed, setBundleComponentEditableChecker, setBundleTemplateDao, setEntryGroupService, setModelServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService
createBundleTree, getAllApprovedRootBundleTemplates, getAllRootBundleTemplates, getBundleEntryGroup, getBundleEntryGroup, getBundleTemplateForCode, getBundleTemplateForCode, getBundleTemplateName, getBundleTemplatesByProduct, getLeafComponents, getPositionInParent, getPreviousBundleTemplate, getRelativeBundleTemplate, getRootBundleTemplate, getSubsequentBundleTemplate, isAutoPickComponent, isBundleTemplateUsedMethods inherited from interface de.hybris.platform.travelservices.bundle.TravelBundleTemplateService
getBundleTemplateByCodeAndCatalogVersion, getBundleTemplateIdFromOrder, getBundleTemplateModelByEntryGroup, getBundleTemplates, getBundleTemplates, getBundleTemplates, getDefaultBundleTemplates
-
Constructor Details
-
DefaultPROSTravelBundleTemplateService
public DefaultPROSTravelBundleTemplateService()
-
-
Method Details
-
getBundleTemplates
Description copied from interface:PROSTravelBundleTemplateServiceReturns the list of available bundle template for the given fare bucket codes- Specified by:
getBundleTemplatesin interfacePROSTravelBundleTemplateService- Parameters:
fareBucketCodes- as a list of fare bucket codes to be use to retrieve the list of the bundle templates- Returns:
- a list of BundleTemplate representing the list of bundle templates that contain the Pros fare product with the given fareBucketCodes
-
getBundleTemplateByCode
Description copied from interface:PROSTravelBundleTemplateServiceReturns the bundle template for the given fare bucket code- Specified by:
getBundleTemplateByCodein interfacePROSTravelBundleTemplateService- Parameters:
fareBucketCode- a fare bucket code to be use to retrieve the bundle template- Returns:
- a BundleTemplate representing the bundle template that contain the Pros fare product with the given fareBucketCode
-
getProsTravelBundleTemplateDao
- Returns:
- the prosTravelBundleTemplateDao
-
setProsTravelBundleTemplateDao
- Parameters:
prosTravelBundleTemplateDao- the prosTravelBundleTemplateDao to set
-
isProsOrderEntryIncludedInBundleTemplate
Checks if the pros order entry is included in a bundle template.- Specified by:
isProsOrderEntryIncludedInBundleTemplatein interfacePROSTravelBundleTemplateService- Parameters:
orderEntryModel- the order entry- Returns:
- true if the product belongs to a pros bundle template.
-
isBundleTemplateFoundForBundleTypeCode
Description copied from interface:PROSTravelBundleTemplateServiceCheck if the BundleTemplate model found for given bundleTypeCode.- Specified by:
isBundleTemplateFoundForBundleTypeCodein interfacePROSTravelBundleTemplateService- Parameters:
bundleTypeCode- the bundleTypeCode- Returns:
- true if bundle template found for given bundleTypeCode
-
getBundleTemplatesByTypeAndAPIUserAndShoppingReference
public List<BundleTemplateModel> getBundleTemplatesByTypeAndAPIUserAndShoppingReference(String bundleTypeCode, String apiUser, String shoppingFareReference) Description copied from interface:PROSTravelBundleTemplateServiceGets all the bundle templates having the same bundle type code and fare product with same shoppingReference and apiUser- Specified by:
getBundleTemplatesByTypeAndAPIUserAndShoppingReferencein interfacePROSTravelBundleTemplateService- Parameters:
bundleTypeCode- the bundle type codeapiUser- the api usershoppingFareReference- the shopping fare reference- Returns:
- a list of
BundleTemplateModel
-