Class InstructorStaffService

java.lang.Object
edu.ucsb.cs156.frontiers.services.InstructorStaffService

@Service public class InstructorStaffService extends Object
Keeps the instructor of each course listed as one of that course's staff members.
  • Constructor Details

  • Method Details

    • ensureInstructorIsStaff

      public void ensureInstructorIsStaff(Course course)
      Adds the course's instructor as a staff member, unless they already are one.
    • ensureAllInstructorsAreStaff

      public void ensureAllInstructorsAreStaff()
      Checks every course and fixes any where the instructor is not a staff member.