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,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultRelationBetweenComponentsService
extends AbstractCMSService
implements RelationBetweenComponentsService
Default implement of RelationBetweenComponentsService to maintain relation between components.
- 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.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITEFields 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 TypeMethodDescriptionvoidThis 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 an 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 ComponentsvoidTo maintain relation between every parent component and it's children components on pagevoidTo maintain relation between every parent component and it's children components on the slotvoidTo 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, setUserServiceMethods 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
-
DefaultRelationBetweenComponentsService
public DefaultRelationBetweenComponentsService()
-
-
Method Details
-
maintainRelationBetweenComponentsOnComponent
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 an 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
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
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
Description copied from interface:RelationBetweenComponentsServiceTo remove relations on model's parents and childrenAbstractCMSComponentModel.- Specified by:
removeRelationBetweenComponentsOnModelin interfaceRelationBetweenComponentsService- Parameters:
model- - the cms component
-
getTypeService
-
setTypeService
-
getCmsAdminContentSlotService
-
setCmsAdminContentSlotService
-