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) constructor with location/industry alsoGCubeUser(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 TypeMethodDescriptionbooleangetEmail()longDeprecated.please use getUsernameDeprecated.longbooleanisMale()voidsetCustomAttrsMap(Map<String, String> customAttrsMap) voidvoidsetEmailAddresses(List<Email> emailAddresses) voidsetFirstName(String firstName) voidsetFullname(String fullname) voidsetJobTitle(String jobTitle) voidsetLastName(String lastName) voidsetLocation_industry(String location_industry) voidsetMale(boolean male) voidsetMiddleName(String middleName) voidsetRegistrationDate(long registrationDate) voidsetUserAvatarId(String userAvatarId) Deprecated.voidsetUserAvatarURL(String userAvatarURL) voidsetUserId(long userId) voidsetUsername(String 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) constructor with location/industry also- Parameters:
userId-username-email-firstName-middleName-lastName-fullname-registrationDate-userAvatarId-male-jobTitle-emailAddresses-
-
-
Method Details
-
getUserId
public long getUserId() -
setUserId
public void setUserId(long userId) -
getUsername
-
setUsername
-
getScreenName
Deprecated.please use getUsername- Returns:
- the username
-
getEmail
-
setEmail
-
getFirstName
-
setFirstName
-
getMiddleName
-
setMiddleName
-
getLastName
-
setLastName
-
getFullname
-
setFullname
-
getRegistrationDate
public long getRegistrationDate() -
setRegistrationDate
public void setRegistrationDate(long registrationDate) -
getUserAvatarId
Deprecated. -
setUserAvatarId
Deprecated. -
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
-
isMale
public boolean isMale() -
setMale
public void setMale(boolean male) -
getJobTitle
-
setJobTitle
-
getCustomAttrsMap
-
setCustomAttrsMap
-
getEmailAddresses
-
setEmailAddresses
-
getLocation_industry
-
setLocation_industry
-
toString
-
equals
-