Class Course

java.lang.Object
com.nicholasalfonso.lato.entity.Course

@Entity public class Course extends Object
Represents an academic course that can be manually created or imported from an LMS. Contains course information, semester details, and relationships to assignments.
  • Constructor Details

    • Course

      public Course()
  • Method Details

    • getId

      public Long getId()
      Gets the course ID.
      Returns:
      course ID
    • getIntegration

      public Integration getIntegration()
      Gets the associated integration.
      Returns:
      integration reference
    • setIntegration

      public void setIntegration(Integration integration)
      Sets the associated integration.
      Parameters:
      integration - integration to set
    • getExternalCourseId

      public String getExternalCourseId()
      Gets the external course ID from the LMS.
      Returns:
      external course ID
    • setExternalCourseId

      public void setExternalCourseId(String externalCourseId)
      Sets the external course ID.
      Parameters:
      externalCourseId - external course ID to set
    • getCode

      public String getCode()
      Gets the course code.
      Returns:
      course code
    • setCode

      public void setCode(String code)
      Sets the course code.
      Parameters:
      code - course code to set
    • getName

      public String getName()
      Gets the course name.
      Returns:
      course name
    • setName

      public void setName(String name)
      Sets the course name.
      Parameters:
      name - course name to set
    • getSection

      public String getSection()
      Gets the course section number.
      Returns:
      section number
    • setSection

      public void setSection(String section)
      Sets the course section number.
      Parameters:
      section - section number to set
    • getSemesterTerm

      public Course.SemesterTerm getSemesterTerm()
      Gets the semester term.
      Returns:
      semester term
    • setSemesterTerm

      public void setSemesterTerm(Course.SemesterTerm semesterTerm)
      Sets the semester term.
      Parameters:
      semesterTerm - semester term to set
    • getSemesterYear

      public Short getSemesterYear()
      Gets the semester year.
      Returns:
      semester year
    • setSemesterYear

      public void setSemesterYear(Short semesterYear)
      Sets the semester year.
      Parameters:
      semesterYear - semester year to set
    • getColor

      public String getColor()
      Gets the display color.
      Returns:
      hex color code
    • setColor

      public void setColor(String color)
      Sets the display color.
      Parameters:
      color - hex color code to set
    • getStartDate

      public LocalDate getStartDate()
      Gets the course start date.
      Returns:
      start date
    • setStartDate

      public void setStartDate(LocalDate startDate)
      Sets the course start date.
      Parameters:
      startDate - start date to set
    • getEndDate

      public LocalDate getEndDate()
      Gets the course end date.
      Returns:
      end date
    • setEndDate

      public void setEndDate(LocalDate endDate)
      Sets the course end date.
      Parameters:
      endDate - end date to set
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp.
      Returns:
      creation timestamp
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
      Sets the creation timestamp.
      Parameters:
      createdAt - creation timestamp to set
    • getUpdatedAt

      public Instant getUpdatedAt()
      Gets the last update timestamp.
      Returns:
      update timestamp
    • setUpdatedAt

      public void setUpdatedAt(Instant updatedAt)
      Sets the update timestamp.
      Parameters:
      updatedAt - update timestamp to set
    • getAssignments

      public Set<Assignment> getAssignments()
      Gets all assignments in this course.
      Returns:
      set of assignments
    • setAssignments

      public void setAssignments(Set<Assignment> assignments)
      Sets all assignments in this course.
      Parameters:
      assignments - assignments to set
    • getType

      public Course.CourseType getType()
      Gets the course type.
      Returns:
      course type
    • setType

      public void setType(Course.CourseType type)
      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