Interface User

  • All Known Implementing Classes:
    GCubeUser, KeycloakUser

    public interface User
    Author:
    Luca Frosini (ISTI-CNR)
    • Method Detail

      • getUsername

        String getUsername()
      • isApplication

        boolean isApplication()
      • 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;