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

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


                final String value = attr.getValue("value");

                newAttrs.removeAttribute("path");
                newAttrs.removeAttribute("value");

                JXPathEvent event = null;
                if ( attr.getValue("layout") != null ) {
                    newAttrs.removeAttribute("layout");
                    final String layoutId = attr.getValue("layout");
                    Object layout = this.getPortalService().getComponentManager().getProfileManager().getPortalLayout(null, layoutId);
                    if ( layout != null ) {
                        event = new JXPathEvent(layout, path, value);
                    }
                } else {
                    String copletId = attr.getValue("coplet");
                    newAttrs.removeAttribute("coplet");
                    final CopletInstanceData cid = this.getCopletInstanceData(copletId);
View Full Code Here


    /* (non-Javadoc)
     * @see org.apache.cocoon.portal.event.Subscriber#inform(org.apache.cocoon.portal.event.Event)
     */
    public void inform(Event e) {
        final JXPathEvent event = (JXPathEvent)e;
        final Object target = event.getTarget();
        if ( target != null ) {
            final JXPathContext jxpathContext = JXPathContext.newContext(target);
            jxpathContext.setValue(event.getPath(), event.getValue());
        }
    }
View Full Code Here

    public String layoutId;
    public String path;
   
    public Event getEvent(PortalService service, Object data) {
        Layout layout = service.getComponentManager().getProfileManager().getPortalLayout(null, this.layoutId);
        Event e = new JXPathEvent(layout, this.path, data);
        return e;
    }
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.cocoon.portal.event.Subscriber#inform(org.apache.cocoon.portal.event.Event)
     */
    public void inform(Event e) {
        final JXPathEvent event = (JXPathEvent)e;
        final Object target = event.getTarget();
        if ( target != null ) {
            final JXPathContext jxpathContext = JXPathContext.newContext(target);
            jxpathContext.setValue(event.getPath(), event.getValue());
        }
    }
View Full Code Here

                final String value = attr.getValue("value");
               
                newAttrs.removeAttribute("path");
                newAttrs.removeAttribute("value");
               
                JXPathEvent event = null;
                if ( attr.getValue("layout") != null ) {
                    newAttrs.removeAttribute("layout");
                    final String layoutId = attr.getValue("layout");
                    Object layout = this.getPortalService().getComponentManager().getProfileManager().getPortalLayout(null, layoutId);
                    if ( layout != null ) {
                        event = new JXPathEvent(layout, path, value);
                    }
                } else {
                    String copletId = attr.getValue("coplet");
                    newAttrs.removeAttribute("coplet");
                    final CopletInstanceData cid = this.getCopletInstanceData(copletId);
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.cocoon.portal.event.Subscriber#inform(org.apache.cocoon.portal.event.Event)
     */
    public void inform(Event e) {
        final JXPathEvent event = (JXPathEvent)e;
        final Object target = event.getTarget();
        if ( target != null ) {
            final JXPathContext jxpathContext = JXPathContext.newContext(target);
            jxpathContext.setValue(event.getPath(), event.getValue());
        }
    }
View Full Code Here

                    final String value = attr.getValue("value");
                   
                    newAttrs.removeAttribute("path");
                    newAttrs.removeAttribute("value");
                   
                    JXPathEvent event;
                    if ( attr.getValue("layout") != null ) {
                        newAttrs.removeAttribute("layout");
                        final String layoutId = attr.getValue("layout");
                        Object layout = portalService.getComponentManager().getProfileManager().getPortalLayout(null, layoutId);
                        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);
View Full Code Here

    public String layoutId;
    public String path;
   
    public Event getEvent(PortalService service, Object data) {
        Layout layout = service.getComponentManager().getProfileManager().getPortalLayout(null, this.layoutId);
        Event e = new JXPathEvent(layout, this.path, data);
        return e;
    }
View Full Code Here

                final String value = attr.getValue("value");

                newAttrs.removeAttribute("path");
                newAttrs.removeAttribute("value");

                JXPathEvent event = null;
                if ( attr.getValue("layout") != null ) {
                    newAttrs.removeAttribute("layout");
                    final String layoutId = attr.getValue("layout");
                    Object layout = this.portalService.getComponentManager().getProfileManager().getPortalLayout(null, layoutId);
                    if ( layout != null ) {
                        event = new JXPathEvent(layout, path, value);
                    }
                } else {
                    String copletId = attr.getValue("coplet");
                    newAttrs.removeAttribute("coplet");
                    final CopletInstanceData cid = this.getCopletInstanceData(copletId);
View Full Code Here

    public String layoutId;
    public String path;
   
    public Event getEvent(PortalService service, Object data) {
        Layout layout = service.getComponentManager().getProfileManager().getPortalLayout(null, this.layoutId);
        Event e = new JXPathEvent(layout, this.path, data);
        return e;
    }
View Full Code Here

TOP

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

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.