CourseProject

A CourseProject instance contains a Course and Project. In addition, it contains a CourseUpdater that regularly updates the course, and an Event that is triggered when an update occurs.

Constructors

Link copied to clipboard
constructor(course: Course, courseUrl: URL, project: <Error class: unknown class>, notifier: <Error class: unknown class>)

Construct a course project from the given course, course configuration URL (used for updating), and project.

constructor(course: Course, courseUpdater: ExercisesUpdaterService, exercisesUpdater: ExercisesUpdaterService, project: <Error class: unknown class>, notifier: <Error class: unknown class>)

Construct a course project from the given course, exercises and course updaters, and project.

Properties

Link copied to clipboard
var authentication: <Error class: unknown class>?
Link copied to clipboard
Link copied to clipboard
val courseUpdated: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
val exercisesUpdated: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val project: <Error class: unknown class>
Link copied to clipboard
var selectedStudent: <Error class: unknown class>?
Link copied to clipboard
val user: <Error class: unknown class><<Error class: unknown class>?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun dispose()

Disposes the course project, which includes stopping background updaters and clearing the authentication. This should be called when a course project is no longer used.

Link copied to clipboard
fun getUser(): <Error class: unknown class>?
Link copied to clipboard
Link copied to clipboard
fun readAuthenticationFromStorage(passwordStorage: TokenStorage?, factory: <Error class: unknown class>)

Sets authentication to the one that is read from the password storage and constructed with the given factory.

Link copied to clipboard
fun removePasswordFromStorage(passwordStorageFactory: <Error class: unknown class>)

Removes user from password storage.

Link copied to clipboard
open fun setLazyLoadedGroup(id: Long)