Package org.gatein.pc.api.info

Examples of org.gatein.pc.api.info.EventInfo


            //
            PortletInfo info = container.getInfo();
            EventingInfo eventingInfo = info.getEventing();
            Map<QName, ? extends EventInfo> consumedEventInfos = eventingInfo.getConsumedEvents();
            EventInfo eventInfo = consumedEventInfos.get(eventName);

            //
            if (trace)
            {
               log.trace("Attempt to obtain for event " + eventName + " its payload class " + srcPayloadClassName + " in the application " + applicationId +
                  " for portlet " + container.getInfo());
            }

            //
            Class dstPayloadClass = null;
            if (eventInfo != null)
            {
               ContainerTypeInfo typeInfo = (ContainerTypeInfo)eventInfo.getType();

               //
               if (typeInfo != null)
               {
                  dstPayloadClass = typeInfo.getType();
View Full Code Here


         this.eventDescriptions = new HashMap<QName, EventInfo>(eventDescriptions.size());

         for (final EventDescription event : eventDescriptions)
         {
            QName name = event.getName();
            EventInfo eventInfo = new WSRPEventInfo(
               name,
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getLabel()),
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getDescription()),
               new TypeInfo()
               {
View Full Code Here

      if (!events.isEmpty())
      {
         produced = new HashMap<QName, EventInfo>(events.size());
         for (QName event : events)
         {
            EventInfo desc = originatingProducer.getInfoForEvent(event);
            produced.put(event, desc);
         }
      }

      events = portletDescription.getHandledEvents();
      if (!events.isEmpty())
      {
         consumed = new HashMap<QName, EventInfo>(events.size());
         for (QName event : events)
         {
            EventInfo desc = originatingProducer.getInfoForEvent(event);
            consumed.put(event, desc);
         }
      }

      return new WSRPEventingInfo(produced, consumed);
View Full Code Here

            // get the event metadata from the portlet metadata
            PortletInfo info = container.getInfo();
            EventingInfo eventingInfo = info.getEventing();
            Map<QName, ? extends EventInfo> consumedEventInfos = eventingInfo.getConsumedEvents();
            EventInfo eventInfo = consumedEventInfos.get(eventName);

            Class dstPayloadClass;
            if (eventInfo != null)
            {
               // get the type of the event
               ContainerTypeInfo typeInfo = (ContainerTypeInfo)eventInfo.getType();

               if (typeInfo != null)
               {
                  // if we managed to get the event type information, try to unmarshall the event from the XML payload
                  dstPayloadClass = typeInfo.getType();
View Full Code Here

         this.eventDescriptions = new HashMap<QName, EventInfo>(eventDescriptions.size());

         for (final EventDescription event : eventDescriptions)
         {
            QName name = event.getName();
            EventInfo eventInfo = new WSRPEventInfo(
               name,
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getLabel()),
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getDescription()),
               new TypeInfo()
               {
View Full Code Here

            //
            PortletInfo info = container.getInfo();
            EventingInfo eventingInfo = info.getEventing();
            Map<QName, ? extends EventInfo> consumedEventInfos = eventingInfo.getConsumedEvents();
            EventInfo eventInfo = consumedEventInfos.get(eventName);

            //
            if (trace)
            {
               log.trace("Attempt to obtain for event " + eventName + " its payload class " + srcPayloadClassName + " in the application " + applicationId +
                  " for portlet " + container.getInfo());
            }

            //
            Class dstPayloadClass = null;
            if (eventInfo != null)
            {
               ContainerTypeInfo typeInfo = (ContainerTypeInfo)eventInfo.getType();

               //
               if (typeInfo != null)
               {
                  dstPayloadClass = typeInfo.getType();
View Full Code Here

         this.eventDescriptions = new HashMap<QName, EventInfo>(eventDescriptions.size());

         for (final EventDescription event : eventDescriptions)
         {
            QName name = event.getName();
            EventInfo eventInfo = new WSRPEventInfo(
               name,
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getLabel()),
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getDescription()),
               new TypeInfo()
               {
View Full Code Here

            //
            PortletInfo info = container.getInfo();
            EventingInfo eventingInfo = info.getEventing();
            Map<QName, ? extends EventInfo> consumedEventInfos = eventingInfo.getConsumedEvents();
            EventInfo eventInfo = consumedEventInfos.get(eventName);

            //
            if (trace)
            {
               log.trace("Attempt to obtain for event " + eventName + " its payload class " + srcPayloadClassName + " in the application " + applicationId +
                  " for portlet " + container.getInfo());
            }

            //
            Class dstPayloadClass = null;
            if (eventInfo != null)
            {
               ContainerTypeInfo typeInfo = (ContainerTypeInfo)eventInfo.getType();

               //
               if (typeInfo != null)
               {
                  dstPayloadClass = typeInfo.getType();
View Full Code Here

         this.eventDescriptions = new HashMap<QName, EventInfo>(eventDescriptions.size());

         for (final EventDescription event : eventDescriptions)
         {
            QName name = event.getName();
            EventInfo eventInfo = new WSRPEventInfo(
               name,
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getLabel()),
               WSRPUtils.convertToCommonLocalizedStringOrNull(event.getDescription()),
               new TypeInfo()
               {
View Full Code Here

            // get the event metadata from the portlet metadata
            PortletInfo info = container.getInfo();
            EventingInfo eventingInfo = info.getEventing();
            Map<QName, ? extends EventInfo> consumedEventInfos = eventingInfo.getConsumedEvents();
            EventInfo eventInfo = consumedEventInfos.get(eventName);

            Class dstPayloadClass;
            if (eventInfo != null)
            {
               // get the type of the event
               ContainerTypeInfo typeInfo = (ContainerTypeInfo)eventInfo.getType();

               if (typeInfo != null)
               {
                  // if we managed to get the event type information, try to unmarshall the event from the XML payload
                  dstPayloadClass = typeInfo.getType();
View Full Code Here

TOP

Related Classes of org.gatein.pc.api.info.EventInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.