1 package dst.ass1.jpa.model;
3 import java.math.BigDecimal;
4 import java.util.Collection;
7 public interface ICourse {
15 void setName(String name);
17 Integer getCapacity();
19 void setCapacity(Integer capacity);
23 void setPremium(Boolean premium);
27 void setCost(BigDecimal cost);
29 CourseStatus getStatus();
31 void setStatus(CourseStatus status);
35 void setStart(Date start);
39 void setEnd(Date end);
41 ICoursePlatform getCoursePlatform();
43 void setCoursePlatform(ICoursePlatform coursePlatform);
45 ILecturer getLecturer();
47 void setLecturer(ILecturer lecturer);
49 Collection<ILesson> getLessons();
51 void setLessons(Collection<ILesson> lessons);
53 void addLesson(ILesson lesson);
55 IMetadata getMetadata();
57 void setMetadata(IMetadata metadata);
59 Collection<IEnrollment> getEnrollments();
61 void setEnrollments(Collection<IEnrollment> enrollments);
63 void addEnrollment(IEnrollment enrollment);