Interface User
-
- All Known Implementing Classes:
GCubeUser,KeycloakUser
public interface User- Author:
- Luca Frosini (ISTI-CNR)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAbout()StringgetEmail()StringgetFamilyName()StringgetFullName()StringgetFullName(boolean nameSurname)StringgetGivenName()Collection<String>getRoles()StringgetUsername()booleanisApplication()voidsetRoles(Collection<String> roles)
-
-
-
Method Detail
-
getUsername
String getUsername()
-
isApplication
boolean isApplication()
-
getRoles
Collection<String> getRoles()
-
setRoles
void setRoles(Collection<String> roles)
-
getGivenName
String getGivenName()
-
getFamilyName
String getFamilyName()
-
getFullName
String getFullName()
- Returns:
- the full name in the form 'Surname Name' for a person or the application identifier for an application;
-
getFullName
String getFullName(boolean nameSurname)
- Parameters:
nameSurname- when true the fullname will be formatted as 'Name Surname', when false the fullname will be formatted as 'Surname Name',- Returns:
- the full name according to nameSurname boolean for a person or the application identifier for an application;
-
getEmail
String getEmail()
-
getAbout
String getAbout()
-
-