Package org.kuali.rice.kew.api.document.search

Examples of org.kuali.rice.kew.api.document.search.DocumentSearchResults


    for (SearchTestCriteria crit: testCriteria) {
      criteria.getDocumentAttributeValues().clear();
      for (String fieldName: crit.getFieldNamesToSearchValues().keySet()) {
        criteria.addDocumentAttributeValue(fieldName,  crit.getFieldNamesToSearchValues().get(fieldName));
      }
      DocumentSearchResults results = KEWServiceLocator.getDocumentSearchService().lookupDocuments(
          KimApiServiceLocator.getIdentityService().getPrincipalByPrincipalName("clerk1").getPrincipalId(),
          criteria.build());
      assertEquals("expected number of documents not found for " + crit.toString(),
          crit.getExpectedDocuments(), results.getSearchResults().size());
      resultsList.add(results);
    }
    return resultsList;
  }
View Full Code Here

TOP

Related Classes of org.kuali.rice.kew.api.document.search.DocumentSearchResults

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.