java.lang.Object
org.gcube.vomanagement.usermanagement.model.GCubeUser
All Implemented Interfaces:
Serializable

public class GCubeUser extends Object implements Serializable
Author:
Massimiliano Assante, CNR-ISTI
See Also:
  • Constructor Details

    • GCubeUser

      public GCubeUser(long userId, String username, String email, String firstName, String middleName, String lastName, String fullname, long registrationDate, String userAvatarURL, boolean male, String jobTitle, Map<String,String> customAttrsMap, List<Email> emailAddresses)
      constructor without custom attrs
      Parameters:
      userId -
      username -
      email -
      firstName -
      middleName -
      lastName -
      fullname -
      registrationDate -
      userAvatarURL -
      male -
      jobTitle -
      customAttrsMap -
      emailAddresses -
    • GCubeUser

      public GCubeUser(long userId, String username, String email, String firstName, String middleName, String lastName, String fullname, long registrationDate, String userAvatarId, boolean male, String jobTitle, List<Email> emailAddresses)
      constructor without custom attrs
      Parameters:
      userId -
      username -
      email -
      firstName -
      middleName -
      lastName -
      fullname -
      registrationDate -
      userAvatarId -
      male -
      jobTitle -
      emailAddresses -
    • GCubeUser

      public GCubeUser(long userId, String username, String email, String firstName, String middleName, String lastName, String fullname, long registrationDate, String userAvatarId, boolean male, String jobTitle, String location_Industry, List<Email> emailAddresses)
      Instantiates a new g cube user.
      Parameters:
      userId - the user id
      username - the username
      email - the email
      firstName - the first name
      middleName - the middle name
      lastName - the last name
      fullname - the fullname
      registrationDate - the registration date
      userAvatarId - the user avatar id
      male - the male
      jobTitle - the job title
      location_Industry - the location industry
      emailAddresses - the email addresses
  • Method Details

    • getUserId

      public long getUserId()
      Gets the user id.
      Returns:
      the user id
    • setUserId

      public void setUserId(long userId)
      Sets the user id.
      Parameters:
      userId - the new user id
    • getUsername

      public String getUsername()
      Gets the username.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets the username.
      Parameters:
      username - the new username
    • getScreenName

      public String getScreenName()
      Deprecated.
      please use getUsername
      Returns:
      the username
    • getEmail

      public String getEmail()
      Gets the email.
      Returns:
      the email
    • setEmail

      public void setEmail(String email)
      Sets the email.
      Parameters:
      email - the new email
    • getFirstName

      public String getFirstName()
      Gets the first name.
      Returns:
      the first name
    • setFirstName

      public void setFirstName(String firstName)
      Sets the first name.
      Parameters:
      firstName - the new first name
    • getMiddleName

      public String getMiddleName()
      Gets the middle name.
      Returns:
      the middle name
    • setMiddleName

      public void setMiddleName(String middleName)
      Sets the middle name.
      Parameters:
      middleName - the new middle name
    • getLastName

      public String getLastName()
      Gets the last name.
      Returns:
      the last name
    • setLastName

      public void setLastName(String lastName)
      Sets the last name.
      Parameters:
      lastName - the new last name
    • getFullname

      public String getFullname()
      Gets the fullname.
      Returns:
      the fullname
    • setFullname

      public void setFullname(String fullname)
      Sets the fullname.
      Parameters:
      fullname - the new fullname
    • getRegistrationDate

      public long getRegistrationDate()
      Gets the registration date.
      Returns:
      the registration date
    • setRegistrationDate

      public void setRegistrationDate(long registrationDate)
      Sets the registration date.
      Parameters:
      registrationDate - the new registration date
    • getUserAvatarId

      @Deprecated public String getUserAvatarId()
      Deprecated.
      Gets the user avatar id.
      Returns:
      the user avatar id
    • setUserAvatarId

      @Deprecated public void setUserAvatarId(String userAvatarId)
      Deprecated.
      Sets the user avatar id.
      Parameters:
      userAvatarId - the new user avatar id
    • getUserAvatarURL

      public String getUserAvatarURL()
      Returns:
      the absolute path of the avatar URL comprising security token e.g. /image/user_male_portrait?img_id=12345&img_id_token=0GJ5WkeDV9F9bDZGkqzb7LahygM%3D&t=1457799199747
    • setUserAvatarURL

      public void setUserAvatarURL(String userAvatarURL)
      Sets the user avatar URL.
      Parameters:
      userAvatarURL - the new user avatar URL
    • isMale

      public boolean isMale()
      Checks if is male.
      Returns:
      true, if is male
    • setMale

      public void setMale(boolean male)
      Sets the male.
      Parameters:
      male - the new male
    • getJobTitle

      public String getJobTitle()
      Gets the job title.
      Returns:
      the job title
    • setJobTitle

      public void setJobTitle(String jobTitle)
      Sets the job title.
      Parameters:
      jobTitle - the new job title
    • getCustomAttrsMap

      public Map<String,String> getCustomAttrsMap()
      Gets the custom attrs map.
      Returns:
      the custom attrs map
    • setCustomAttrsMap

      public void setCustomAttrsMap(Map<String,String> customAttrsMap)
      Sets the custom attrs map.
      Parameters:
      customAttrsMap - the custom attrs map
    • getEmailAddresses

      public List<Email> getEmailAddresses()
      Gets the email addresses.
      Returns:
      the email addresses
    • setEmailAddresses

      public void setEmailAddresses(List<Email> emailAddresses)
      Sets the email addresses.
      Parameters:
      emailAddresses - the new email addresses
    • getLocation_industry

      public String getLocation_industry()
      Gets the location industry.
      Returns:
      the location industry
    • setLocation_industry

      public void setLocation_industry(String location_industry)
      Sets the location industry.
      Parameters:
      location_industry - the new location industry
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object