Generalise the Auth Service implementation that depends on the kind of authentication being used.
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getDisplayName()Get the current user's display name |
|
java.lang.String |
getEmail()Get the current user's email address |
|
java.lang.String |
getFirstName()Get the current user's first name |
|
java.lang.String |
getLastName()Get the current user's last name |
|
java.lang.String |
getUserId()Get the current user's id |
|
java.lang.String |
loginUrl(java.lang.String returnUrl)Get the login URL for the current auth service |
|
au.org.ala.web.UserDetails |
userDetails()UserDetails for the current user |
|
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 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