📄 user.java
字号:
}
/**
* Checks if smilies are enabled
*
* @return boolean value
*/
public boolean isSmiliesEnabled() {
return this.smiliesEnabled;
}
/**
* Gets the id of the theme chosen by the user
*
* @return int value with the theme ID
*/
public int getThemeId() {
return this.themeId;
}
/**
* Gets the timezone
*
* @return String value with the timezone
*/
public String getTimeZone() {
return this.timeZone;
}
/**
* Gets the total number of messages posted by the user
*
* @return int value with the total of messages
*/
public int getTotalPosts() {
return this.totalPosts;
}
/**
* Gets the username
*
* @return String with the username
*/
public String getUsername() {
return this.username;
}
/**
* Checks if the user permits other people to see he online
*
* @return boolean value
*/
public boolean isViewOnlineEnabled() {
return this.viewOnlineEnabled;
}
/**
* Gets the user website address
*
* @return String with the URL
*/
public String getWebSite() {
return this.webSite;
}
/**
* Gets the Yahoo messenger ID
*
* @return String with the ID
*/
public String getYim() {
return this.yim;
}
/**
* Is the user's email authenticated?
*
* @return integer 1 if true
*/
public boolean isActive(){
return this.active == 1;
}
/**
* Gets the Yahoo messenger ID
*
* @return String with the activation key that is created during user registration
*/
public String getActivationKey(){
return this.activationKey;
}
/**
* Sets the aim.
*
* @param aim The aim ID to set
*/
public void setAim(String aim) {
this.aim = aim;
}
/**
* Sets the avatar.
*
* @param avatar The avatar to set
*/
public void setAvatar(String avatar) {
this.avatar = avatar;
if (avatar != null && avatar.toLowerCase().startsWith("http://")) {
this.isExternalAvatar = true;
}
}
/**
* Indicates if the avatar points to an external URL
* @return <code>true</code> if the avatar is some external image
*/
public boolean isExternalAvatar() {
return this.isExternalAvatar;
}
/**
* Sets avatar status
*
* @param avatarEnabled <code>true</code> or <code>false</code>
*/
public void setAvatarEnabled(boolean avatarEnabled) {
this.avatarEnabled = avatarEnabled;
}
/**
* Sets the status for BB codes
*
* @param bbCodeEnabled <code>true</code> or <code>false</code>
*/
public void setBbCodeEnabled(boolean bbCodeEnabled) {
this.bbCodeEnabled = bbCodeEnabled;
}
/**
* Sets the date format.
*
* @param dateFormat The date format to set
*/
public void setDateFormat(String dateFormat) {
this.dateFormat = dateFormat;
}
/**
* Sets the email.
*
* @param email The email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* Sets the user location ( where he lives )
*
* @param from The location
*/
public void setFrom(String from) {
this.from = from;
}
/**
* Sets the gender.
*
* @param gender The gender to set. Possible values must be <code>M</code> or <code>F</code>
*/
public void setGender(String gender) {
this.gender = gender;
}
/**
* Enable or not HTML code into the messages
*
* @param htmlEnabled <code>true</code> or <code>false</code>
*/
public void setHtmlEnabled(boolean htmlEnabled) {
this.htmlEnabled = htmlEnabled;
}
/**
* Sets the icq UIN
*
* @param icq The icq to set
*/
public void setIcq(String icq) {
this.icq = icq;
}
/**
* Sets the user id.
*
* @param id The user id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* Sets the interests.
*
* @param interests The interests to set
*/
public void setInterests(String interests) {
this.interests = interests;
}
/**
* Sets the language.
*
* @param lang The lang to set
*/
public void setLang(String lang) {
this.lang = lang;
}
/**
* Sets the last visit time
*
* @param lastVisit Last visit time, represented as a long value
*/
public void setLastVisit(Date lastVisit) {
this.lastVisit = lastVisit;
}
/**
* Sets the level.
*
* @param level The level to set
*/
public void setLevel(int level) {
this.level = level;
}
/**
* Sets the status for notification of new private messages
*
* @param notifyPrivateMessagesEnabled <code>true</code> or <code>false</code>
*/
public void setNotifyPrivateMessagesEnabled(boolean notifyPrivateMessagesEnabled) {
this.notifyPrivateMessagesEnabled = notifyPrivateMessagesEnabled;
}
/**
* Sets the occ.
*
* @param occ The occ to set
*/
public void setOccupation(String occupation) {
this.occupation = occupation;
}
/**
* Sets the password.
*
* @param password The password to set
*/
public void setPassword(String password) {
this.password = password;
}
/**
* Enable or not private messages to the user
*
* @param privateMessagesEnabled <code>true</code> or <code>false</code>
*/
public void setPrivateMessagesEnabled(boolean privateMessagesEnabled) {
this.privateMessagesEnabled = privateMessagesEnabled;
}
/**
* Sets the ranking id
*
* @param rankId The id of the ranking
*/
public void setRankId(int rankId) {
this.rankId = rankId;
}
/**
* Sets the registration date.
*
* @param registrationDate The registration date to set
*/
public void setRegistrationDate(Date registrationDate) {
this.registrationDate = registrationDate;
}
/**
* Sets the signature.
*
* @param signature The signature to set
*/
public void setSignature(String signature) {
this.signature = signature;
}
/**
* Enable or not smilies in messages
*
* @param smilesEnabled <code>true</code> or <code>false</code>
*/
public void setSmiliesEnabled(boolean smilesEnabled) {
this.smiliesEnabled = smilesEnabled;
}
/**
* Sets the theme id
*
* @param themeId The theme Id to set
*/
public void setThemeId(int themeId) {
this.themeId = themeId;
}
/**
* Sets the Timezone.
*
* @param timeZone The Timezone to set
*/
public void setTimeZone(String timeZone) {
this.timeZone = timeZone;
}
/**
* Sets the total number of posts by the user
*
* @param totalPosts int value with the total of messages posted by the user
*/
public void setTotalPosts(int totalPosts) {
this.totalPosts = totalPosts;
}
/**
* Sets the username.
*
* @param username The username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* Sets the viewOnlineEnabled.
* @param viewOnlineEnabled The viewOnlineEnabled to set
*/
public void setViewOnlineEnabled(boolean viewOnlineEnabled) {
this.viewOnlineEnabled = viewOnlineEnabled;
}
/**
* Sets the webSite.
*
* @param webSite The webSite to set
*/
public void setWebSite(String webSite) {
this.webSite = webSite;
}
/**
* Sets the Yahoo messenger ID
*
* @param yim The yim to set
*/
public void setYim(String yim) {
this.yim = yim;
}
/**
* @return
*/
public String getMsnm() {
return this.msnm;
}
/**
* @param string
*/
public void setMsnm(String string) {
this.msnm = string;
}
/**
* @return
*/
public boolean isNotifyOnMessagesEnabled() {
return this.notifyOnMessagesEnabled;
}
/**
* @param b
*/
public void setNotifyOnMessagesEnabled(boolean b) {
this.notifyOnMessagesEnabled = b;
}
/**
* @return
*/
public boolean isViewEmailEnabled() {
return this.viewEmailEnabled;
}
/**
* @param b
*/
public void setViewEmailEnabled(boolean b) {
this.viewEmailEnabled = b;
}
/**
* @return
*/
public boolean getAttachSignatureEnabled() {
return this.attachSignatureEnabled;
}
/**
* @param b
*/
public void setAttachSignatureEnabled(boolean b) {
this.attachSignatureEnabled = b;
}
/**
* @return
*/
public ArrayList getGroupsList() {
return this.groupsList;
}
/**
* @return Returns the privateMessagesCount.
*/
public int getPrivateMessagesCount()
{
return this.privateMessagesCount;
}
/**
* @param privateMessagesCount The privateMessagesCount to set.
*/
public void setPrivateMessagesCount(int privateMessagesCount)
{
this.privateMessagesCount = privateMessagesCount;
}
/**
* @return Returns the hasPrivateMessages.
*/
public boolean hasPrivateMessages()
{
return this.privateMessagesCount > 0;
}
/**
* Set when user authenticates his email after user registration
*/
public void setActive(int active){
this.active = active;
}
public void setActivationKey(String activationKey){
this.activationKey = activationKey;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -