View Javadoc

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  
16  package org.kuali.mobility.grades.service;
17  
18  import java.util.Date;
19  import java.util.List;
20  
21  import org.kuali.mobility.grades.dao.GradesDao;
22  import org.kuali.mobility.grades.entity.ModuleResults;
23  
24  /**
25   * Service to retrieve available grades for a students.
26   * @author Charl Thiem
27   */
28  public interface GradesService {
29  	
30  	public void setDao(GradesDao dao);
31  	public GradesDao getDao();
32  
33  
34  	/**
35  	 * Gets the Student results
36  	 * @param startDate Start date to query from.
37  	 * @param endDate End date to query to.
38  	 * @param username Username to get results of
39  	 * @param locale Locale to get results in
40  	 * @return The list of available results for the specified dates an user
41  	 */
42  	public abstract List<ModuleResults> getResults(Date startDate, Date endDate, String username, String locale);
43  }