Class RepositoryService

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

@Service public class RepositoryService extends Object
  • Constructor Details

    • RepositoryService

      public RepositoryService(JwtService jwtService, org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • createStudentRepository

      public void createStudentRepository(Course course, RosterStudent student, String repoPrefix, Boolean isPrivate, RepositoryPermissions permissions) throws NoSuchAlgorithmException, InvalidKeySpecException, com.fasterxml.jackson.core.JsonProcessingException
      Creates a single student repository if it doesn't already exist, and provisions access to the repository by that student
      Parameters:
      course - The Course in question
      student - RosterStudent of the student the repository should be created for
      repoPrefix - Name of the project or assignment. Used to title the repository, in the format repoPrefix-githubLogin
      isPrivate - Whether the repository is private or not
      Throws:
      NoSuchAlgorithmException
      InvalidKeySpecException
      com.fasterxml.jackson.core.JsonProcessingException