Package com.nicholasalfonso.lato.entity
Class Course
java.lang.Object
com.nicholasalfonso.lato.entity.Course
Represents an academic course that can be manually created or imported from an LMS.
Contains course information, semester details, and relationships to assignments.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration indicating course source (manually created or LMS imported).static enumEnumeration for semester term values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets all assignments in this course.getCode()Gets the course code.getColor()Gets the display color.Gets the creation timestamp.Gets the course end date.Gets the external course ID from the LMS.getId()Gets the course ID.Gets the associated integration.getName()Gets the course name.Gets the course section number.Gets the semester term.Gets the semester year.Gets the course start date.getType()Gets the course type.Gets the last update timestamp.voidsetAssignments(Set<Assignment> assignments) Sets all assignments in this course.voidSets the course code.voidSets the display color.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidsetEndDate(LocalDate endDate) Sets the course end date.voidsetExternalCourseId(String externalCourseId) Sets the external course ID.voidsetId(long l) Sets the course ID.voidsetIntegration(Integration integration) Sets the associated integration.voidSets the course name.voidsetSection(String section) Sets the course section number.voidsetSemesterTerm(Course.SemesterTerm semesterTerm) Sets the semester term.voidsetSemesterYear(Short semesterYear) Sets the semester year.voidsetStartDate(LocalDate startDate) Sets the course start date.voidsetType(Course.CourseType type) Sets the course type.voidsetUpdatedAt(Instant updatedAt) Sets the update timestamp.
-
Constructor Details
-
Course
public Course()
-
-
Method Details
-
getId
Gets the course ID.- Returns:
- course ID
-
getIntegration
Gets the associated integration.- Returns:
- integration reference
-
setIntegration
Sets the associated integration.- Parameters:
integration- integration to set
-
getExternalCourseId
Gets the external course ID from the LMS.- Returns:
- external course ID
-
setExternalCourseId
Sets the external course ID.- Parameters:
externalCourseId- external course ID to set
-
getCode
Gets the course code.- Returns:
- course code
-
setCode
Sets the course code.- Parameters:
code- course code to set
-
getName
Gets the course name.- Returns:
- course name
-
setName
Sets the course name.- Parameters:
name- course name to set
-
getSection
Gets the course section number.- Returns:
- section number
-
setSection
Sets the course section number.- Parameters:
section- section number to set
-
getSemesterTerm
Gets the semester term.- Returns:
- semester term
-
setSemesterTerm
Sets the semester term.- Parameters:
semesterTerm- semester term to set
-
getSemesterYear
Gets the semester year.- Returns:
- semester year
-
setSemesterYear
Sets the semester year.- Parameters:
semesterYear- semester year to set
-
getColor
Gets the display color.- Returns:
- hex color code
-
setColor
Sets the display color.- Parameters:
color- hex color code to set
-
getStartDate
Gets the course start date.- Returns:
- start date
-
setStartDate
Sets the course start date.- Parameters:
startDate- start date to set
-
getEndDate
Gets the course end date.- Returns:
- end date
-
setEndDate
Sets the course end date.- Parameters:
endDate- end date to set
-
getCreatedAt
Gets the creation timestamp.- Returns:
- creation timestamp
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- creation timestamp to set
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- update timestamp
-
setUpdatedAt
Sets the update timestamp.- Parameters:
updatedAt- update timestamp to set
-
getAssignments
Gets all assignments in this course.- Returns:
- set of assignments
-
setAssignments
Sets all assignments in this course.- Parameters:
assignments- assignments to set
-
getType
Gets the course type.- Returns:
- course type
-
setType
Sets the course type.- Parameters:
type- course type to set
-
setId
public void setId(long l) Sets the course ID.- Parameters:
l- ID to set
-