Package org.apache.jetspeed.page.document.psml

Examples of org.apache.jetspeed.page.document.psml.NodeSetImpl


            handlerFactory.getDocumentHandler(Page.DOCUMENT_TYPE).updateDocument(page);
           
            // update parent folder
            if (parentFolder != null)
            {
                NodeSetImpl parentAllNodes = (NodeSetImpl)parentFolder.getAllNodes();
                if (!parentAllNodes.contains(page))
                {
                    // add new page
                    parentAllNodes.add(page);
                    newPage = true;
                }
                else if (parentAllNodes.get(page.getPath()) != page)
                {
                    // remove stale page and add updated page
                    parentAllNodes.remove(page);               
                    parentAllNodes.add(page);
                }
            }
           
            // notify page manager listeners
            if (newPage)
View Full Code Here


            }
            catch (SecurityException se)
            {
                if (filteredNodes == null)
                {
                    filteredNodes = new NodeSetImpl(getPath(), ((NodeSetImpl) nodes).getComparator());
                    Iterator copyIter = nodes.iterator();
                    while (copyIter.hasNext())
                    {
                        Node copyNode = (Node)copyIter.next();
                        if (copyNode != node)
View Full Code Here

        {           
            if(metadata.getDocumentOrder() != null)
            {
                if (getPath().endsWith(PATH_SEPARATOR))
                {
                    allNodes = new NodeSetImpl(getPath(), new NodeOrderCompartaor(metadata.getDocumentOrder(), getPath()));
                }
                else
                {
                    allNodes = new NodeSetImpl(getPath(), new NodeOrderCompartaor(metadata.getDocumentOrder(), getPath() + PATH_SEPARATOR));
                }
            }
            else
            {
                allNodes = new NodeSetImpl(getPath());
            }

            try
            {
                String[] nodeNames = folderHandler.listAll(getPath());
View Full Code Here

            handlerFactory.getDocumentHandler(Link.DOCUMENT_TYPE).updateDocument(link);
           
            // update parent folder
            if (parentFolder != null)
            {
                NodeSetImpl parentAllNodes = (NodeSetImpl)parentFolder.getAllNodes();
                if (!parentAllNodes.contains(link))
                {
                    // add new link
                    parentAllNodes.add(link);
                    newLink = true;
                }
                else if (parentAllNodes.get(link.getPath()) != link)
                {
                    // remove stale link and add updated link
                    parentAllNodes.remove(link);
                    parentAllNodes.add(link);
                }
            }
           
            // notify page manager listeners
            if (newLink)
View Full Code Here

            handlerFactory.getDocumentHandler(PageSecurity.DOCUMENT_TYPE).updateDocument(pageSecurity);
           
            // update parent folder
            if (parentFolder != null)
            {
                NodeSetImpl parentAllNodes = (NodeSetImpl)parentFolder.getAllNodes();
                if (!parentAllNodes.contains(pageSecurity))
                {
                    // add new page security
                    parentAllNodes.add(pageSecurity);
                    newPageSecurity = true;
                }
                else if (parentAllNodes.get(pageSecurity.getPath()) != pageSecurity)
                {
                    // remove stale page security and add updated page security
                    parentAllNodes.remove(pageSecurity);
                    parentAllNodes.add(pageSecurity);
                }
            }
           
            // notify page manager listeners
            if (newPageSecurity)
View Full Code Here

            folderHandler.updateFolder(folder);
           
            // update parent folder
            if (parentFolder != null)
            {
                NodeSetImpl parentAllNodes = (NodeSetImpl)parentFolder.getAllNodes();
                if (!parentAllNodes.contains(folder))
                {
                    // add new folder
                    parentAllNodes.add(folder);
                    newFolder = true;
                }
                else if (parentAllNodes.get(folder.getPath()) != folder)
                {
                    // remove stale folder and add updated folder
                    parentAllNodes.remove(folder);
                    parentAllNodes.add(folder);
                }
            }
           
            // update deep recursively if specified
            if (deep)
View Full Code Here

            }
            catch (SecurityException se)
            {
                if (filteredNodes == null)
                {
                    filteredNodes = new NodeSetImpl(getPath(), ((NodeSetImpl) nodes).getComparator());
                    Iterator copyIter = nodes.iterator();
                    while (copyIter.hasNext())
                    {
                        Node copyNode = (Node)copyIter.next();
                        if (copyNode != node)
View Full Code Here

        {           
            if(metadata.getDocumentOrder() != null)
            {
                if (getPath().endsWith(PATH_SEPARATOR))
                {
                    allNodes = new NodeSetImpl(getPath(), new NodeOrderComparator(metadata.getDocumentOrder(), getPath()));
                }
                else
                {
                    allNodes = new NodeSetImpl(getPath(), new NodeOrderComparator(metadata.getDocumentOrder(), getPath() + PATH_SEPARATOR));
                }
            }
            else
            {
                allNodes = new NodeSetImpl(getPath());
            }

            try
            {
                String[] nodeNames = folderHandler.listAll(getPath());
View Full Code Here

            }
            catch (SecurityException se)
            {
                if (filteredNodes == null)
                {
                    filteredNodes = new NodeSetImpl(getPath(), ((NodeSetImpl) nodes).getComparator());
                    Iterator copyIter = nodes.iterator();
                    while (copyIter.hasNext())
                    {
                        Node copyNode = (Node)copyIter.next();
                        if (copyNode != node)
View Full Code Here

        {           
            if(metadata.getDocumentOrder() != null)
            {
                if (getPath().endsWith(PATH_SEPARATOR))
                {
                    allNodes = new NodeSetImpl(getPath(), new NodeOrderCompartaor(metadata.getDocumentOrder(), getPath()));
                }
                else
                {
                    allNodes = new NodeSetImpl(getPath(), new NodeOrderCompartaor(metadata.getDocumentOrder(), getPath() + PATH_SEPARATOR));
                }
            }
            else
            {
                allNodes = new NodeSetImpl(getPath());
            }
           
            String[] nodeNames = folderHandler.listAll(getPath());
            for (int i = 0; i < nodeNames.length; i++)
            {
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.page.document.psml.NodeSetImpl

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.