Package org.apache.sling.api.resource

Examples of org.apache.sling.api.resource.ResourceProvider.listChildren()


     * @see ResourceProvider#listChildren(Resource)
     */
    public Iterator<Resource> listChildren(final ResourceResolverContext ctx, final Resource parent) {
        final ResourceProvider rp = this.getResourceProvider(ctx);
        if ( rp != null ) {
            return getReadableChildrenIterator( ctx, rp.listChildren(parent) );
        }
        return null;
    }

    /**
 
View Full Code Here


            private Resource seek() {
                for (;;) {
                    while ((resources == null || !resources.hasNext())
                        && providers.hasNext()) {
                        ResourceProvider provider = providers.next();
                        resources = provider.listChildren(resource);
                    }

                    if (resources != null && resources.hasNext()) {
                        Resource res = resources.next();
                        if (res instanceof SyntheticResource) {
View Full Code Here

            private Resource seek() {
                for (;;) {
                    while ((resources == null || !resources.hasNext())
                        && providers.hasNext()) {
                        ResourceProvider provider = providers.next();
                        resources = provider.listChildren(resource);
                    }

                    if (resources != null && resources.hasNext()) {
                        Resource res = resources.next();
                        String resPath = res.getPath();
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.