Package org.apache.cocoon.portal.event

Examples of org.apache.cocoon.portal.event.EventManager.send()


        if ( values != null ) {
            for(int i=0; i<values.length; i++) {
                final String current = values[i];
                final Event e = context.getEventConverter().decode(current);
                if ( null != e) {
                    publisher.send(e);
                }
            }
        } else {
            List list = (List) request.getAttribute("org.apache.cocoon.portal." + parameterName);
            if (list != null) {
View Full Code Here


        } else {
            List list = (List) request.getAttribute("org.apache.cocoon.portal." + parameterName);
            if (list != null) {
                Event[] events = (Event[]) list.toArray(new Event[0]);
                for (int i = 0; i < events.length; i++) {
                    publisher.send(events[i]);
                }
            }
        }
    }
   
View Full Code Here

                } else {
                    Iterator iter = this.labelManager.getPageLabelEvents(label).iterator();
                    // Publish all the events for this page label.
                    while (iter.hasNext()) {
                        Event event = (Event) iter.next();
                        publisher.send(event);
                    }
            //        return;
                }
            }
        }
View Full Code Here

                final String value = values[i];
                Event e = null;
                try {
                    e = context.getEventConverter().decode(value);
                    if (null != e) {
                        publisher.send(e);
                    }
                } catch (Exception ignore) {
                    // ignroe it
                }
                // the event could not be generated, so try different approach
View Full Code Here

                final String value = values[i];
                Event e = null;
                try {
                    e = context.getEventConverter().decode(value);
                    if (null != e) {
                        publisher.send(e);
                    }
                } catch (Exception ignore) {
                    // ignroe it
                }
                // the event could not be generated, so try different approach
View Full Code Here

                if ( layout instanceof CopletLayout ) {
                    // full screen?
                    if ( layout.equals(service.getEntryLayout(null)) ) {
                        Event event = new FullScreenCopletEvent(((CopletLayout)layout).getCopletInstanceData(), null);
                        eventManager = (EventManager)this.manager.lookup(EventManager.ROLE);
                        eventManager.send(event);
                        service.getComponentManager().getLinkService().addEventToLink(event);
                    }
                    CopletFactory factory = service.getComponentManager().getCopletFactory();
                    factory.remove( ((CopletLayout)layout).getCopletInstanceData());
                }
View Full Code Here

                   
            Iterator i = instances.iterator();
            while ( i.hasNext() ) {
                CopletInstanceData current = (CopletInstanceData) i.next();
                Event event = new CopletJXPathEvent(current, path, value);
                eventManager.send(event);
            }
        }
    }

}
View Full Code Here

            final EventManager publisher = service.getComponentManager().getEventManager();
            for(int i=0; i<values.length; i++) {
                final String current = values[i];
                Event e = context.getEventConverter().decode(current);
                if ( null != e ) {
                    publisher.send(e);
                    FullScreenCopletEvent fsce = (FullScreenCopletEvent)e;
                    if ( fsce.getLayout() != null) {
                        service.getComponentManager().getLinkService().addEventToLink( e );
                    }
                }
View Full Code Here

                FullScreenCopletEvent[] events =
                    (FullScreenCopletEvent[]) list.toArray(new FullScreenCopletEvent[0]);
                final EventManager publisher = service.getComponentManager().getEventManager();
                for (int i = 0; i < events.length; i++) {
                    FullScreenCopletEvent e = events[i];
                    publisher.send(e);
                    if (e.getLayout() != null) {
                        service.getComponentManager().getLinkService().addEventToLink(e);
                    }
                }
            }
View Full Code Here

        if ( values != null ) {
            for(int i=0; i<values.length; i++) {
                final String current = values[i];
                final Event e = context.getEventConverter().decode(current);
                if ( null != e) {
                    publisher.send(e);
                }
            }
        } else {
            List list = (List) request.getAttribute("org.apache.cocoon.portal." + parameterName);
            if (list != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.