Class CreateTeamsFromCATMEJob

java.lang.Object
edu.ucsb.cs156.frontiers.jobs.CreateTeamsFromCATMEJob
All Implemented Interfaces:
edu.ucsb.cs156.jobs.services.JobContextConsumer

public class CreateTeamsFromCATMEJob extends Object implements edu.ucsb.cs156.jobs.services.JobContextConsumer
Creates teams in Frontiers from the team assignments of a CATME TeamMaker CSV export, and adds each student to their team. Teams that already exist are reused; students already on their team are left alone. Nothing is pushed to GitHub: that is a separate step (Push Teams to GitHub, on the Teams tab).

The assignments are expected to have passed the CATME audit first, so every student in them should be an enrolled student of the course; any that is not is logged and skipped.

  • Constructor Details

    • CreateTeamsFromCATMEJob

      public CreateTeamsFromCATMEJob()
  • Method Details

    • getAssignments

      public List<CATMETeamAssignment> getAssignments()
      Returns:
      the team assignments this job was given
    • getScopeType

      public String getScopeType()
      Specified by:
      getScopeType in interface edu.ucsb.cs156.jobs.services.JobContextConsumer
    • getScopeId

      public Long getScopeId()
      Specified by:
      getScopeId in interface edu.ucsb.cs156.jobs.services.JobContextConsumer
    • accept

      public void accept(edu.ucsb.cs156.jobs.services.JobContext ctx) throws Exception
      Specified by:
      accept in interface edu.ucsb.cs156.jobs.services.JobContextConsumer
      Throws:
      Exception