Class GCubeUser
- java.lang.Object
-
- org.gcube.common.authorization.utils.user.GCubeUser
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>additionalPropertiesUsed to allow to have any additional propertiesprotected booleanapplicationprotected StringeMailprotected StringfamilyNameprotected StringgivenNameprotected StringjobTitleprotected StringmiddleNameprotected Stringpictureprotected Set<String>rolesprotected Stringusername
-
Constructor Summary
Constructors Constructor Description GCubeUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbout()Map<String,Object>getAdditionalProperties()ObjectgetAdditionalProperty(String key)StringgetEmail()StringgetFamilyName()StringgetFullName()StringgetFullName(boolean nameSurname)StringgetGivenName()StringgetMiddleName()StringgetPicture()Collection<String>getRoles()StringgetUsername()booleanisApplication()voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String key, Object value)voidsetApplication(boolean application)voidsetRoles(Collection<String> roles)voidsetUsername(String username)
-
-
-
Field Detail
-
additionalProperties
protected Map<String,Object> additionalProperties
Used to allow to have any additional properties
-
username
protected String username
-
givenName
protected String givenName
-
familyName
protected String familyName
-
eMail
protected String eMail
-
jobTitle
protected String jobTitle
-
picture
protected String picture
-
middleName
protected String middleName
-
application
protected boolean application
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceUser
-
setUsername
public void setUsername(String username)
-
isApplication
public boolean isApplication()
- Specified by:
isApplicationin interfaceUser
-
setApplication
public void setApplication(boolean application)
-
getRoles
public Collection<String> getRoles()
-
setRoles
public void setRoles(Collection<String> roles)
-
getGivenName
public String getGivenName()
- Specified by:
getGivenNamein interfaceUser
-
getFamilyName
public String getFamilyName()
- Specified by:
getFamilyNamein interfaceUser
-
getPicture
public String getPicture()
-
getMiddleName
public String getMiddleName()
-
setAdditionalProperties
public void setAdditionalProperties(Map<String,Object> additionalProperties)
-
getFullName
public String getFullName()
- Specified by:
getFullNamein interfaceUser- Returns:
- the full name in the form 'Surname Name' for a person or the application identifier for an application;
-
getFullName
public String getFullName(boolean nameSurname)
- Specified by:
getFullNamein interfaceUser- 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;
-
-