Class RepositoryService
java.lang.Object
edu.ucsb.cs156.frontiers.services.RepositoryService
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryService
(JwtService jwtService, org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createStudentRepository
(Course course, RosterStudent student, String repoPrefix, Boolean isPrivate, RepositoryPermissions permissions) Creates a single student repository if it doesn't already exist, and provisions access to the repository by that student
-
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 questionstudent
- RosterStudent of the student the repository should be created forrepoPrefix
- Name of the project or assignment. Used to title the repository, in the format repoPrefix-githubLoginisPrivate
- Whether the repository is private or not- Throws:
NoSuchAlgorithmException
InvalidKeySpecException
com.fasterxml.jackson.core.JsonProcessingException
-