Package org.brixcms.plugin.site.page

Examples of org.brixcms.plugin.site.page.AbstractContainer


    public void setWorkspaceState(Workspace workspace, String state) {
        workspace.setAttribute(WORKSPACE_ATTRIBUTE_STATE, state);
    }

    public Collection<String> getGlobalTileIDs(JcrSession session) {
        AbstractContainer globalContainer = getGlobalContainer(session);
        Set<String> result;
        if (globalContainer != null) {
            result = new HashSet<String>();
            for (BrixNode n : globalContainer.tiles().getTileNodes()) {
                String id = TileContainerFacet.getTileId(n);
                if (!Strings.isEmpty(id)) {
                    result.add(id);
                }
            }
View Full Code Here


        }
        return result;
    }

    public Collection<String> getGlobalVariableKeys(JcrSession session) {
        AbstractContainer globalContainer = getGlobalContainer(session);
        Collection<String> result;
        if (globalContainer != null) {
            result = globalContainer.getSavedVariableKeys();
        } else {
            result = Collections.emptyList();
        }
        return result;
    }
View Full Code Here

    public String getWebRootPath() {
        return brix.getRootPath() + "/" + WEB_NODE_NAME;
    }

    public String getGlobalVariableValue(JcrSession session, String variableKey) {
        AbstractContainer globalContainer = getGlobalContainer(session);
        if (globalContainer != null) {
            return globalContainer.getVariableValue(variableKey, false);
        } else {
            return null;
        }
    }
View Full Code Here

                if (node instanceof ResourceNode == false) {
                    return;
                }

                AbstractContainer container = null;
                if (rule.getType() == Rule.Type.TEMPLATE) {
                    container = TemplateNode.initialize(node);
                } else if (rule.getType() == Rule.Type.PAGE) {
                    container = PageNode.initialize(node);
                }

                if (container != null) {
                    if (rule.getTemplateModel().getObject() != null) {
                        container.setTemplate(rule.getTemplateModel().getObject());
                    }
                    if (save) {
                        container.save();
                    }
                }

                return;
            }
View Full Code Here

TOP

Related Classes of org.brixcms.plugin.site.page.AbstractContainer

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.