interface IAuthService
Generalise the Auth Service implementation that depends on the kind of authentication being used.
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract java.lang.String |
getDisplayName()Get the current user's display name |
|
abstract java.lang.String |
getEmail()Get the current user's email address |
|
abstract java.lang.String |
getFirstName()Get the current user's first name |
|
abstract java.lang.String |
getLastName()Get the current user's last name |
|
abstract java.lang.String |
getUserId()Get the current user's id |
|
abstract java.lang.String |
getUserName()Get the current user's preferred username |
|
abstract java.lang.String |
loginUrl(java.lang.String returnUrl)Get the login URL for the current auth service |
|
abstract au.org.ala.web.UserDetails |
userDetails()UserDetails for the current user |
|
abstract boolean |
userInRole(java.lang.String role)Is the current user in the given role |
Get the current user's display name
Get the current user's email address
Get the current user's first name
Get the current user's last name
Get the current user's id
Get the current user's preferred username
Get the login URL for the current auth service
returnUrl - The url to return to.UserDetails for the current user
Is the current user in the given role