Package page.codeberg.friedolyn.client
Class FriedolinClient.Login
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
Client.Login
,HeadlessBrowser.Login
- Enclosing class:
FriedolinClient
A
Task
that can be executed in a different Thread
to log in to Friedolin using the student's
credentials specified in the Configuration
previously set via FriedolinClient.setConfiguration(Configuration)
(or the constructor).-
Nested Class Summary
Nested classes/interfaces inherited from class page.codeberg.friedolyn.util.Task
Task.CancelListener, Task.FailureListener<ResultType>, Task.ProgressListener, Task.SuccessListener<ResultType>, Task.TaskListener<ResultType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
setFetchPersonalData
(boolean fetchClearname, boolean fetchEmailAddress) Updates the setting whether the student'sclear name
andemail address
should be fetched from the University of Jena's Friedolin system along with the login.Methods inherited from class page.codeberg.friedolyn.util.Task
cancel, getResult, registerListener, removeListener, run, setOnCancelled, setOnFailed, setOnProgressUpdate, setOnSucceeded
-
Constructor Details
-
Login
public Login()
-
-
Method Details
-
setFetchPersonalData
public abstract void setFetchPersonalData(boolean fetchClearname, boolean fetchEmailAddress) Updates the setting whether the student'sclear name
andemail address
should be fetched from the University of Jena's Friedolin system along with the login. May require additional network requests, slowing down the login process.The results of the fetches will be stored in the
configuration
asConfiguration.getClearname()
andConfiguration.getEmail()
.- Parameters:
fetchClearname
- Whether the student's clear name should be found out. True by default.fetchEmailAddress
- Whether the student's email address should be found out. False by default.
-