Uses of Class
edu.ucsb.cs156.frontiers.entities.Course
Packages that use Course
Package
Description
-
Uses of Course in edu.ucsb.cs156.frontiers.config
Methods in edu.ucsb.cs156.frontiers.config with parameters of type CourseModifier and TypeMethodDescriptionCourseSecurity.baseHasManagePermissions(org.springframework.security.access.expression.method.MethodSecurityExpressionOperations operations, Course course) This is a helper method that checks if the current user has management permissions for the given course. -
Uses of Course in edu.ucsb.cs156.frontiers.controllers
Methods in edu.ucsb.cs156.frontiers.controllers with parameters of type CourseModifier and TypeMethodDescriptionTeamsController.fromCSVRow(String[] row, TeamsController.TeamSourceType sourceType, Course course) static StringSlackController.slackTeamUrl(Course course) The URL of the course's Slack workspace, e.g.TeamsController.teamMemberFromSimpleCsv(String[] row, Course course) static UpsertResponse<CourseStaff> CourseStaffController.upsertStaff(CourseStaff staff, Course course) static UpsertResponse<RosterStudent> RosterStudentsController.upsertStudent(RosterStudent student, Course course, RosterStatus rosterStatus) Constructors in edu.ucsb.cs156.frontiers.controllers with parameters of type Course -
Uses of Course in edu.ucsb.cs156.frontiers.jobs
Methods in edu.ucsb.cs156.frontiers.jobs with parameters of type CourseModifier and TypeMethodDescriptionstatic voidStaffTeamGithubSync.addStaffMembers(edu.ucsb.cs156.jobs.services.JobContext ctx, Course course, Team team, Integer orgId, GithubTeamService githubTeamService) Adds every member of the course staff who has a GitHub login to the team's GitHub team, as a member, unless they are already on it. -
Uses of Course in edu.ucsb.cs156.frontiers.repositories
Subinterfaces with type arguments of type Course in edu.ucsb.cs156.frontiers.repositoriesMethods in edu.ucsb.cs156.frontiers.repositories that return types with arguments of type CourseModifier and TypeMethodDescriptionCourseRepository.findByInstallationId(String installationId) CourseRepository.findByInstructorEmail(String instructorEmail) Methods in edu.ucsb.cs156.frontiers.repositories with parameters of type CourseModifier and TypeMethodDescriptionRosterStudentRepository.findByCourseAndGithubId(Course course, int githubId) CourseStaffRepository.findByCourseAndGithubLogin(Course course, String githubLogin) RosterStudentRepository.findByCourseAndGithubLogin(Course course, String githubLogin) CourseStaffRepository.findByEmailAndCourse(String email, Course course) This method returns a CourseStaff entity with a given email and course. -
Uses of Course in edu.ucsb.cs156.frontiers.services
Methods in edu.ucsb.cs156.frontiers.services with parameters of type CourseModifier and TypeMethodDescriptionvoidCanvasService.addCanvasGroupMember(Course course, Integer groupId, Integer userId) Adds a user to a Canvas group.GithubTeamService.addMemberToGithubTeam(String githubLogin, Integer teamId, String role, Course course, Integer orgId) Adds a member to a GitHub team.OrganizationLinkerService.checkCourseWarnings(Course course) ApiKeyService.createApiKey(Course course, ApiKeyService.ExpirationChoice choice, String label) Creates a key for the course.CanvasService.createCanvasGroup(Course course, Integer groupSetId, String name) Creates a group in a Canvas group set.GithubTeamService.createOrGetTeamId(Team team, Course course) Creates a team on GitHub if it doesn't exist, or returns the existing team ID.GithubTeamService.createOrGetTeamInfo(Team team, Course course) Creates a team on GitHub if it doesn't exist, or returns the existing team info.RepositoryService.createStaffRepository(Course course, CourseStaff staff, String repoPrefix, Boolean isPrivate, RepositoryPermissions permissions) Creates a single staff repository if it doesn't already exist, and provisions access to the repository by that staff memberRepositoryService.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 studentGithubTeamService.createTeam(String teamName, Course course) Creates a new team on GitHub.GithubTeamService.createTeamInfo(String teamName, Course course) Creates a new team on GitHub.RepositoryService.createTeamRepository(Course course, Team team, String repoPrefix, Boolean isPrivate, RepositoryPermissions permissions, Integer orgId) Creates a GitHub repository for a team (student or staff), given only their team name.voidCanvasService.deleteCanvasGroup(Course course, Integer groupId) Deletes a Canvas group.voidGithubTeamService.deleteGithubTeam(Integer orgId, Integer teamId, Course course) Deletes a team on GitHub.booleanRepositoryService.deleteRepositoryIfEmpty(Course course, String repositoryName) Deletes a repository only when it is empty.GithubTeamService.getAllTeams(Course course) Returns all teams for an organization, following pagination links when present.CanvasService.getCanvasGroups(Course course, String groupSetId) Fetches the groups in a Canvas group set with their members' emails, as used by the pull-teams job.CanvasService.getCanvasGroupSetDetail(Course course, String groupSetId) Fetches a Canvas group set with everything the push-to-Canvas job needs: the numeric ids of the group set and its groups, and each group's members as canonical email to numeric Canvas user id.CanvasService.getCanvasGroupSets(Course course) CanvasService.getCanvasRoster(Course course) Fetches the roster of students from Canvas for the given course, following pagination so that every enrolled student is returned.CanvasService.getCanvasUserIdsByEmail(Course course) Fetches the numeric Canvas user id of every student enrolled in the Canvas course, keyed by canonical email, following pagination so that every enrolled student is included.GithubGraphQLService.getCommits(Course course, String owner, String repo, String branch, int first, String after) GithubGraphQLService.getCommits(Course course, String owner, String repo, String branch, Instant since, Instant until, int size, String cursor) Retrieves the commit history for a specified branch of a GitHub repository within a given time range.GithubGraphQLService.getDefaultBranchName(Course course, String owner, String repo) Retrieves the name of the default branch for a given GitHub repository.OrganizationLinkerService.getDefaultRepositoryPermission(Course course) Retrieves the default repository permission for the GitHub organization linked to a course.JwtService.getInstallationToken(Course course) Method to retrieve a token to act as a particular app installation in a particular organizationOrganizationMemberService.getOrganizationAdmins(Course course) This endpoint returns the list of **admins** for the organization.OrganizationMemberService.getOrganizationInvitees(Course course) This endpoint returns the list of users who have been **invited** to the organization but have not yet accepted.OrganizationMemberService.getOrganizationMembers(Course course) This endpoint returns the list of **members**, not admins for the organization.Get the org id, given the org name.RepositoryService.getRepositoriesMatchingPrefix(Course course, String prefix) Lists repositories in the course GitHub organization whose names start with the provided prefix.Gets the team ID for a team slug, returns null if team doesn't exist.GithubTeamService.getTeamInfo(String teamSlug, Course course) Gets the team info for a team slug, returns null if team doesn't exist.GithubTeamService.getTeamInfoById(Integer orgId, Integer teamId, Course course) Gets the team info for a team ID, returns null if team doesn't exist.GithubTeamService.getTeamInfoByName(String teamName, Course course) Finds team info by display name by searching the organization's teams.GithubTeamService.getTeamMemberships(String teamSlug, Course course) Returns all team members for a GitHub team.GithubTeamService.getTeamMembershipStatus(String githubLogin, Integer teamId, Course course, Integer orgId) Gets the current team membership status for a user.booleanRepositoryService.isRepositoryEmpty(Course course, String repositoryName) Returns true when the repository has no commits.voidCanvasService.removeCanvasGroupMember(Course course, Integer groupId, Integer userId) Removes a user from a Canvas group.voidGithubTeamService.removeMemberFromGithubTeam(Integer orgId, String githubLogin, Integer teamId, Course course) Removes a member from a GitHub teamvoidRepositoryService.setPullRequestCreationPolicy(Course course, String repositoryName, PullRequestCreationPolicy policy) Sets who may open pull requests against a repository, using the repository settingpull_request_creation_policy.voidRepositoryService.setSignedCommitsRequired(Course course, String repositoryName, boolean required) Makes a repository require signed commits, or not, by giving it a ruleset named "Require Signed Commits", or removing that ruleset.voidOrganizationLinkerService.unenrollOrganization(Course course) Removes the Frontiers installation from the linked GitHub org -
Uses of Course in edu.ucsb.cs156.frontiers.validators
Classes in edu.ucsb.cs156.frontiers.validators that implement interfaces with type arguments of type CourseModifier and TypeClassDescriptionclassThis is a validator, which enforces a property.Methods in edu.ucsb.cs156.frontiers.validators with parameters of type Course