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,java.io.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 ofBundleNavigationServiceinterface.- See Also:
- Serialized Form
-
-
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, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultBundleNavigationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(BundleTemplateModel bundleTemplateModel, ProductModel productModel)Associates theProductModelto theBundleTemplateModel, i.e.voidadd(BundleTemplateModel bundleTemplateModel, java.util.Collection<ProductModel> productModels)Associates the list ofProductModels to theBundleTemplateModel, i.e.protected BundleTemplateServicegetBundleTemplateService()java.util.List<BundleTemplateModel>getRootNavigationNodes(CatalogVersionModel catVer)Returns 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, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getRootNavigationNodes
public java.util.List<BundleTemplateModel> getRootNavigationNodes(CatalogVersionModel catVer)
Description copied from interface:BundleNavigationServiceReturns all root navigation nodes for given catalog version.- Specified by:
getRootNavigationNodesin interfaceBundleNavigationService- Parameters:
catVer- catalog version- Returns:
- root navigation nodes that have been found
-
add
public void add(BundleTemplateModel bundleTemplateModel, java.util.Collection<ProductModel> productModels)
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
public void add(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
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
public void remove(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
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
protected BundleTemplateService getBundleTemplateService()
-
setBundleTemplateService
public void setBundleTemplateService(BundleTemplateService bundleTemplateService)
-
-