Class CelumMediaEditorBase


  • public class CelumMediaEditorBase
    extends java.lang.Object
    The Class CelumMediaEditorBase. Base class containing all required methods to build celum aware editor.
    • Field Detail

      • CELUM_MEDIA_FORMAT_KEY

        public static final java.lang.String CELUM_MEDIA_FORMAT_KEY
        See Also:
        Constant Field Values
      • OPEN_CELUM_EDITOR_IMG

        public static final java.lang.String OPEN_CELUM_EDITOR_IMG
        See Also:
        Constant Field Values
      • OPEN_CELUM_EDITOR_NOSYNC_IMG

        public static final java.lang.String OPEN_CELUM_EDITOR_NOSYNC_IMG
        See Also:
        Constant Field Values
      • EDITOR_CONTEXT_OBJECT

        public static final java.lang.String EDITOR_CONTEXT_OBJECT
        See Also:
        Constant Field Values
      • BACK_TO_HYBRIS_SCRIPT

        public static final java.lang.String BACK_TO_HYBRIS_SCRIPT
        See Also:
        Constant Field Values
      • CATALOG_VERSION_PK

        public static final java.lang.String CATALOG_VERSION_PK
        See Also:
        Constant Field Values
    • Constructor Detail

      • CelumMediaEditorBase

        public CelumMediaEditorBase​(java.util.Map<java.lang.String,​? extends java.lang.Object> parameters)
    • Method Detail

      • getLink

        protected java.lang.String getLink​(java.util.Map<java.lang.String,​? extends java.lang.Object> parameters,
                                           boolean isEditable)
                                    throws CelumNotAvailableException,
                                           java.lang.IllegalStateException
        Gets the link to the celum system.
        Parameters:
        parameters - the parameters
        isEditable - the is editable
        Returns:
        the link
        Throws:
        CelumNotAvailableException - the celum not available exception
        java.lang.IllegalStateException - the illegal state exception
      • getCockpitCelumDelegate

        protected DefaultCockpitCelumDelegate getCockpitCelumDelegate()
        Gets the cockpit celum delegate.
        Returns:
        the cockpit celum delegate
      • getAssociatedItem

        public TypedObject getAssociatedItem()
      • getCatalogVersionPK

        public java.lang.String getCatalogVersionPK()
        Gets the catalog version PK.
        Returns:
        the catalog version PK
      • getCelumParameters

        public java.util.Map<java.lang.String,​java.lang.String> getCelumParameters​(java.util.Map<java.lang.String,​? extends java.lang.Object> parameters)
                                                                                  throws java.lang.IllegalStateException,
                                                                                         CelumNotAvailableException
        Gets the celum parameters.
        Parameters:
        parameters - the parameters
        Returns:
        the celum parameters
        Throws:
        java.lang.IllegalStateException - the illegal state exception
        CelumNotAvailableException - the celum not available exception
      • isSynchronized

        protected boolean isSynchronized​(java.lang.Object editorValue)
                                  throws CelumNotAvailableException
        Checks if is synchronized.
        Parameters:
        editorValue - the editor value
        Returns:
        true, if is synchronized
        Throws:
        CelumNotAvailableException - the celum not available exception
      • renderCelumButton

        public org.zkoss.zul.Hbox renderCelumButton​(org.zkoss.zk.ui.HtmlBasedComponent superView,
                                                    java.lang.String link,
                                                    boolean isCelumAlive,
                                                    boolean isEditable)
        Render celum button.
        Parameters:
        superView - the super view
        link - the link
        isCelumAlive - the is celum alive
        isEditable - the is editable
        Returns:
        the hbox
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getParameters()
        Returns:
        the parameters