Class DefaultRelationBetweenComponentsService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
-
- de.hybris.platform.cms2.servicelayer.services.impl.DefaultRelationBetweenComponentsService
-
- All Implemented Interfaces:
RelationBetweenComponentsService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultRelationBetweenComponentsService extends AbstractCMSService implements RelationBetweenComponentsService
- 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.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITE
-
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 DefaultRelationBetweenComponentsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMSAdminContentSlotServicegetCmsAdminContentSlotService()TypeServicegetTypeService()voidmaintainRelationBetweenComponentsOnComponent(AbstractCMSComponentModel parent)This method will maintain relation between the parent CMS Component and it's children CMS Component by retrieving all the attributes and attributeValue of a parent CMS Component, if a attribute type is a CMS Component or Collection of CMS Components, it should remove the old relation on parent and children and then build the new relation between of parent CMS Component and it's child CMS ComponentsvoidmaintainRelationBetweenComponentsOnPage(AbstractPageModel pageModel)To maintain relation between every parent component and it's children components on pagevoidmaintainRelationBetweenComponentsOnSlot(ContentSlotModel slotModel)To maintain relation between every parent component and it's children components on the slotvoidremoveRelationBetweenComponentsOnModel(AbstractCMSComponentModel model)To remove relations on model's parents and childrenAbstractCMSComponentModel.voidsetCmsAdminContentSlotService(CMSAdminContentSlotService cmsAdminContentSlotService)voidsetTypeService(TypeService typeService)-
Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserService
-
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
-
maintainRelationBetweenComponentsOnComponent
public void maintainRelationBetweenComponentsOnComponent(AbstractCMSComponentModel parent)
Description copied from interface:RelationBetweenComponentsServiceThis method will maintain relation between the parent CMS Component and it's children CMS Component by retrieving all the attributes and attributeValue of a parent CMS Component, if a attribute type is a CMS Component or Collection of CMS Components, it should remove the old relation on parent and children and then build the new relation between of parent CMS Component and it's child CMS Components- Specified by:
maintainRelationBetweenComponentsOnComponentin interfaceRelationBetweenComponentsService- Parameters:
parent- - the CMS Component.
-
maintainRelationBetweenComponentsOnPage
public void maintainRelationBetweenComponentsOnPage(AbstractPageModel pageModel)
Description copied from interface:RelationBetweenComponentsServiceTo maintain relation between every parent component and it's children components on page- Specified by:
maintainRelationBetweenComponentsOnPagein interfaceRelationBetweenComponentsService- Parameters:
pageModel- - the slot
-
maintainRelationBetweenComponentsOnSlot
public void maintainRelationBetweenComponentsOnSlot(ContentSlotModel slotModel)
Description copied from interface:RelationBetweenComponentsServiceTo maintain relation between every parent component and it's children components on the slot- Specified by:
maintainRelationBetweenComponentsOnSlotin interfaceRelationBetweenComponentsService- Parameters:
slotModel- - the slot
-
removeRelationBetweenComponentsOnModel
public void removeRelationBetweenComponentsOnModel(AbstractCMSComponentModel model)
Description copied from interface:RelationBetweenComponentsServiceTo remove relations on model's parents and childrenAbstractCMSComponentModel.- Specified by:
removeRelationBetweenComponentsOnModelin interfaceRelationBetweenComponentsService- Parameters:
model- - the cms component
-
getTypeService
public TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
getCmsAdminContentSlotService
public CMSAdminContentSlotService getCmsAdminContentSlotService()
-
setCmsAdminContentSlotService
public void setCmsAdminContentSlotService(CMSAdminContentSlotService cmsAdminContentSlotService)
-
-