Hanami backend
Toggle table of contents
2026.7.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Hanami backend
Hanami backend
/
fi.aalto.cs.hanami.auth
/
UserProfile
User
Profile
data
class
UserProfile
(
val
id
:
Long
,
val
username
:
String
,
val
fullName
:
String
?
,
val
email
:
String
?
,
val
enrolledCourseIds
:
Set
<
Long
>
,
val
staffCourseIds
:
Set
<
Long
>
,
val
teacherCourseIds
:
Set
<
Long
>
,
val
assistantCourseIds
:
Set
<
Long
>
)
(
source
)
Members
Constructors
User
Profile
Link copied to clipboard
constructor
(
id
:
Long
,
username
:
String
,
fullName
:
String
?
,
email
:
String
?
,
enrolledCourseIds
:
Set
<
Long
>
,
staffCourseIds
:
Set
<
Long
>
,
teacherCourseIds
:
Set
<
Long
>
,
assistantCourseIds
:
Set
<
Long
>
)
Properties
assistant
Course
Ids
Link copied to clipboard
val
assistantCourseIds
:
Set
<
Long
>
email
Link copied to clipboard
val
email
:
String
?
enrolled
Course
Ids
Link copied to clipboard
val
enrolledCourseIds
:
Set
<
Long
>
full
Name
Link copied to clipboard
val
fullName
:
String
?
id
Link copied to clipboard
val
id
:
Long
staff
Course
Ids
Link copied to clipboard
val
staffCourseIds
:
Set
<
Long
>
teacher
Course
Ids
Link copied to clipboard
val
teacherCourseIds
:
Set
<
Long
>
username
Link copied to clipboard
val
username
:
String
Functions
is
Staff
On
Link copied to clipboard
fun
isStaffOn
(
courseId
:
Long
)
:
Boolean
Returns whether this profile has any staff role on
courseId
.