1 /** 2 * Copyright 2011-2012 The Kuali Foundation Licensed under the 3 * Educational Community License, Version 2.0 (the "License"); you may 4 * not use this file except in compliance with the License. You may 5 * obtain a copy of the License at 6 * 7 * http://www.osedu.org/licenses/ECL-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, 10 * software distributed under the License is distributed on an "AS IS" 11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 12 * or implied. See the License for the specific language governing 13 * permissions and limitations under the License. 14 */ 15 package org.kuali.mobility.people.entity; 16 17 import java.util.List; 18 19 /** 20 * Interface for search results 21 * @author Kuali Mobility Team (mobility.collab@kuali.org) 22 * @since 23 */ 24 public interface SearchResult { 25 26 /** 27 * Sets the <code>SearchCriteria</code>. 28 * @param criteria The <code>SearchCriteria</code>. 29 */ 30 void setSearchCriteria(SearchCriteria criteria); 31 32 /** 33 * Gets the <code>SearchCriteria</code>. 34 * @return The <code>SearchCriteria</code>. 35 */ 36 SearchCriteria getSearchCriteria(); 37 38 /** 39 * Gets the error Strubg 40 * @return the error 41 */ 42 String getError(); 43 44 /** 45 * Gets the Groups 46 * @return the groups 47 */ 48 List<? extends Group> getGroups(); 49 50 /** 51 * Gets the people 52 * @return the people 53 */ 54 List<? extends Person> getPeople(); 55 56 /** 57 * Sets the error String 58 * @param error the error to set 59 */ 60 void setError(String error); 61 62 /** 63 * Sets the Groups 64 * @param groups the groups to set 65 */ 66 void setGroups(List<? extends Group> groups); 67 68 /** 69 * Sets the people 70 * @param people the people to set 71 */ 72 void setPeople(List<? extends Person> people); 73 74 }