edu.rice.rubis.beans
Interface UserLocal

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface UserLocal
extends javax.ejb.EJBLocalObject

This is the Remote Interface of the User Bean.

Version:
1.0
Author:
Emmanuel Cecchet

Method Summary
 float getBalance()
          Get user's account current balance.
 java.lang.String getCreationDate()
          Get user creation date.
 java.lang.String getEmail()
          Get user email address.
 java.lang.String getFirstName()
          Get user first name.
 java.lang.String getHTMLGeneralUserInformation()
          Returns a string displaying general information about the user.
 java.lang.Integer getId()
          Get user's id.
 java.lang.String getLastName()
          Get user last name.
 java.lang.String getNickName()
          Get user nick name.
 java.lang.String getPassword()
          Get user password.
 int getRating()
          Get user rating.
 java.lang.Integer getRegionId()
          Get region identifier of user's region.
 void setBalance(float newBalance)
          Set user's account current balance.
 void setCreationDate(java.lang.String newCreationDate)
          Set a new creation date for this user account
 void setEmail(java.lang.String newEmail)
          Set user's email address
 void setFirstName(java.lang.String newName)
          Set user's first name
 void setLastName(java.lang.String newName)
          Set user's last name
 void setNickName(java.lang.String newName)
          Set user's nick name
 void setPassword(java.lang.String newPassword)
          Set user's password
 void setRating(int newRating)
          Set user rating.
 void setRegionId(java.lang.Integer id)
          Set a new region identifier.
 void updateRating(int diff)
          Update the current rating by adding a new value to it.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getId

public java.lang.Integer getId()
Get user's id.
Returns:
user id

getFirstName

public java.lang.String getFirstName()
Get user first name.
Returns:
user first name

getLastName

public java.lang.String getLastName()
Get user last name.
Returns:
user last name

getNickName

public java.lang.String getNickName()
Get user nick name. This name is unique for each user and is used for login.
Returns:
user nick name

getPassword

public java.lang.String getPassword()
Get user password.
Returns:
user password

getEmail

public java.lang.String getEmail()
Get user email address.
Returns:
user email address

getRating

public int getRating()
Get user rating. The higher the rating is, the most reliable the user is.
Returns:
user rating

getBalance

public float getBalance()
Get user's account current balance. This account is used when a user want to sell items. There is a charge for each item to sell.
Returns:
user's account current balance

getCreationDate

public java.lang.String getCreationDate()
Get user creation date.
Returns:
user creation date

getRegionId

public java.lang.Integer getRegionId()
Get region identifier of user's region.
Returns:
region id of the user

setFirstName

public void setFirstName(java.lang.String newName)
Set user's first name
Parameters:
newName - user first name

setLastName

public void setLastName(java.lang.String newName)
Set user's last name
Parameters:
newName - user last name

setNickName

public void setNickName(java.lang.String newName)
Set user's nick name
Parameters:
newName - user nick name

setPassword

public void setPassword(java.lang.String newPassword)
Set user's password
Parameters:
newPassword - a String value

setEmail

public void setEmail(java.lang.String newEmail)
Set user's email address
Parameters:
newEmail - a String value

setCreationDate

public void setCreationDate(java.lang.String newCreationDate)
Set a new creation date for this user account
Parameters:
newCreationDate - new user account creation date

setRegionId

public void setRegionId(java.lang.Integer id)
Set a new region identifier. This id must match the primary key of the region table.
Parameters:
id - region id

setRating

public void setRating(int newRating)
Set user rating. The higher the rating is, the most reliable the user is.
Parameters:
newRating - new user rating

updateRating

public void updateRating(int diff)
Update the current rating by adding a new value to it. This value can be negative if someone wants to decrease the user rating.
Parameters:
diff - value to add to the rating

setBalance

public void setBalance(float newBalance)
Set user's account current balance. This account is used when a user want to sell items. There is a charge for each sold item.
Parameters:
newBalance - set user's account current balance

getHTMLGeneralUserInformation

public java.lang.String getHTMLGeneralUserInformation()
Returns a string displaying general information about the user. The string contains HTML tags.
Returns:
string containing general user information


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.