Coverage Report - org.kuali.rice.kew.docsearch.DocumentSearchGenerator
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentSearchGenerator
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2007 The Kuali Foundation
 3  
  *
 4  
  *
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  *
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.kuali.rice.kew.docsearch;
 18  
 
 19  
 import org.kuali.rice.kew.exception.WorkflowServiceError;
 20  
 import org.kuali.rice.kns.util.MessageMap;
 21  
 
 22  
 import java.sql.ResultSet;
 23  
 import java.sql.SQLException;
 24  
 import java.sql.Statement;
 25  
 import java.util.List;
 26  
 
 27  
 
 28  
 /**
 29  
  * TODO delyea - documentation
 30  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 31  
  */
 32  
 public interface DocumentSearchGenerator {
 33  
         public static final int DEFAULT_SEARCH_RESULT_CAP = 500;
 34  
 
 35  
         public void setSearchingUser(String principalId);
 36  
     public List<WorkflowServiceError> performPreSearchConditions(String principalId, DocSearchCriteriaDTO searchCriteria);
 37  
     public List<WorkflowServiceError> validateSearchableAttributes(DocSearchCriteriaDTO searchCriteria);
 38  
     public String generateSearchSql(DocSearchCriteriaDTO searchCriteria);
 39  
     /**
 40  
      * @deprecated Removed as of version 0.9.3.  Use {@link DocumentSearchGenerator#processResultSet(java.sql.Statement, java.sql.ResultSet, DocSearchCriteriaDTO, String)}
 41  
      */
 42  
     public List<DocSearchDTO> processResultSet(Statement searchAttributeStatement, ResultSet resultSet,DocSearchCriteriaDTO searchCriteria) throws SQLException;
 43  
 
 44  
 
 45  
     /**
 46  
      * This method processes search results in the given <code>resultSet</code> into {@link DocSearchDTO} objects
 47  
      *
 48  
      * @param searchAttributeStatement - statement to use when fetching search attributes
 49  
      * @param resultSet - resultSet containing data from document search main tables
 50  
      * @param searchCriteria - criteria used to perform the search
 51  
      * @param principalId - user who performed the search
 52  
      * @return a list of DocSearchDTO objects (one for each route header id)
 53  
      * @throws SQLException
 54  
      */
 55  
     public List<DocSearchDTO> processResultSet(Statement searchAttributeStatement, ResultSet resultSet,DocSearchCriteriaDTO searchCriteria, String principalId) throws SQLException;
 56  
     public DocSearchCriteriaDTO clearSearch(DocSearchCriteriaDTO searchCriteria);
 57  
 
 58  
     public int getDocumentSearchResultSetLimit();
 59  
 
 60  
     /**
 61  
      *
 62  
      * This method returns if processResultSet should be called.
 63  
      *
 64  
      * @return
 65  
      */
 66  
     public boolean isProcessResultSet();
 67  
     public void setProcessResultSet(boolean isProcessResultSet);
 68  
 
 69  
     public MessageMap getMessageMap(DocSearchCriteriaDTO searchCriteria);
 70  
 
 71  
 }