Class GCubeUser
java.lang.Object
org.gcube.vomanagement.usermanagement.model.GCubeUser
- All Implemented Interfaces:
Serializable
- Author:
- Massimiliano Assante, CNR-ISTI
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGCubeUser(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.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 attrsGCubeUser(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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the custom attrs map.getEmail()Gets the email.Gets the email addresses.Gets the first name.Gets the fullname.Gets the job title.Gets the last name.Gets the location industry.Gets the middle name.longGets the registration date.Deprecated.please use getUsernameDeprecated.longGets the user id.Gets the username.booleanisMale()Checks if is male.voidsetCustomAttrsMap(Map<String, String> customAttrsMap) Sets the custom attrs map.voidSets the email.voidsetEmailAddresses(List<Email> emailAddresses) Sets the email addresses.voidsetFirstName(String firstName) Sets the first name.voidsetFullname(String fullname) Sets the fullname.voidsetJobTitle(String jobTitle) Sets the job title.voidsetLastName(String lastName) Sets the last name.voidsetLocation_industry(String location_industry) Sets the location industry.voidsetMale(boolean male) Sets the male.voidsetMiddleName(String middleName) Sets the middle name.voidsetRegistrationDate(long registrationDate) Sets the registration date.voidsetUserAvatarId(String userAvatarId) Deprecated.voidsetUserAvatarURL(String userAvatarURL) Sets the user avatar URL.voidsetUserId(long userId) Sets the user id.voidsetUsername(String username) Sets the username.toString()
-
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 idusername- the usernameemail- the emailfirstName- the first namemiddleName- the middle namelastName- the last namefullname- the fullnameregistrationDate- the registration dateuserAvatarId- the user avatar idmale- the malejobTitle- the job titlelocation_Industry- the location industryemailAddresses- 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
Gets the username.- Returns:
- the username
-
setUsername
Sets the username.- Parameters:
username- the new username
-
getScreenName
Deprecated.please use getUsername- Returns:
- the username
-
getEmail
Gets the email.- Returns:
- the email
-
setEmail
Sets the email.- Parameters:
email- the new email
-
getFirstName
Gets the first name.- Returns:
- the first name
-
setFirstName
Sets the first name.- Parameters:
firstName- the new first name
-
getMiddleName
Gets the middle name.- Returns:
- the middle name
-
setMiddleName
Sets the middle name.- Parameters:
middleName- the new middle name
-
getLastName
Gets the last name.- Returns:
- the last name
-
setLastName
Sets the last name.- Parameters:
lastName- the new last name
-
getFullname
Gets the fullname.- Returns:
- the fullname
-
setFullname
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.Gets the user avatar id.- Returns:
- the user avatar id
-
setUserAvatarId
Deprecated.Sets the user avatar id.- Parameters:
userAvatarId- the new user avatar id
-
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
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
Gets the job title.- Returns:
- the job title
-
setJobTitle
Sets the job title.- Parameters:
jobTitle- the new job title
-
getCustomAttrsMap
Gets the custom attrs map.- Returns:
- the custom attrs map
-
setCustomAttrsMap
Sets the custom attrs map.- Parameters:
customAttrsMap- the custom attrs map
-
getEmailAddresses
Gets the email addresses.- Returns:
- the email addresses
-
setEmailAddresses
Sets the email addresses.- Parameters:
emailAddresses- the new email addresses
-
getLocation_industry
Gets the location industry.- Returns:
- the location industry
-
setLocation_industry
Sets the location industry.- Parameters:
location_industry- the new location industry
-
toString
-
equals
-