Class DefaultBundleNavigationService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.configurablebundlecockpits.servicelayer.services.impl.DefaultBundleNavigationService
- All Implemented Interfaces:
BundleNavigationService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultBundleNavigationService
extends AbstractBusinessService
implements BundleNavigationService
Default implementation of
BundleNavigationService interface.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BundleTemplateModel bundleTemplateModel, ProductModel productModel) Associates theProductModelto theBundleTemplateModel, i.e.voidadd(BundleTemplateModel bundleTemplateModel, Collection<ProductModel> productModels) Associates the list ofProductModels to theBundleTemplateModel, i.e.protected BundleTemplateServiceReturns all root navigation nodes for given catalog version.voidmove(BundleTemplateModel sourceBundleTemplateModel, ProductModel productModel, BundleTemplateModel targetBundleTemplateModel) voidmove(BundleTemplateModel bundleTemplateModel, ProductModel sourceEntry, ProductModel targetEntry) Moves the order within aBundleTemplateModelproducts list.voidremove(BundleTemplateModel bundleTemplateModel, ProductModel productModel) Removes theProductModelassociation from theBundleTemplateModel.voidsetBundleTemplateService(BundleTemplateService bundleTemplateService) Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultBundleNavigationService
public DefaultBundleNavigationService()
-
-
Method Details
-
add
Description copied from interface:BundleNavigationServiceAssociates the list ofProductModels to theBundleTemplateModel, i.e. adds it to the end of the products list.- Specified by:
addin interfaceBundleNavigationService- Parameters:
bundleTemplateModel- theBundleTemplateModelto which theProductModelis association withproductModels- the list ofProductModels which should be associated with theBundleTemplateModel
-
add
Description copied from interface:BundleNavigationServiceAssociates theProductModelto theBundleTemplateModel, i.e. adds it to the end of the products list.- Specified by:
addin interfaceBundleNavigationService- Parameters:
bundleTemplateModel- theBundleTemplateModelto which theProductModelis association withproductModel- theProductModelwhich should be associated with theBundleTemplateModel
-
remove
Description copied from interface:BundleNavigationServiceRemoves theProductModelassociation from theBundleTemplateModel.- Specified by:
removein interfaceBundleNavigationService- Parameters:
bundleTemplateModel- theBundleTemplateModelto remove theProductModelassociation from.productModel- theProductModelwhich should be removed from theBundleTemplateModelassociation.
-
move
public void move(BundleTemplateModel bundleTemplateModel, ProductModel sourceEntry, ProductModel targetEntry) Description copied from interface:BundleNavigationServiceMoves the order within aBundleTemplateModelproducts list. The sourceProductModelis moved to the place of the targetProductModel.- Specified by:
movein interfaceBundleNavigationService- Parameters:
bundleTemplateModel- theBundleTemplateModelin which the products list is modifiedsourceEntry- the source position of the move, this product is removed from this positiontargetEntry- the target position, so the source product is moved to the position of the target product
-
move
public void move(BundleTemplateModel sourceBundleTemplateModel, ProductModel productModel, BundleTemplateModel targetBundleTemplateModel) Description copied from interface:BundleNavigationServiceMoves aProductModelfrom a sourceBundleTemplateModelto a targetBundleTemplateModel. TheProductModelis removed from the sourceBundleTemplateModeland added to the targetBundleTemplateModeli.e. at the end of the list of associated products.- Specified by:
movein interfaceBundleNavigationService- Parameters:
sourceBundleTemplateModel- the sourceBundleTemplateModelfrom which theProductModelis removedproductModel- theProductModelwhich is movedtargetBundleTemplateModel- the targetBundleTemplateModelto which theProductModelis moved
-
getBundleTemplateService
-
setBundleTemplateService