Package org.apache.jackrabbit.webdav.bind

Examples of org.apache.jackrabbit.webdav.bind.ParentElement


                NodeIterator sharedSetIterator = node.getSharedSet();
                while (sharedSetIterator.hasNext()) {
                    Node sharednode = sharedSetIterator.nextNode();
                    DavResourceLocator loc = locator.getFactory().createResourceLocator(
                            locator.getPrefix(), locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                    ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
                }
                return ps;
            }
        } catch (RepositoryException e) {
            log.warn("unable to calculate parent set", e);
View Full Code Here


                NodeIterator sharedSetIterator = node.getSharedSet();
                while (sharedSetIterator.hasNext()) {
                    Node sharednode = sharedSetIterator.nextNode();
                    DavResourceLocator loc = locator.getFactory().createResourceLocator(
                            locator.getPrefix(), locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                    ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
                }
                return ps;
            }
        } catch (RepositoryException e) {
            log.warn("unable to calculate parent set", e);
View Full Code Here

                NodeIterator sharedSetIterator = node.getSharedSet();
                while (sharedSetIterator.hasNext()) {
                    Node sharednode = sharedSetIterator.nextNode();
                    DavResourceLocator loc = locator.getFactory().createResourceLocator(
                            locator.getPrefix(), locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                    ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
                }
                return ps;
            }
        } catch (RepositoryException e) {
            log.warn("unable to calculate parent set", e);
View Full Code Here

                NodeIterator sharedSetIterator = node.getSharedSet();
                while (sharedSetIterator.hasNext()) {
                    Node sharednode = sharedSetIterator.nextNode();
                    DavResourceLocator loc = locator.getFactory().createResourceLocator(
                            locator.getPrefix(), locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                    ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
                }
                return ps;
            }
        } catch (RepositoryException e) {
            log.warn("unable to calculate parent set", e);
View Full Code Here

                NodeIterator sharedSetIterator = node.getSharedSet();
                while (sharedSetIterator.hasNext()) {
                    Node sharednode = sharedSetIterator.nextNode();
                    DavResourceLocator loc = locator.getFactory().createResourceLocator(
                            locator.getPrefix(), locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                    ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
                }
                return ps;
            }
        } catch (RepositoryException e) {
            log.warn("unable to calculate parent set", e);
View Full Code Here

            for (int k = 0; k < 2; k++) {
                Object pObj1 = plist1.get(k);
                Object pObj2 = plist2.get(k);
                assertTrue(pObj1 instanceof Element);
                assertTrue(pObj2 instanceof Element);
                ParentElement p1 = ParentElement.createFromXml((Element) pObj1);
                ParentElement p2 = ParentElement.createFromXml((Element) pObj2);
                hrefs1.add(p1.getHref());
                hrefs2.add(p2.getHref());
                segments1.add(p1.getSegment());
                segments2.add(p2.getSegment());
            }
            Collections.sort(hrefs1);
            Collections.sort(hrefs2);
            Collections.sort(segments1);
            Collections.sort(segments2);
View Full Code Here

                NodeIterator sharedSetIterator = node.getSharedSet();
                while (sharedSetIterator.hasNext()) {
                    Node sharednode = sharedSetIterator.nextNode();
                    DavResourceLocator loc = locator.getFactory().createResourceLocator(
                            locator.getPrefix(), locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                    ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
                }
                return ps;
            }
        } catch (UnsupportedRepositoryOperationException e) {
            log.debug("unable to calculate parent set", e);
View Full Code Here

                NodeIterator sharedSetIterator = node.getSharedSet();
                while (sharedSetIterator.hasNext()) {
                    Node sharednode = sharedSetIterator.nextNode();
                    DavResourceLocator loc = locator.getFactory().createResourceLocator(
                            locator.getPrefix(), locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                    ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
                }
                return ps;
            }
        } catch (RepositoryException e) {
            log.warn("unable to calculate parent set", e);
View Full Code Here

        try {
            //TODO remove this check once jcr2 is out
            if (!(this.node instanceof org.apache.jackrabbit.api.jsr283.Node)) {
                DavResourceLocator loc = this.locator.getFactory().createResourceLocator(
                        this.locator.getPrefix(), this.locator.getWorkspacePath(), this.node.getParent().getPath(), false);
                return Collections.singleton(new ParentElement(loc.getHref(true), this.node.getName()));
            }
            Set ps = new HashSet();
            NodeIterator sharedSetIterator = ((org.apache.jackrabbit.api.jsr283.Node) this.node).getSharedSet();
            while (sharedSetIterator.hasNext()) {
                Node sharednode = sharedSetIterator.nextNode();
                DavResourceLocator loc = this.locator.getFactory().createResourceLocator(
                        this.locator.getPrefix(), this.locator.getWorkspacePath(), sharednode.getParent().getPath(), false);
                ps.add(new ParentElement(loc.getHref(true), sharednode.getName()));
            }
            return ps;
        } catch (RepositoryException e) {
            log.warn("unable to calculate parent set", e);
            return Collections.EMPTY_SET;
View Full Code Here

            for (int k = 0; k < 2; k++) {
                Object pObj1 = plist1.get(k);
                Object pObj2 = plist2.get(k);
                assertTrue(pObj1 instanceof Element);
                assertTrue(pObj2 instanceof Element);
                ParentElement p1 = ParentElement.createFromXml((Element) pObj1);
                ParentElement p2 = ParentElement.createFromXml((Element) pObj2);
                hrefs1.add(p1.getHref());
                hrefs2.add(p2.getHref());
                segments1.add(p1.getSegment());
                segments2.add(p2.getSegment());
            }
            Collections.sort(hrefs1);
            Collections.sort(hrefs2);
            Collections.sort(segments1);
            Collections.sort(segments2);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.webdav.bind.ParentElement

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.