public class CelumEventHandler extends AbstractRequestEventHandler
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.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CELUM_CONTAINER_KEY |
static java.lang.String |
CELUM_ITEM_KEY |
static java.lang.String |
CELUM_MEDIA_FORMAT |
static java.lang.String |
CELUM_PROP_QUALIFIER |
static java.lang.String |
LANG_ISO_CODE |
DELIMITER| Constructor and Description |
|---|
CelumEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected CockpitCelumDelegate |
getCockpitCelumDelegate() |
protected TypedObject |
getItem(java.util.Map<java.lang.String,java.lang.String[]> params) |
protected TypedObject |
getMedia(java.util.Map<java.lang.String,java.lang.String[]> params) |
java.lang.String |
getPrefix() |
protected PropertyDescriptor |
getPropertyDescriptor(java.util.Map<java.lang.String,java.lang.String[]> params) |
void |
handleEvent(UICockpitPerspective perspective,
java.util.Map<java.lang.String,java.lang.String[]> params)
Called by the active
RequestHandler when a cockpit event is triggered for which this RequestEventHandler is
registered. |
void |
setCockpitTypeService(TypeService typeService) |
void |
setMediaService(MediaService mediaService) |
void |
setModelService(ModelService modelService) |
void |
setPrefix(java.lang.String prefix) |
getParameterpublic static final java.lang.String CELUM_CONTAINER_KEY
public static final java.lang.String CELUM_ITEM_KEY
public static final java.lang.String CELUM_PROP_QUALIFIER
public static final java.lang.String CELUM_MEDIA_FORMAT
public static final java.lang.String LANG_ISO_CODE
public void handleEvent(UICockpitPerspective perspective, java.util.Map<java.lang.String,java.lang.String[]> params)
RequestEventHandlerRequestHandler when a cockpit event is triggered for which this RequestEventHandler is
registered.perspective - the current perspective or null if no perspective has been specifiedparams - HTTP request parameterspublic void setPrefix(java.lang.String prefix)
setPrefix in interface RequestEventHandlersetPrefix in class AbstractRequestEventHandlerprotected TypedObject getItem(java.util.Map<java.lang.String,java.lang.String[]> params) throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected TypedObject getMedia(java.util.Map<java.lang.String,java.lang.String[]> params) throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected CockpitCelumDelegate getCockpitCelumDelegate()
protected PropertyDescriptor getPropertyDescriptor(java.util.Map<java.lang.String,java.lang.String[]> params) throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic java.lang.String getPrefix()
getPrefix in interface RequestEventHandlergetPrefix in class AbstractRequestEventHandlerpublic void setMediaService(MediaService mediaService)
public void setModelService(ModelService modelService)
public void setCockpitTypeService(TypeService typeService)
Copyright © 2018 SAP SE. All Rights Reserved.