Class CelumMediaEditorBase
java.lang.Object
de.hybris.platform.cockpit.model.referenceeditor.celum.impl.CelumMediaEditorBase
The Class CelumMediaEditorBase. Base class containing all required methods to build celum aware editor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the catalog version PK.getCelumParameters(Map<String, ? extends Object> parameters) Gets the celum parameters.protected DefaultCockpitCelumDelegateGets the cockpit celum delegate.protected StringGets the link to the celum system.protected booleanisSynchronized(Object editorValue) Checks if is synchronized.org.zkoss.zul.HboxrenderCelumButton(org.zkoss.zk.ui.HtmlBasedComponent superView, String link, boolean isCelumAlive, boolean isEditable) Render celum button.
-
Field Details
-
CELUM_MEDIA_FORMAT_KEY
- See Also:
-
OPEN_CELUM_EDITOR_IMG
- See Also:
-
OPEN_CELUM_EDITOR_NOSYNC_IMG
- See Also:
-
EDITOR_CONTEXT_OBJECT
- See Also:
-
CONTEXT_PATH
- See Also:
-
BACK_TO_HYBRIS_SCRIPT
- See Also:
-
CATALOG_VERSION_PK
- See Also:
-
EVENTS_KEY
- See Also:
-
-
Constructor Details
-
CelumMediaEditorBase
-
-
Method Details
-
getLink
protected String getLink(Map<String, ? extends Object> parameters, boolean isEditable) throws CelumNotAvailableException, IllegalStateExceptionGets the link to the celum system.- Parameters:
parameters- the parametersisEditable- the is editable- Returns:
- the link
- Throws:
CelumNotAvailableException- the celum not available exceptionIllegalStateException- the illegal state exception
-
getCockpitCelumDelegate
Gets the cockpit celum delegate.- Returns:
- the cockpit celum delegate
-
getAssociatedItem
-
getCatalogVersionPK
Gets the catalog version PK.- Returns:
- the catalog version PK
-
getCelumParameters
public Map<String,String> getCelumParameters(Map<String, ? extends Object> parameters) throws IllegalStateException, CelumNotAvailableExceptionGets the celum parameters.- Parameters:
parameters- the parameters- Returns:
- the celum parameters
- Throws:
IllegalStateException- the illegal state exceptionCelumNotAvailableException- the celum not available exception
-
isSynchronized
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, String link, boolean isCelumAlive, boolean isEditable) Render celum button.- Parameters:
superView- the super viewlink- the linkisCelumAlive- the is celum aliveisEditable- the is editable- Returns:
- the hbox
-
getParameters
- Returns:
- the parameters
-