Package org.apache.cocoon.portal.layout.aspect

Examples of org.apache.cocoon.portal.layout.aspect.FrameStatus


        FrameSourceEvent statusEvent = (FrameSourceEvent) event;
        final String layoutID = statusEvent.getLayoutId();
        ProfileManager profileManager = null;
        try {
            profileManager = (ProfileManager) this.manager.lookup(ProfileManager.ROLE);
            FrameStatus status =
                (FrameStatus) profileManager.getAspectStatus(
                    FrameStatus.class,
                    ProfileManager.REQUEST_STATUS,
                    layoutID);
            String link = statusEvent.getLink();
            if (status == null) {
                if (link != null) {
                    status = new FrameStatus();
                    status.setLink(link);
                    profileManager.setAspectStatus(ProfileManager.REQUEST_STATUS, layoutID, status);
                }
            } else if (link != null) {
                status.setLink(link);
            } else {
                // remove status if link == null
                profileManager.setAspectStatus(ProfileManager.REQUEST_STATUS, layoutID, null);
            }
        } catch (ComponentException ce) {
View Full Code Here


        if (!(layout instanceof FrameLayout)) {
            throw new SAXException("Wrong layout type, FrameLayout expected: " + layout.getClass().getName());
        }

        FrameStatus status =
            (FrameStatus) this.getStatus(FrameStatus.class, ProfileManager.REQUEST_STATUS, layout.getId());
        String source = (status == null ? null : status.getLink());
        if (source == null) {
            source = ((FrameLayout) layout).getSource();
        }
       
        this.createCInclude(source, handler);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.portal.layout.aspect.FrameStatus

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.