Package org.brixcms.web

Examples of org.brixcms.web.BrixRequestCycleProcessor


    public ForbiddenPage(String name) {
        add(new Label("name", name));
        add(new ToolbarBehavior() {
            @Override
            protected String getCurrentWorkspaceId() {
                BrixRequestCycleProcessor processor = new BrixRequestCycleProcessor(Brix.get());
                return processor.getWorkspace();
            }
        });
    }
View Full Code Here


    private void addIndexedParameters(String requestPathString, BrixPageParameters parameters, IModel<BrixNode> nodeModel) {
        if (!requestPathString.startsWith("/"))
            requestPathString = "/" + requestPathString;

        BrixRequestCycleProcessor processor = (BrixRequestCycleProcessor) RequestCycle.get()
                .getActiveRequestHandler();
        Path nodePath = processor.getUriPathForNode(nodeModel.getObject());
        Path requestPath = new Path(requestPathString, false);

        if (nodePath.isAncestorOf(requestPath)) {
            Path remaining = new Path(requestPathString, false).toRelative(nodePath);
            int i = 0;
View Full Code Here

        return encode(node, parameters, info, null);
    }

    private CharSequence encode(BrixNode node, PageParameters parameters, PageInfo info,
                                String iface) {
        BrixRequestCycleProcessor processor = (BrixRequestCycleProcessor) RequestCycle.get()
                .getActiveRequestHandler();
        return encode(processor.getUriPathForNode(node).toString(), parameters, info, iface);
    }
View Full Code Here

TOP

Related Classes of org.brixcms.web.BrixRequestCycleProcessor

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.