public class User extends EcmessengerEntity
eC-Messenger distinguishes Users, Groups, Members, Messages and other entities.
Users have hard coded attributes (like setFirstname() or setLastname()) and custom attributes that are set up on a customers basis (see setAttribute()).
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
static User |
fromXML(String xml) |
String |
getAttribute(String name)
Provide the value of the given user attribute.
|
HashMap<String,String> |
getAttributes() |
String |
getCountryCode() |
String |
getDob_dd()
Deprecated.
use setAttribute("dob", "YYYY-MM-DD") instead to address the standard DOB attribute
|
String |
getDob_mm()
Deprecated.
use setAttribute("dob", "YYYY-MM-DD") instead to address the standard DOB attribute
|
String |
getDob_yyyy()
Deprecated.
use setAttribute("dob", "YYYY-MM-DD") instead to address the standard DOB attribute
|
String |
getEmail() |
String |
getFaxnumber() |
String |
getFirstName() |
String |
getId()
Any EcmessengerEntity has a unique ID within the system and a XML document.
|
String |
getIdentifier() |
String |
getLanguageCode() |
String |
getLastName() |
String |
getMobilenumber() |
String |
getNickName() |
int |
getPartnerId() |
byte |
getTitle() |
String |
getZipCode() |
User |
setAttribute(String name,
String value) |
User |
setCountryCode(String countryCode) |
User |
setDob_dd(String dateOfBirth) |
User |
setDob_mm(String dateOfBirth) |
User |
setDob_yyyy(String dateOfBirth) |
User |
setEmail(String eMail) |
User |
setFaxnumber(String faxnumber) |
User |
setFirstName(String firstName) |
void |
setId(String id) |
User |
setIdentifier(String identifier) |
void |
setLanguageCode(String languageCode) |
User |
setLastName(String lastName) |
User |
setMobilenumber(String mobilenumber) |
User |
setNickName(String nickName) |
User |
setPartnerId(int partnerId) |
User |
setTitle(byte title) |
User |
setZipCode(String zipCode) |
setLoaded, toHTTP, toXML
public void setId(String id)
@EntityProperty @Web(webName="uid") public String getId()
EcmessengerEntity
Note, that a value of null does not get serialized by toXML().
getId
in class EcmessengerEntity
@EntityProperty @Web(webName="iso_country") public String getCountryCode()
public User setCountryCode(String countryCode)
countryCode
- per ISO todo@EntityProperty @Web(webName="dob_dd") public String getDob_dd()
@EntityProperty @Web(webName="dob_mm") public String getDob_mm()
@EntityProperty @Web(webName="dob_yyyy") public String getDob_yyyy()
@EntityProperty @Web(webName="uemail") public String getEmail()
@EntityProperty @Web(webName="fnm") public String getFirstName()
@EntityProperty @Web(webName="iso_lang") public String getLanguageCode()
public void setLanguageCode(String languageCode)
@EntityProperty @Web(webName="lnm") public String getLastName()
@EntityProperty @Web(webName="mobilefullnum") public String getMobilenumber()
@EntityProperty @Web(webName="faxfullnum") public String getFaxnumber()
@EntityProperty @Web(webName="identifier") public String getIdentifier()
@EntityProperty @Web(webName="pid") public int getPartnerId()
public User setPartnerId(int partnerId)
@EntityProperty @Web(webName="tlt") public byte getTitle()
public User setTitle(byte title)
@EntityProperty @Web(webName="zipcode") public String getZipCode()
@EntityProperty @Web(webName="nickname") public String getNickName()
public String getAttribute(String name)
name
- The Attribute Name as visible in the user interface of eC-Messenger.@EntityProperty(xmlName="namedattr") @Web(webName="namedattr") public HashMap<String,String> getAttributes()
© 2004..2009, eCircle AG, Version: 1.82 (${buildNumber})