com.ibm.commerce.user.beans
Class UserInfoDataBean

java.lang.Object
  |
  +--com.ibm.commerce.user.beans.UserInfoDataBean

public class UserInfoDataBean
extends java.lang.Object

The UserInfoDataBean representing the registration information of a member.

This bean is for internal use only. No access control policy is applied on this databean. Only lastName, firstName and middleName can be accessed from this databean. The following code can be used to create and active a UserInfoDataBean:

  UserInfoDataBean bnRegister = new UserInfoDataBean();
  com.ibm.commerce.beans.DataBeanManager.activate(bnRegister, request);
The UserInfoDataBean will automatially get userId from commandContext. Users can also setUserId(String) to set the userId directly to overwrite the userId get from commandContext:
  UserRegistrationDataBean bnRegister = new UserRegistrationDataBean();
  bnRegister.setUserId("-1000");
  com.ibm.commerce.beans.DataBeanManager.activate(bnRegister, request);
If the specified user is found, the findUser() method will return true, otherwise return false.

Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
protected static java.lang.String[][] CurrencyList
           
protected  boolean ibUserFound
           
protected  CommandContext iCommandContext
           
protected  java.lang.String iDataBeanKeyMemberId
           
protected  UserManageBean imbUser
           
protected  TypedProperty iRequestProperties
           
protected static java.lang.String istrLanguageIdForCurrency
           
protected static java.lang.String istrLanguageIdForLanguage
           
protected  java.lang.String istrStoreDirectory
           
protected static java.lang.String[][] LanguageList
           
protected  java.lang.String strProfileType
           
 
Constructor Summary
UserInfoDataBean()
          RegisterDataBean constructor
 
Method Summary
 boolean findUser()
          Returns a boolean value indicating whether the user is found according to the userId specified.
 java.lang.String getAttribute(java.lang.String astrAttributeName)
          Insert the method's description here.
 java.util.Vector getAttribute(java.lang.String astrAttributeName, java.lang.String astrStoreEntityId)
           
  CommandContext getCommandContext()
          Gets the command context.
 java.lang.String getDataBeanKeyMemberId()
           
 com.ibm.commerce.security.Protectable getDelegate()
          getDelegate method comment.
 java.lang.String getFirstName()
          Gets the first name of the individual.
 java.lang.String getFirstNameURL()
          Gets the name of FirstName URL parameter.
 java.lang.String getLastName()
          Gets the last name of the individual.
 java.lang.String getLastNameURL()
          Gets the name of LastName URL parameter.
 java.lang.String getMiddleName()
          Gets the middle name of the individual.
 java.lang.String getMiddleNameURL()
          Gets the name of MiddleName URL parameter.
  TypedProperty getRequestProperties()
           
 void populate()
           
 void setCommandContext( CommandContext acommandContext)
           
 void setDataBeanKeyMemberId(java.lang.String aMemberId)
           
 void setRequestProperties( TypedProperty aRequestProperty)
           
 void setUserId(java.lang.String aMemberId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

iDataBeanKeyMemberId

protected java.lang.String iDataBeanKeyMemberId

iCommandContext

protected CommandContext iCommandContext

iRequestProperties

protected TypedProperty iRequestProperties

imbUser

protected UserManageBean imbUser

ibUserFound

protected boolean ibUserFound

istrStoreDirectory

protected java.lang.String istrStoreDirectory

CurrencyList

protected static java.lang.String[][] CurrencyList

LanguageList

protected static java.lang.String[][] LanguageList

istrLanguageIdForCurrency

protected static java.lang.String istrLanguageIdForCurrency

istrLanguageIdForLanguage

protected static java.lang.String istrLanguageIdForLanguage

strProfileType

protected java.lang.String strProfileType
Constructor Detail

UserInfoDataBean

public UserInfoDataBean()
RegisterDataBean constructor
Method Detail

findUser

public boolean findUser()
Returns a boolean value indicating whether the user is found according to the userId specified. True - The specified user is found False - Can not find the specified user
Returns:
A boolean value indicating whether the specified user is found

getAttribute

public java.lang.String getAttribute(java.lang.String astrAttributeName)
Insert the method's description here. Creation date: (7/9/2001 6:03:43 PM)
Returns:
java.lang.String

getAttribute

public java.util.Vector getAttribute(java.lang.String astrAttributeName,
                                     java.lang.String astrStoreEntityId)

getCommandContext

public CommandContext getCommandContext()
Gets the command context.
Returns:
The command context

getDataBeanKeyMemberId

public java.lang.String getDataBeanKeyMemberId()
Returns:
java.lang.String

getDelegate

public com.ibm.commerce.security.Protectable getDelegate()
                                                  throws java.lang.Exception
getDelegate method comment.
java.lang.Exception

getFirstName

public java.lang.String getFirstName()
Gets the first name of the individual.
Returns:
The first name

getFirstNameURL

public java.lang.String getFirstNameURL()
Gets the name of FirstName URL parameter.
Returns:
The name of FirstName URL parameter

getLastName

public java.lang.String getLastName()
Gets the last name of the individual.
Returns:
The last name

getLastNameURL

public java.lang.String getLastNameURL()
Gets the name of LastName URL parameter.
Returns:
The name of LastName URL parameter

getMiddleName

public java.lang.String getMiddleName()
Gets the middle name of the individual.
Returns:
The middle name

getMiddleNameURL

public java.lang.String getMiddleNameURL()
Gets the name of MiddleName URL parameter.
Returns:
The name of MiddleName URL parameter

getRequestProperties

public TypedProperty getRequestProperties()

populate

public void populate()
              throws java.lang.Exception
java.lang.Exception

setCommandContext

public void setCommandContext(CommandContext acommandContext)

setDataBeanKeyMemberId

public void setDataBeanKeyMemberId(java.lang.String aMemberId)
Parameters:
aMemberId - java.lang.String
Returns:
void

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperty)
                          throws javax.ejb.CreateException,
                                 java.rmi.RemoteException,
                                 javax.naming.NamingException,
                                 javax.ejb.FinderException
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
javax.ejb.FinderException

setUserId

public void setUserId(java.lang.String aMemberId)
Parameters:
aMemberId - java.lang.String
Returns:
void