Examples of RegistryNode


Examples of org.exoplatform.services.jcr.ext.registry.Registry.RegistryNode

   {
      SessionProvider sessionProvider = sessionProviderService.getSessionProvider(null);
      try
      {
         regService.getRepositoryService().setCurrentRepositoryName(repository);
         RegistryNode registryEntry = regService.getRegistry(sessionProvider);
         if (registryEntry != null)
         {
            Node registryNode = registryEntry.getNode();
            NodeIterator registryIterator = registryNode.getNodes();
            Document entry = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
            String fullURI = uriInfo.getRequestUri().toString();
            XlinkHref xlinkHref = new XlinkHref(fullURI);
            Element root = entry.createElement(REGISTRY);
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.registry.Registry.RegistryNode

   public Response getRegistry(@Context UriInfo uriInfo)
   {
      SessionProvider sessionProvider = sessionProviderService.getSessionProvider(null);
      try
      {
         RegistryNode registryEntry = regService.getRegistry(sessionProvider);
         if (registryEntry != null)
         {
            Node registryNode = registryEntry.getNode();
            NodeIterator registryIterator = registryNode.getNodes();
            Document entry = SecurityHelper.doPrivilegedExceptionAction(new PrivilegedExceptionAction<Document>()
            {
               public Document run() throws Exception
               {
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

                RegistryConstants.QUERIES_COLLECTION_PATH +
                "/custom-queries";
    }

    public Node storeAsNode(String s) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, UnsupportedRepositoryOperationException, RepositoryException {
        RegistryNode node = new RegistryNode(s, session);
        CollectionImpl subCollection = null;

        try {
            subCollection = (CollectionImpl) session.getUserRegistry().newCollection();
            subCollection.setDescription("nt:query");
            session.getUserRegistry().put(s, subCollection);

        } catch (RegistryException e) {
            e.printStackTrace();

        }
        node.nodeType = (RegistryNodeType) node.getParent().getPrimaryNodeType();
        node.setPrimaryType("nt:query");

        node.nodeType.setNode(node);

        return node;
    }
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

        return (RegistryNode) session.getItem(s + "/" + configNodeName);
    }

    public Node setActivity(Node node) throws UnsupportedRepositoryOperationException, RepositoryException {

        RegistryNode acNode = null;

        if (node == null) {

            currentActivityNodePath = "";
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

    public String[] getColumnNames() throws RepositoryException {
        return new String[0];
    }

    public RowIterator getRows() throws RepositoryException {
        RegistryNode regNode = null;
        Set<RegistryRow> rows = new HashSet<RegistryRow>();

        for (Object node : nodes) {
            RegistryRow row;
            regNode = (RegistryNode) node;
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

        Iterator it1 = result1.iterator();

        while (it1.hasNext()) {

            RegistryNode temp = (RegistryNode) it1.next();
            Iterator it2 = result2.iterator();

            while (it2.hasNext()) {

                if (temp.getPath().equals(((RegistryNode) it2.next()).getPath())) {
                    andResult.add(temp);
                }
            }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

        Iterator it1 = result1.iterator();
        Set tempSet = new HashSet();

        while (it1.hasNext()) {

            RegistryNode temp = (RegistryNode) it1.next();
            Iterator it2 = source_set.iterator();

            while (it2.hasNext()) {

                if (temp.getPath().equals(((RegistryNode) it2.next()).getPath())) {

                    tempSet.add(temp);
                }
            }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

    }

    public Set evaluateComparison(Set set, Constraint constraint) {  //mine
        Set result = new HashSet();
        result.add(new RegistryNode("a", session));
//        DynamicOperand operand1 = ((RegistryComparison) constraint).getOperand1();
//        StaticOperand operand2 = ((RegistryComparison) constraint).getOperand2();
//        String operator = ((RegistryComparison) constraint).getOperator();

        return result;
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

        String path = ((RegistryChildNode) constraint).getParentPath();
//        String selector = ((RegistryChildNode) constraint).getSelectorName();

        try {
            Iterator it = set.iterator();
            RegistryNode node = null;
            while (it.hasNext()) {
                node = (RegistryNode) it.next();
                if (node.getPath().contains(path)) {

                    result.add(node);
                }

            }
View Full Code Here

Examples of org.wso2.carbon.registry.jcr.RegistryNode

        String path = ((RegistryDescendantNode) constraint).getAncestorPath();
//        String selector = ((RegistryDescendantNode) constraint).getSelectorName();   // The "set" has all selector nodes that "selectorname" has

        try {
            RegistryNode node = null;
            Iterator it = set.iterator();

            while (it.hasNext()) {

                node = ((RegistryNode) it.next());

                if (node.getPath().contains(path)) {
                    result.add(node);
                }

            }
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.