Class CMSContentEditorInjector

java.lang.Object
de.hybris.platform.cmscockpit.components.contentbrowser.CMSContentEditorInjector
All Implemented Interfaces:
ComponentInjector

public class CMSContentEditorInjector extends Object implements ComponentInjector
Creates and injects CMS Cockpit ZK components for the dynamic creation of template based content editors.

Note: Currently changes made to nested referenced items are automatically persisted, no matter the value of the autoPersist flag. The autoPersist flag only concerns attributes of the opened content element.

  • Field Details

  • Constructor Details

    • CMSContentEditorInjector

      public CMSContentEditorInjector()
  • Method Details

    • setConfig

      public void setConfig(ContentEditorConfiguration config)
    • setItem

      public void setItem(TypedObject item)
    • getItem

      public TypedObject getItem()
    • setValueContainer

      public void setValueContainer(ObjectValueContainer valueContainer)
    • getValueContainer

      public ObjectValueContainer getValueContainer()
    • setAutoPersist

      public void setAutoPersist(boolean autoPersist)
    • isAutoPersist

      public boolean isAutoPersist()
    • setGroupCollections

      public void setGroupCollections(boolean groupCollections)
    • isGroupCollections

      public boolean isGroupCollections()
    • setHideReadOnly

      public void setHideReadOnly(boolean hideReadOnly)
    • isHideReadOnly

      public boolean isHideReadOnly()
    • setHideEmpty

      public void setHideEmpty(boolean hideEmpty)
    • isHideEmpty

      public boolean isHideEmpty()
    • isAddEnabled

      public boolean isAddEnabled()
    • setAddEnabled

      public void setAddEnabled(boolean addEnabled)
    • isCreateEnabled

      public boolean isCreateEnabled()
    • setCreateEnabled

      public void setCreateEnabled(boolean createEnabled)
    • getRootComponent

      public org.zkoss.zk.ui.HtmlBasedComponent getRootComponent()
    • setRootComponent

      public void setRootComponent(org.zkoss.zk.ui.HtmlBasedComponent rootComponent)
    • injectComponent

      public void injectComponent(org.zkoss.zk.ui.HtmlBasedComponent parent, Map<String,? extends Object> params)
      Specified by:
      injectComponent in interface ComponentInjector
    • injectGeneralGroup

      protected void injectGeneralGroup(org.zkoss.zk.ui.HtmlBasedComponent parent, Map<String,? extends Object> params)
    • isGeneralEmpty

      protected boolean isGeneralEmpty()
    • injectProperty

      protected void injectProperty(org.zkoss.zk.ui.HtmlBasedComponent parent, Map<String,? extends Object> params)
    • injectList

      protected void injectList(org.zkoss.zk.ui.HtmlBasedComponent parent, Map<String,? extends Object> params)
    • openCreateNewReferenceWizard

      protected void openCreateNewReferenceWizard(org.zkoss.zk.ui.Component parent, ObjectTemplate template, TypedObject item, PropertyDescriptor propertyDescriptor, WizardConfiguration wizardConfiguration)
    • injectReference

      protected void injectReference(TypedObject referenceValue, org.zkoss.zk.ui.HtmlBasedComponent parent, List<org.zkoss.zk.ui.HtmlBasedComponent> captionComponents)
    • getValue

      protected Object getValue(PropertyDescriptor propDescr)
    • getValue

      protected Object getValue(PropertyDescriptor propDescr, ObjectValueContainer valueContainer)
    • setValue

      protected void setValue(PropertyDescriptor propDescr, Object value) throws ValueHandlerException
      Throws:
      ValueHandlerException
    • setValue

      protected void setValue(PropertyDescriptor propDescr, Object value, boolean persist) throws ValueHandlerException
      Throws:
      ValueHandlerException
    • setValue

      protected void setValue(PropertyDescriptor propDescr, Object value, boolean persist, Object eventSource) throws ValueHandlerException
      Throws:
      ValueHandlerException
    • getTypeService

      protected TypeService getTypeService()
    • getUiAccessRightService

      protected UIAccessRightService getUiAccessRightService()
    • getCMSAdminComponentService

      protected CMSAdminComponentService getCMSAdminComponentService()
    • getCmsAdminPerspective

      public CMSAdminSiteService getCmsAdminPerspective()
    • setLocationInfoObject

      public void setLocationInfoObject(Object locationInfoObject)
    • getLocationInfoObject

      public Object getLocationInfoObject()
    • getConfigurationService

      public UIConfigurationService getConfigurationService()
    • getPropertyListComparator

      protected Comparator<PropertyDescriptor> getPropertyListComparator()
    • setReferenceInjector

      public void setReferenceInjector(ReferenceInjector referenceInjector)
    • getReferenceInjector

      public ReferenceInjector getReferenceInjector()
    • getConfig

      public ContentEditorConfiguration getConfig()
    • setPropertyInjector

      public void setPropertyInjector(PropertyInjector propertyInjector)
    • getPropertyInjector

      public PropertyInjector getPropertyInjector()
    • loadMissingValues

      protected void loadMissingValues(Map<String,? extends Object> params)
      Method checks whether we would display indirect property - if so then we have to refresh current ObjectValueContainer and load this property there.

      Note:
      When we would display e.g. BannerComponent.page.label - we have to check whether this property possess corresponding ObjectValueHandler within current ObjectValueContainer if no we have to load it.

      Parameters:
      params - current creation parameter
      See Also:
    • getLoadLanguages

      protected Set<String> getLoadLanguages()
    • getValueService

      public ValueService getValueService()