View Javadoc
1   /**
2    * 
3    */
4   package org.kuali.mobility.grades.service;
5   
6   import java.util.Date;
7   import java.util.List;
8   
9   import org.kuali.mobility.grades.dao.GradesDao;
10  import org.kuali.mobility.grades.entity.ModuleResults;
11  import org.springframework.beans.factory.annotation.Autowired;
12  import org.springframework.stereotype.Service;
13  
14  /**
15   * Implementation of the <code>GradesService</code>
16   * @author Charl Thiem
17   *
18   */
19  @Service("gradesService")
20  public class GradesServiceImpl implements GradesService {
21  
22  	/**
23  	 * Data Access object for grades
24  	 */
25  	@Autowired
26  	private GradesDao gradesDao;
27  	
28  	/* (non-Javadoc)
29  	 * @see org.kuali.mobility.grades.service.GradesService#setDao(org.kuali.mobility.grades.dao.GradesDao)
30  	 */
31  	@Override
32  	public void setDao(GradesDao dao) {
33  		this.gradesDao = dao;
34  	}
35  
36  	/* (non-Javadoc)
37  	 * @see org.kuali.mobility.grades.service.GradesService#getDao()
38  	 */
39  	@Override
40  	public GradesDao getDao() {
41  		return this.gradesDao;
42  	}
43  
44  	/* (non-Javadoc)
45  	 * @see org.kuali.mobility.grades.service.GradesService#getResults(java.sql.Date, java.sql.Date, java.lang.String, java.lang.String)
46  	 */
47  	@Override
48  	public List<ModuleResults> getResults(Date startDate, Date endDate, String username, String locale) {
49  		return this.gradesDao.getResults(startDate, endDate, username, locale);
50  	}
51  
52  }