Class CelumEventHandler

  • All Implemented Interfaces:
    RequestEventHandler

    public class CelumEventHandler
    extends AbstractRequestEventHandler
    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.

    • Constructor Detail

      • CelumEventHandler

        public CelumEventHandler()
    • Method Detail

      • handleEvent

        public void handleEvent​(UICockpitPerspective perspective,
                                java.util.Map<java.lang.String,​java.lang.String[]> params)
        Description copied from interface: RequestEventHandler
        Called by the active RequestHandler when a cockpit event is triggered for which this RequestEventHandler is registered.
        Parameters:
        perspective - the current perspective or null if no perspective has been specified
        params - HTTP request parameters
      • 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
      • getPropertyDescriptor

        protected PropertyDescriptor getPropertyDescriptor​(java.util.Map<java.lang.String,​java.lang.String[]> params)
                                                    throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • setMediaService

        public void setMediaService​(MediaService mediaService)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setCockpitTypeService

        public void setCockpitTypeService​(TypeService typeService)