Class CelumEventHandler
- java.lang.Object
-
- de.hybris.platform.cockpit.session.impl.AbstractRequestEventHandler
-
- de.hybris.platform.cockpit.session.impl.CelumEventHandler
-
- All Implemented Interfaces:
RequestEventHandler
public class CelumEventHandler extends AbstractRequestEventHandler
Handles request events triggered by MAM/Celum. Based on the HTTP request parameters, thisRequestEventHandlerextracts 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
Fields Modifier and Type Field Description static java.lang.StringCELUM_CONTAINER_KEYstatic java.lang.StringCELUM_ITEM_KEYstatic java.lang.StringCELUM_MEDIA_FORMATstatic java.lang.StringCELUM_PROP_QUALIFIERstatic java.lang.StringLANG_ISO_CODE-
Fields inherited from class de.hybris.platform.cockpit.session.impl.AbstractRequestEventHandler
DELIMITER
-
-
Constructor Summary
Constructors Constructor Description CelumEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CockpitCelumDelegategetCockpitCelumDelegate()protected TypedObjectgetItem(java.util.Map<java.lang.String,java.lang.String[]> params)protected TypedObjectgetMedia(java.util.Map<java.lang.String,java.lang.String[]> params)java.lang.StringgetPrefix()protected PropertyDescriptorgetPropertyDescriptor(java.util.Map<java.lang.String,java.lang.String[]> params)voidhandleEvent(UICockpitPerspective perspective, java.util.Map<java.lang.String,java.lang.String[]> params)Called by the activeRequestHandlerwhen a cockpit event is triggered for which thisRequestEventHandleris registered.voidsetCockpitTypeService(TypeService typeService)voidsetMediaService(MediaService mediaService)voidsetModelService(ModelService modelService)voidsetPrefix(java.lang.String prefix)-
Methods inherited from class de.hybris.platform.cockpit.session.impl.AbstractRequestEventHandler
getParameter
-
-
-
-
Field Detail
-
CELUM_CONTAINER_KEY
public static final java.lang.String CELUM_CONTAINER_KEY
- See Also:
- Constant Field Values
-
CELUM_ITEM_KEY
public static final java.lang.String CELUM_ITEM_KEY
- See Also:
- Constant Field Values
-
CELUM_PROP_QUALIFIER
public static final java.lang.String CELUM_PROP_QUALIFIER
- See Also:
- Constant Field Values
-
CELUM_MEDIA_FORMAT
public static final java.lang.String CELUM_MEDIA_FORMAT
- See Also:
- Constant Field Values
-
LANG_ISO_CODE
public static final java.lang.String LANG_ISO_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleEvent
public void handleEvent(UICockpitPerspective perspective, java.util.Map<java.lang.String,java.lang.String[]> params)
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
public void setPrefix(java.lang.String prefix)
- Specified by:
setPrefixin interfaceRequestEventHandler- Overrides:
setPrefixin classAbstractRequestEventHandler
-
getItem
protected TypedObject getItem(java.util.Map<java.lang.String,java.lang.String[]> params) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
getMedia
protected TypedObject getMedia(java.util.Map<java.lang.String,java.lang.String[]> params) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
getCockpitCelumDelegate
protected CockpitCelumDelegate getCockpitCelumDelegate()
-
getPropertyDescriptor
protected PropertyDescriptor getPropertyDescriptor(java.util.Map<java.lang.String,java.lang.String[]> params) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefixin interfaceRequestEventHandler- Overrides:
getPrefixin classAbstractRequestEventHandler
-
setMediaService
public void setMediaService(MediaService mediaService)
-
setModelService
public void setModelService(ModelService modelService)
-
setCockpitTypeService
public void setCockpitTypeService(TypeService typeService)
-
-