1 package org.kuali.student.ap.bookmark.dto;
2
3 import org.kuali.student.ap.common.infc.HasUniqueId;
4 import org.kuali.student.ap.coursesearch.dataobject.CourseDetailsWrapper;
5
6 import java.util.Date;
7
8
9
10
11
12
13
14
15 public class BookmarkDetailWrapper implements HasUniqueId, Comparable<BookmarkDetailWrapper> {
16 private Date dateAdded;
17 private String learningPlanId;
18 private String planItemId;
19 private String uniqueId;
20
21 private CourseDetailsWrapper courseDetailsWrapper;
22
23 public String getLearningPlanId() {
24 return learningPlanId;
25 }
26
27 public void setLearningPlanId(String learningPlanId) {
28 this.learningPlanId = learningPlanId;
29 }
30
31 public String getPlanItemId() {
32 return planItemId;
33 }
34
35 public void setPlanItemId(String planItemId) {
36 this.planItemId = planItemId;
37 }
38
39 @Override
40 public String getUniqueId() {
41 return uniqueId;
42 }
43
44 public void setUniqueId(String uniqueId) {
45 this.uniqueId = uniqueId;
46 }
47
48 public Date getDateAdded() {
49 return dateAdded;
50 }
51
52 public void setDateAdded(Date dateAdded) {
53 this.dateAdded = dateAdded;
54 }
55
56 public CourseDetailsWrapper getCourseDetailsWrapper() {
57 return courseDetailsWrapper;
58 }
59
60 public void setCourseDetailsWrapper(CourseDetailsWrapper courseDetailsWrapper) {
61 this.courseDetailsWrapper = courseDetailsWrapper;
62 }
63
64 @Override
65 public int compareTo(BookmarkDetailWrapper o) {
66 return this.getCourseDetailsWrapper().getCourseCode().compareTo(o.getCourseDetailsWrapper().getCourseCode());
67 }
68 }