|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.courses.dao.MergingCoursesDaoImpl
public class MergingCoursesDaoImpl
MergingCoursesDaoImpl merges together information from multiple data sources. This implementation will merge together matching terms and courses that contain identical IDs. In the case that two sources specify information for a single-value property (e.g. GPA), the last DAO in the list will be given priority. In the case of multi-valued list properties (instructors), the lists from each source will be merged together.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
MergingCoursesDaoImpl()
|
|
| Method Summary | |
|---|---|
CoursesByTerm |
getCoursesByTerm(javax.portlet.PortletRequest request,
String termCode)
Get courses for a term for the current user |
TermList |
getTermList(javax.portlet.PortletRequest request)
Get a term list for the current user |
protected void |
mergeCourse(Course original,
Course additional)
Merge together information from the additional course into the provided original course. |
protected void |
mergeCourseSummaries(CoursesByTerm original,
CoursesByTerm additional)
|
protected void |
mergeTermSummaries(TermList original,
TermList additional)
|
void |
setCourseDaos(List<ICoursesDao> courseDaos)
Set the list of course DAOs to be called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public MergingCoursesDaoImpl()
| Method Detail |
|---|
public void setCourseDaos(List<ICoursesDao> courseDaos)
courseDaos - public TermList getTermList(javax.portlet.PortletRequest request)
ICoursesDao
getTermList in interface ICoursesDao
public CoursesByTerm getCoursesByTerm(javax.portlet.PortletRequest request,
String termCode)
ICoursesDao
getCoursesByTerm in interface ICoursesDao
protected void mergeTermSummaries(TermList original,
TermList additional)
protected void mergeCourseSummaries(CoursesByTerm original,
CoursesByTerm additional)
protected void mergeCourse(Course original,
Course additional)
original - additional -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||