Interface RelationBetweenComponentsService

All Known Implementing Classes:
DefaultRelationBetweenComponentsService

public interface RelationBetweenComponentsService
service to maintain relations between components
  • Method Details

    • maintainRelationBetweenComponentsOnComponent

      void maintainRelationBetweenComponentsOnComponent(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 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
      Parameters:
      parent - - the CMS Component.
    • maintainRelationBetweenComponentsOnPage

      void maintainRelationBetweenComponentsOnPage(AbstractPageModel pageModel)
      To maintain relation between every parent component and it's children components on page
      Parameters:
      pageModel - - the slot
    • maintainRelationBetweenComponentsOnSlot

      void maintainRelationBetweenComponentsOnSlot(ContentSlotModel slotModel)
      To maintain relation between every parent component and it's children components on the slot
      Parameters:
      slotModel - - the slot
    • removeRelationBetweenComponentsOnModel

      void removeRelationBetweenComponentsOnModel(AbstractCMSComponentModel model)
      To remove relations on model's parents and children AbstractCMSComponentModel.
      Parameters:
      model - - the cms component