Package org.motechproject.mots.domain
Class Course
- java.lang.Object
-
- org.motechproject.mots.domain.BaseEntity
-
- org.motechproject.mots.domain.BaseTimestampedEntity
-
- org.motechproject.mots.domain.IvrObject
-
- org.motechproject.mots.domain.Course
-
-
Constructor Summary
Constructors Constructor Description Course()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoursecopyAsNewDraft()Create draft copy of released course.CourseModulefindCourseModuleByModuleId(java.util.UUID id)Find CourseModule with Module with given id.java.util.List<Module>getModules()Get list of modules.java.util.List<Module>getNewVersionModules()java.util.List<CourseModule>getReleasedCourseModules()static Courseinitialize()Initialize Course.voidrelease()Release the Course.voidsetCourseModules(java.util.List<CourseModule> courseModules)Update list content.
-
-
-
Method Detail
-
initialize
public static Course initialize()
Initialize Course.- Returns:
- course with initial values
-
setCourseModules
public void setCourseModules(java.util.List<CourseModule> courseModules)
Update list content.- Parameters:
courseModules- list of new Units
-
getModules
public java.util.List<Module> getModules()
Get list of modules.- Returns:
- list of modules
-
copyAsNewDraft
public Course copyAsNewDraft()
Create draft copy of released course.- Returns:
- draft copy of course
-
findCourseModuleByModuleId
public CourseModule findCourseModuleByModuleId(java.util.UUID id)
Find CourseModule with Module with given id.- Parameters:
id- of Module- Returns:
- found CourseModule
-
release
public void release()
Release the Course.
-
getNewVersionModules
public java.util.List<Module> getNewVersionModules()
-
getReleasedCourseModules
public java.util.List<CourseModule> getReleasedCourseModules()
-
-