Class CelumEventHandler
java.lang.Object
de.hybris.platform.cockpit.session.impl.AbstractRequestEventHandler
de.hybris.platform.cockpit.session.impl.CelumEventHandler
- All Implemented Interfaces:
RequestEventHandler
Handles request events triggered by MAM/Celum.
Based on the HTTP request parameters, this
RequestEventHandler extracts the following information from the
request: Media container, media format, item and item property. It then assigns a media from the media container with
the specified media format, to the property of the specified item.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class de.hybris.platform.cockpit.session.impl.AbstractRequestEventHandler
DELIMITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CockpitCelumDelegateprotected TypedObjectprotected TypedObjectprotected PropertyDescriptorgetPropertyDescriptor(Map<String, String[]> params) voidhandleEvent(UICockpitPerspective perspective, Map<String, String[]> params) Called by the activeRequestHandlerwhen a cockpit event is triggered for which thisRequestEventHandleris registered.voidsetCockpitTypeService(TypeService typeService) voidsetMediaService(MediaService mediaService) voidsetModelService(ModelService modelService) voidMethods inherited from class de.hybris.platform.cockpit.session.impl.AbstractRequestEventHandler
getParameter
-
Field Details
-
CELUM_CONTAINER_KEY
- See Also:
-
CELUM_ITEM_KEY
- See Also:
-
CELUM_PROP_QUALIFIER
- See Also:
-
CELUM_MEDIA_FORMAT
- See Also:
-
LANG_ISO_CODE
- See Also:
-
-
Constructor Details
-
CelumEventHandler
public CelumEventHandler()
-
-
Method Details
-
handleEvent
Description copied from interface:RequestEventHandlerCalled by the activeRequestHandlerwhen a cockpit event is triggered for which thisRequestEventHandleris registered.- Parameters:
perspective- the current perspective ornullif no perspective has been specifiedparams- HTTP request parameters
-
setPrefix
- Specified by:
setPrefixin interfaceRequestEventHandler- Overrides:
setPrefixin classAbstractRequestEventHandler
-
getItem
- Throws:
IllegalStateException
-
getMedia
- Throws:
IllegalStateException
-
getCockpitCelumDelegate
-
getPropertyDescriptor
protected PropertyDescriptor getPropertyDescriptor(Map<String, String[]> params) throws IllegalStateException- Throws:
IllegalStateException
-
getPrefix
- Specified by:
getPrefixin interfaceRequestEventHandler- Overrides:
getPrefixin classAbstractRequestEventHandler
-
setMediaService
-
setModelService
-
setCockpitTypeService
-