Examples of AbstractContainer


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

    /**
     * @return tile container that contains the tile
     */
    protected AbstractContainer getTileContainer() {
        AbstractContainer container = (AbstractContainer) tileContainerNodeModel.getObject();
        tileContainerNodeModel.detach();
        return container;
    }
View Full Code Here

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

        nodeModel.detach();
    }


    public String getText() {
        AbstractContainer container = (AbstractContainer) new BrixNodeModel(nodeModel).getObject();

        String title = null;
        while (title == null && container != null) {
            title = container.getTitle();
            container = container.getTemplate();
        }

        return title != null ? title : "";
    }
View Full Code Here

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

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

        }
        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

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

    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

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

                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

Examples of org.eclipse.ecf.core.AbstractContainer

        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            return new AbstractContainer() {

              protected ID id = null;

              public void connect(ID targetID,
                  IConnectContext connectContext)
View Full Code Here

Examples of org.eclipse.ecf.core.AbstractContainer

        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            return new AbstractContainer() {
              public void connect(ID targetID,
                  IConnectContext connectContext)
                  throws ContainerConnectException {
              }
View Full Code Here

Examples of org.eclipse.ecf.core.AbstractContainer

        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
            return new AbstractContainer() {
              public void connect(ID targetID,
                  IConnectContext connectContext)
                  throws ContainerConnectException {
              }
View Full Code Here

Examples of org.jboss.ejb3.interceptors.container.AbstractContainer

   public StatelessServitor(SessionBeanEffigy sessionBeanEffigy)
   {
      this.sessionBeanEffigy = sessionBeanEffigy;

      this.interceptorContainer = new AbstractContainer(sessionBeanEffigy);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.