com.ibm.commerce.user.beans
Class UserInfoDataBean

com.ibm.commerce.user.beans.UserInfoDataBean
All Implemented Interfaces:
Delegator

public class UserInfoDataBean
implements Delegator

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  com.ibm.commerce.member.helpers.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()
           
 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)
           
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT

CurrencyList

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

ibUserFound

protected boolean ibUserFound

iCommandContext

protected CommandContext iCommandContext

iDataBeanKeyMemberId

protected java.lang.String iDataBeanKeyMemberId

imbUser

protected com.ibm.commerce.member.helpers.UserManageBean imbUser

iRequestProperties

protected TypedProperty iRequestProperties

istrLanguageIdForCurrency

protected static java.lang.String istrLanguageIdForCurrency

istrLanguageIdForLanguage

protected static java.lang.String istrLanguageIdForLanguage

istrStoreDirectory

protected java.lang.String istrStoreDirectory

LanguageList

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

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)
Parameters:
astrAttribute - java.lang.String
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 Protectable getDelegate()
                        throws java.lang.Exception
getDelegate method comment.
Specified by:
getDelegate in interface Delegator
Following copied from interface: com.ibm.commerce.security.Delegator
Returns:
The Protectable object whose access control policies will indirectly control the access control for this object

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

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

setUserId

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