public class UserInfoDataBean extends java.lang.Object implements com.ibm.commerce.user.beans.UserInfoInputDataBean, com.ibm.commerce.user.beans.UserInfoSmartDataBean, Delegator
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 activate a UserInfoDataBean:
UserInfoDataBean bnRegister = new UserInfoDataBean(); com.ibm.commerce.beans.DataBeanManager.activate(bnRegister, request);The UserInfoDataBean will automatically 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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The fully qualified name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected static java.lang.String[][] | CurrencyList
List of currencies for this user.
|
protected boolean | ibUserFound
Indicate weather user is found or not.
|
protected CommandContext | iCommandContext
CommandContext instance variable.
|
protected java.lang.String | iDataBeanKeyMemberId
The memberId.
|
protected TypedProperty | iRequestProperties
RequestProperties instance variable.
|
protected UserSyncBean | isbUser
UserSyncBean to fetch user information.
|
protected static java.lang.String | istrLanguageIdForCurrency
LanguageId for currenty.
|
protected static java.lang.String | istrLanguageIdForLanguage
LanguageId for language.
|
protected java.lang.String | istrStoreDirectory
Store directory.
|
protected static java.lang.String[][] | LanguageList
List of languages for this user.
|
protected java.lang.String | strProfileType
User's profile type.
|
Constructor and Description |
---|
UserInfoDataBean()
UserInfoDataBean constructor
|
Modifier and Type | Method and Description |
---|---|
boolean | findUser()
Returns a boolean value indicating whether the user is found according to the specified userId.
|
java.lang.String | getAttribute(java.lang.String astrAttributeName)
Gets value of the attribute.
|
java.util.Vector | getAttribute(java.lang.String astrAttributeName, java.lang.String astrStoreEntityId)
Gets value of the attribute.
|
CommandContext | getCommandContext()
Gets the command context.
|
java.lang.String | getDataBeanKeyMemberId()
Gets the databean key memberId.
|
Protectable | getDelegate()
getDelegate returns null.
|
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()
Gets the request properties
|
void | populate()
*
|
void | setCommandContext(CommandContext acommandContext)
Sets CommandContext.
|
void | setDataBeanKeyMemberId(java.lang.String aMemberId)
Sets the memberId.
|
void | setRequestProperties(TypedProperty aRequestProperty)
Sets requestProperties
|
void | setUserId(java.lang.String aMemberId)
sets the userId
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected java.lang.String iDataBeanKeyMemberId
protected CommandContext iCommandContext
protected TypedProperty iRequestProperties
protected UserSyncBean isbUser
protected boolean ibUserFound
protected java.lang.String istrStoreDirectory
protected static java.lang.String[][] CurrencyList
protected static java.lang.String[][] LanguageList
protected static java.lang.String istrLanguageIdForCurrency
protected static java.lang.String istrLanguageIdForLanguage
protected java.lang.String strProfileType
public boolean findUser()
public java.lang.String getAttribute(java.lang.String astrAttributeName)
public java.util.Vector getAttribute(java.lang.String astrAttributeName, java.lang.String astrStoreEntityId)
public CommandContext getCommandContext()
public java.lang.String getDataBeanKeyMemberId()
public Protectable getDelegate() throws java.lang.Exception
public java.lang.String getFirstName()
public java.lang.String getFirstNameURL()
public java.lang.String getLastName()
public java.lang.String getLastNameURL()
public java.lang.String getMiddleName()
public java.lang.String getMiddleNameURL()
public TypedProperty getRequestProperties()
public void populate() throws java.lang.Exception
public void setCommandContext(CommandContext acommandContext)
public void setDataBeanKeyMemberId(java.lang.String aMemberId)
public void setRequestProperties(TypedProperty aRequestProperty) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.FinderException
public void setUserId(java.lang.String aMemberId)