Added isApplication and getFullName APIs

This commit is contained in:
Luca Frosini 2022-03-24 14:25:21 +01:00
parent d8b9fecee2
commit 6e271a5772
1 changed files with 16 additions and 0 deletions

View File

@ -9,6 +9,8 @@ public interface User {
public String getUsername(); public String getUsername();
public boolean isApplication();
public Collection<String> getRoles(); public Collection<String> getRoles();
public void setRoles(Collection<String> roles); public void setRoles(Collection<String> roles);
@ -17,6 +19,20 @@ public interface User {
public String getFamilyName(); public String getFamilyName();
/**
* @return the full name in the form 'Surname Name' for a person
* or the application identifier for an application;
*/
public String getFullName();
/**
* @param nameSurname when true the fullname will be formatted as 'Name Surname',
* when false the fullname will be formatted as 'Surname Name',
* @return the full name according to nameSurname boolean for a person
* or the application identifier for an application;
*/
public String getFullName(boolean nameSurname);
public String getEmail(); public String getEmail();
public String getAbout(); public String getAbout();