Examples of PropertyIteratorAdapter


Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

        return perform(new NodeOperation<PropertyIterator>(dlg) {
            @Override
            public PropertyIterator perform() throws RepositoryException {
                Iterator<PropertyDelegate> properties = node.getProperties();
                long size = node.getPropertyCount();
                return new PropertyIteratorAdapter(
                        propertyIterator(properties), size);
            }
        });
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

                            public boolean apply(PropertyDelegate entry) {
                                // TODO: use Oak names
                                return ItemNameMatcher.matches(toJcrPath(entry.getName()), namePattern);
                            }
                        });
                return new PropertyIteratorAdapter(propertyIterator(properties));
            }
        });
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

                            public boolean apply(PropertyDelegate entry) {
                                // TODO: use Oak names
                                return ItemNameMatcher.matches(toJcrPath(entry.getName()), nameGlobs);
                            }
                        });
                return new PropertyIteratorAdapter(propertyIterator(propertyNames));
            }
        });
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

                                return pd == null ? null : new PropertyImpl(pd, sessionContext);
                            }
                        }
                );

                return new PropertyIteratorAdapter(sessionDelegate.sync(properties.iterator()));
            }
        });
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

            } else {
                throw new PathNotFoundException("Couldn't find matching external property reference for name " + foundPropertyName);
            }

        }
        return new PropertyIteratorAdapter(matchingProperties.iterator());
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

    public PropertyIterator getProperties(String namePattern) throws RepositoryException {
        checkStatus();
        ArrayList properties = new ArrayList();
        // traverse children using a filtering item visitor
        accept(new ChildrenCollectorFilter(namePattern, properties, false, true, 1));
        return new PropertyIteratorAdapter(properties);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

            throws RepositoryException {
        checkStatus();
        List properties = new ArrayList();
        // traverse child properties using a filtering item visitor
        accept(new ChildrenCollectorFilter(nameGlobs, properties, true, false, 1));
        return new PropertyIteratorAdapter(properties);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

        sanityCheck();

        ArrayList properties = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, properties, false, true, 1));
        return new PropertyIteratorAdapter(properties);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

                }
            }
            if (l.isEmpty()) {
                return PropertyIteratorAdapter.EMPTY;
            } else {
                return new PropertyIteratorAdapter(l);
            }
        } catch (RepositoryException e) {
            String msg = "Unable to retrieve WEAKREFERENCE properties that refer to " + id;
            log.debug(msg);
            throw new RepositoryException(msg, e);
View Full Code Here

Examples of org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter

        sanityCheck();

        ArrayList props = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(nameGlobs, props, true, false, 1));
        return new PropertyIteratorAdapter(props);
    }
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.