Package org.jayasoft.woj.common.model.search

Examples of org.jayasoft.woj.common.model.search.HitRevision


        for (Iterator iter = searchResult.getHits().iterator(); iter.hasNext();) {
          Hit hit = (Hit) iter.next();
          if (org.equals(hit.getOrganisation()) && name.equals(hit.getModule())) {
            Collection revisions = hit.getRevisions();
            for (Iterator iterator = revisions.iterator(); iterator.hasNext();) {
              HitRevision s = (HitRevision) iterator.next();
              if (rev.equals(s.getRevision())) {
                result.add(s.getPath().substring(s.getPath().indexOf("sources") + "sources".length() + 1));
              }
            }
          }
        }
        String[] array = (String[]) result.toArray(new String[result.size()]);
View Full Code Here


        for (Iterator iter = searchResult.getHits().iterator(); iter.hasNext();) {
          Hit hit = (Hit) iter.next();
          if (org.equals(hit.getOrganisation()) && name.equals(hit.getModule())) {
            Collection revisions = hit.getRevisions();
            for (Iterator iterator = revisions.iterator(); iterator.hasNext();) {
              HitRevision s = (HitRevision) iterator.next();
              result.add(s.getRevision());
            }
          }
        }
        String[] array = (String[]) result.toArray(new String[result.size()]);
        Arrays.sort(array);
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.common.model.search.HitRevision

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.