Package org.apache.jetspeed.prefs.om

Examples of org.apache.jetspeed.prefs.om.Node


        throw new RuntimeException("Node not defined, getNodeProperties() invoked on negative cache entry");
  }

  public int getNodeType()
  {
        Node node = getNode();
        if (node != null)
        {
            return node.getNodeType();
        }
        return nodeType;
  }
View Full Code Here


        return nodeType;
  }

  public Long getParentNodeId()
  {
        Node node = getNode();
        if (node != null)
        {
            return node.getParentNodeId();
        }
        throw new RuntimeException("Node not defined, getParentNodeId() invoked on negative cache entry");
  }
View Full Code Here

      getNode().setCreationDate(creationDate);   
  }

  public void setFullPath(String fullPath)
  {
      Node node = getNode();
      if (node != null)
      {
          node.setFullPath(fullPath);
      }
      else
      {
          this.fullPath = fullPath;
      }
View Full Code Here

    getNode().setNodeProperties(nodeProperties);   
  }

  public void setNodeType(int nodeType)
  {
        Node node = getNode();
        if (node != null)
        {
            node.setNodeType(nodeType);
        }
        else
        {
            this.nodeType = nodeType;
        }
View Full Code Here

        if (result.size() == 0)
        {
            throw new AdministrationEmailException(USER_NOT_FOUND_FROM_EMAIL + email);
        }
        Iterator nodes = result.iterator();
        Node node = (Node)nodes.next();
        String nodePath = node.getFullPath();
        if (nodePath == null)
        {
            throw new AdministrationEmailException(USER_NOT_FOUND_FROM_EMAIL + email);
        }
        String[] paths = nodePath.split("/");
View Full Code Here

        if (null != nodes)
        {
            ArrayList childrenNames = new ArrayList(nodes.size());
            for (Iterator i = nodes.iterator(); i.hasNext();)
            {
                Node curnode = (Node) i.next();
                childrenNames.add(curnode.getNodeName());
            }
            return (String[]) childrenNames.toArray(new String[0]);
        }
        else
        {
View Full Code Here

    /**
     * @see java.util.prefs.Preferences#removeNodeSpi()
     */
    public void removeNodeSpi() throws BackingStoreException
    {
        Node parentNode = null;
        Preferences parent = parent();
        if (parent != null && parent instanceof PreferencesImpl)
        {
            parentNode = ((PreferencesImpl) parent).getNode();
        }
View Full Code Here

        Criteria c = new Criteria();
        c.addEqualTo("fullPath", fullPath);
        c.addEqualTo("nodeType", new Integer(nodeType));
        Query query = QueryFactory.newQuery(NodeImpl.class, c);

        Node nodeObj = (Node) getPersistenceBrokerTemplate().getObjectByQuery(query);
        if (null != nodeObj)
        {
          NodeImplProxy proxy = new NodeImplProxy(nodeObj);
            addToCache(new NodeCache(proxy));
            return proxy;
View Full Code Here

        Criteria c = new Criteria();
        c.addEqualTo("fullPath", fullPath);
        c.addEqualTo("nodeType", new Integer(nodeType));
        Query query = QueryFactory.newQuery(NodeImpl.class, c);

        Node nodeObj = (Node) getPersistenceBrokerTemplate().getObjectByQuery(query);
        if (null != nodeObj)
        {
          proxy.setNode(nodeObj);
          NodeCache cn = new NodeCache(nodeObj.getFullPath(), nodeObj.getNodeType());
          cn.setNode(proxy);
            addToCache(cn);
        }
        else
        {
View Full Code Here

        Criteria c = new Criteria();
        c.addEqualTo("fullPath", fullPath);
        c.addEqualTo("nodeType", new Integer(nodeType));
        Query query = QueryFactory.newQuery(NodeImpl.class, c);

        Node nodeObj = (Node) getPersistenceBrokerTemplate().getObjectByQuery(query);
        if (null != nodeObj)
        {
          NodeImplProxy proxy = new NodeImplProxy(nodeObj);
            addToCache(new NodeCache(proxy));
            return true;
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.prefs.om.Node

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.