Package org.apache.cocoon.portal.event.impl

Examples of org.apache.cocoon.portal.event.impl.CopletJXPathEvent


                } else {
                    String copletId = attr.getValue("coplet");
                    newAttrs.removeAttribute("coplet");
                    final CopletInstanceData cid = this.getCopletInstanceData(copletId);
                    if ( cid != null ) {
                        event = new CopletJXPathEvent(cid, path, value);
                    }
                }
                if ( this.insideLinks ) {
                    if ( event != null ) {
                        this.collectedEvents.add(event);
View Full Code Here


                    final Object value = ((ChangeCopletsJXPathEvent)e).getValue();
                   
                    Iterator i = instances.iterator();
                    while ( i.hasNext() ) {
                        CopletInstanceData current = (CopletInstanceData) i.next();
                        Event event = new CopletJXPathEvent(current, path, value);
                        publisher.publish(event);
                    }
                }
            }
        }
View Full Code Here

                final Publisher publisher = portalService.getComponentManager().getEventManager().getPublisher();
                for(int i=0; i<names.length; i++) {
                    final String path = names[i];
                    final String value = parameters.getParameter(path, null );
                    if ( value != null && value.trim().length() > 0 ) {
                        final Event event = new CopletJXPathEvent(portalService.getComponentManager().getProfileManager().getCopletInstanceData(copletId),
                                path,
                                value);
                        publisher.publish(event);
                    }
                }
View Full Code Here

    public String copletId;
    public String path;

    public Event getEvent(PortalService service, Object data) {
        CopletInstanceData cid = service.getComponentManager().getProfileManager().getCopletInstanceData(this.copletId);
        Event e = new CopletJXPathEvent(cid, this.path, data);
        return e;
    }
View Full Code Here

                    final Object value = ((ChangeCopletsJXPathEvent)e).getValue();
                   
                    Iterator i = instances.iterator();
                    while ( i.hasNext() ) {
                        CopletInstanceData current = (CopletInstanceData) i.next();
                        Event event = new CopletJXPathEvent(current, path, value);
                        publisher.publish(event);
                    }
                }
            }
        }
View Full Code Here

                } else {
                    String copletId = attr.getValue("coplet");
                    newAttrs.removeAttribute("coplet");
                    final CopletInstanceData cid = this.getCopletInstanceData(copletId);
                    if ( cid != null ) {
                        event = new CopletJXPathEvent(cid, path, value);
                    }
                }
                if ( this.insideLinks ) {
                    if ( event != null ) {
                        this.collectedEvents.add(event);
View Full Code Here

                        event = new JXPathEvent(layout, path, value);
                    } else {
                        String copletId = attr.getValue("coplet");
                        newAttrs.removeAttribute("coplet");
                        final CopletInstanceData cid = this.getCopletInstanceData(copletId);
                        event = new CopletJXPathEvent(cid, path, value);
                    }
                    if ( this.insideLinks ) {
                        this.collectedEvents.add(event);
                    } else {
                        final String href = linkService.getLinkURI(event);
View Full Code Here

    public String copletId;
    public String path;

    public Event getEvent(PortalService service, Object data) {
        CopletInstanceData cid = service.getComponentManager().getProfileManager().getCopletInstanceData(this.copletId);
        Event e = new CopletJXPathEvent(cid, this.path, data);
        return e;
    }
View Full Code Here

                final EventManager publisher = portalService.getComponentManager().getEventManager();
                for(int i=0; i<names.length; i++) {
                    final String path = names[i];
                    final String value = parameters.getParameter(path, null );
                    if ( value != null && value.trim().length() > 0 ) {
                        final Event event = new CopletJXPathEvent(portalService.getComponentManager().getProfileManager().getCopletInstanceData(copletId),
                                path,
                                value);
                        publisher.send(event);
                    }
                }
View Full Code Here

            final Object value = ((ChangeCopletsJXPathEvent)e).getValue();
                   
            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

TOP

Related Classes of org.apache.cocoon.portal.event.impl.CopletJXPathEvent

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.