Class GCubeUser

  • All Implemented Interfaces:
    User

    public class GCubeUser
    extends Object
    implements User
    Author:
    Luca Frosini (ISTI - CNR)
    • 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
    • Constructor Detail

      • GCubeUser

        public GCubeUser()
    • Method Detail

      • setUsername

        public void setUsername​(String username)
      • isApplication

        public boolean isApplication()
        Specified by:
        isApplication in interface User
      • setApplication

        public void setApplication​(boolean application)
      • getPicture

        public String getPicture()
      • getMiddleName

        public String getMiddleName()
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)
      • getAdditionalProperty

        public Object getAdditionalProperty​(String key)
      • setAdditionalProperty

        public void setAdditionalProperty​(String key,
                                          Object value)
      • getFullName

        public String getFullName()
        Specified by:
        getFullName in interface User
        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:
        getFullName in interface User
        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;