Examples of findResources()


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

                buf.append(" descending");
            } else {
                buf.append(Job.PROPERTY_JOB_CREATED);
                buf.append(" ascending");
            }
            final Iterator<Resource> iter = resolver.findResources(buf.toString(), "xpath");
            long count = 0;

            while ( iter.hasNext() && (limit < 1 || count < limit) ) {
                final Resource jobResource = iter.next();
                // sanity check for the path
View Full Code Here

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

            buf.append(" < xs:dateTime('");
            buf.append(ISO8601.format(startDate));
            buf.append("')] order by @");
            buf.append(ISO9075.encode(JobUtil.PROPERTY_JOB_CREATED));
            buf.append(" ascending");
            final Iterator<Resource> result = resolver.findResources(buf.toString(), "xpath");

            while ( result.hasNext() ) {
                final Resource eventResource = result.next();
                // sanity check for the path
                if ( eventResource.getPath().startsWith(this.config.getResourcePathWithSlash()) ) {
View Full Code Here

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

            buf.append(" < xs:dateTime('");
            buf.append(ISO8601.format(startDate));
            buf.append("')] order by @");
            buf.append(ISO9075.encode(org.apache.sling.event.jobs.Job.PROPERTY_JOB_CREATED));
            buf.append(" ascending");
            final Iterator<Resource> result = resolver.findResources(buf.toString(), "xpath");

            while ( result.hasNext() ) {
                final Resource eventResource = result.next();
                // sanity check for the path
                if ( eventResource.getPath().startsWith(this.configuration.getScheduledJobsPath(true)) ) {
View Full Code Here

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

            jsonWriter.array();

            if (StringUtils.isNotBlank(vanityPath)) {
                String xpath = "//element(*)[" + NameConstants.PN_SLING_VANITY_PATH + "='" + vanityPath + "']";
                @SuppressWarnings("deprecation")
                Iterator<Resource> resources = resolver.findResources(xpath, Query.XPATH);
                while (resources.hasNext()) {
                    Resource resource = resources.next();
                    String path = resource.getPath();
                    if (path.startsWith("/content") && !path.equals(pagePath)) {
                        jsonWriter.value(path);
View Full Code Here

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

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

            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

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

                    + "'" + 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

Examples of org.camunda.bpm.container.impl.deployment.scanning.VfsProcessApplicationScanner.findResources()

      final VfsProcessApplicationScanner scanner = new VfsProcessApplicationScanner();

      String resourceRootPath = processArchive.getProperties().get(ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH);
      String[] additionalResourceSuffixes = StringUtil.split(processArchive.getProperties().get(ProcessArchiveXml.PROP_ADDITIONAL_RESOURCE_SUFFIXES), ProcessArchiveXml.PROP_ADDITIONAL_RESOURCE_SUFFIXES_SEPARATOR);
      URL processesXmlUrl = vfsFileAsUrl(processesXmlFile);
      resources.putAll(scanner.findResources(classLoader, resourceRootPath, processesXmlUrl, additionalResourceSuffixes));
    }

    return resources;
  }
View Full Code Here

Examples of org.camunda.bpm.container.impl.deployment.scanning.spi.ProcessApplicationScanner.findResources()

    } catch (Throwable t) {
      scanner = new ClassPathProcessApplicationScanner();
    }

    return scanner.findResources(classLoader, paResourceRootPath, metaFileUrl, additionalResourceSuffixes);

  }

  public static boolean isDeployable(String filename) {
    return hasSuffix(filename, BpmnDeployer.BPMN_RESOURCE_SUFFIXES) || hasSuffix(filename, CmmnDeployer.CMMN_RESOURCE_SUFFIXES);
View Full Code Here

Examples of org.codehaus.plexus.classworlds.realm.ClassRealm.findResources()

        ClassRealm sourceRealm = getRealm().locateSourceRealm( name );

        if ( sourceRealm != getRealm() )
        {
            // Attempt to load directly first, then go to the imported packages.
            for ( Enumeration res = sourceRealm.findResources( name ); res.hasMoreElements(); )
            {
                resources.addElement( res.nextElement() );
                }
            }
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.