Package org.apache.sling.api.resource

Examples of org.apache.sling.api.resource.ResourceResolver.findResources()


            pw.println("<p class='statline ui-state-highlight'>Inbox Notification Configurations</p>");
            pw.println("<ul>");

            @SuppressWarnings("deprecation")
            Iterator<Resource> configured = resolver
                    .findResources(
                            "/jcr:root//element(*, rep:User)/wcm/notification/config/subscriptions/element(*)[@channel='inbox']",
                            Query.XPATH);
            while (configured.hasNext()) {
                String path = configured.next().getPath();
View Full Code Here


            pw.println("<p class='statline ui-state-highlight'>Inbox Notification Sizes</p>");
            pw.println("<table class='content'>");
            pw.println("<tr><th class='content'>Path</th><th class='content'>Count</th><th class='content'>In Last 24 Hours</th><th></th></tr>");

            @SuppressWarnings("deprecation")
            Iterator<Resource> inboxes = resolver.findResources(
                    "/jcr:root//element(*, rep:User)/wcm/notification/inbox", Query.XPATH);
            while (inboxes.hasNext()) {
                Resource inbox = inboxes.next();
                long[] childCount = countChildren(inbox, yesterday);
                pw.printf(
View Full Code Here

                    + "'" + SLING_RESOURCE_TYPE + "'"
                    + " AND [" + KEY_STATE + "] = '" + STATE_STOPPED_DEACTIVATED + "'";

            log.debug("Finding bulk workflows to reactivate using query: {}", query);

            final Iterator<Resource> resources = adminResourceResolver.findResources(query, Query.JCR_SQL2);

            while (resources.hasNext()) {
                final Resource resource = resources.next();
                log.info("Automatically resuming bulk workflow at [ {} ]", resource.getPath());
                this.resume(resource);
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.