Add a role to a user.
Add a role to a user.
the unique id of the user
the name of the role
a boolean indicator if the role was added
Add a role to a user.
Add a role to a user.
the unique id of the user
the name of the role
a boolean indicator if the role was added
Add a role to a given list of users.
Add a role to a given list of users.
the UUID of the Role to be added
an IndexedSeq of UUID listing the users to gain the role
a boolean indicator if the role was added
Authenticates a given identifier/password combination.
Authenticates a given identifier/password combination.
Some(user) if valid, otherwise None.
Create a new user.
Create a new user. Throws exceptions if the e-mail and username aren't unique.
A unique identifier for this user.
The user's unique e-mail address.
The user's password.
The user's first name.
The user's family name.
The ID to allocate for this user, if left out, it will be random.
the created user
Create a new role.
Create a new role.
the name of the Role to create
the newly created Role
Create a new session.
Create a new session.
Database connection (pool).
Database connection (pool). Services will take connections from this pool when making repository calls.
Deletes a user.
Deletes a user.
TODO: delete the user's work
the unique id of the user to be updated
the latest version of the user for O.O.L.
a future disjunction containing the deleted user, or a failure
Delete a role.
Delete a role.
the unique id of the role
the version of the role for optimistic offline lock
the deleted role
Delete a session.
Find a user by their unique identifier.
Find a user by their unique identifier.
The unique e-mail or username identifying this user.
a future disjunction containing the user and their information, or a failure
Find a user by their UUID.
Find a user by their UUID.
the unique id for the user
a future disjunction containing the user and their information, or a failure
Find a specific role by name
Find a specific role by name
the name of the Role to find
an optional Role
Find a specific role by its unique id.
Find a specific role by its unique id.
the UUID of the Role to find
an optional Role
Find one session by its ID.
List users with filter for roles and courses.
List users with filter for roles and courses.
an optional list of roles to filter by
an IndexedSeq of User
List all users.
List all roles for one user.
List all roles for one user.
The user whose roles should be listed.
an array of this user's Roles
List all roles.
List the active sessions for one user.
List the active sessions for one user.
Remove a role from a user.
Remove a role from a user.
the unique id of the user
the name of the role
a boolean indicator if the role was removed
Remove a role from a given list of users.
Remove a role from a given list of users.
the UUID of the Role to be removed
an IndexedSeq of UUID listing the users to lose the role
a boolean indicator if the role was removed
Takes a function that returns a future, and runs it inside a database transaction.
Takes a function that returns a future, and runs it inside a database transaction.
Update a user's identifiers.
Update a user's identifiers.
the unique id of the user
the latest version of the user for O.O.L.
optionally update the e-mail
optionally update the username
the user's updated given name
the user's updated family name
a future disjunction containing the updated user, or a failure
Update a user's identifiers.
Update a user's identifiers.
the unique id of the user
the latest version of the user for O.O.L.
optionally update the e-mail
optionally update the username
a future disjunction containing the updated user, or a failure
Update a user's "non-identifying" information.
Update a user's "non-identifying" information.
the unique id of the user to be updated
the latest version of the user for O.O.L.
the user's updated given name
the user's updated family name
a future disjunction containing the updated user, or a failure
Update the user's password.
Update the user's password.
the unique id of the user to be updated
the latest version of the user for O.O.L.
the new password
a future disjunction containing the updated user, or a failure
Update a Role
Update a Role
the unique id of the Role
the version of the Role for optimistic offline lock
the new name to assign this Role
the newly updated Role
Update an existing session.
Update an existing session.