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.
|
emptyString
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
public boolean findUser()
findUser
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public java.lang.String getAttribute(java.lang.String astrAttributeName)
astrAttribute
- java.lang.Stringpublic java.util.Vector getAttribute(java.lang.String astrAttributeName, java.lang.String astrStoreEntityId)
astrAttribute
- java.lang.StringastrStoreEntityId
- java.lang.Stringpublic CommandContext getCommandContext()
getCommandContext
in interface SmartDataBean
public java.lang.String getDataBeanKeyMemberId()
getDataBeanKeyMemberId
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface Delegator
java.lang.Exception
public java.lang.String getFirstName()
getFirstName
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public java.lang.String getFirstNameURL()
getFirstNameURL
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public java.lang.String getLastName()
getLastName
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public java.lang.String getLastNameURL()
getLastNameURL
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public java.lang.String getMiddleName()
getMiddleName
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public java.lang.String getMiddleNameURL()
getMiddleNameURL
in interface com.ibm.commerce.user.beans.UserInfoSmartDataBean
public TypedProperty getRequestProperties()
getRequestProperties
in interface InputDataBean
public void populate() throws java.lang.Exception
populate
in interface SmartDataBean
java.lang.Exception
public void setCommandContext(CommandContext acommandContext)
setCommandContext
in interface SmartDataBean
CommandContext
- public void setDataBeanKeyMemberId(java.lang.String aMemberId)
aMemberId
- member Idpublic void setRequestProperties(TypedProperty aRequestProperty)
setRequestProperties
in interface InputDataBean
aRequestProperty
- public void setUserId(java.lang.String aMemberId)
setUserId
in interface com.ibm.commerce.user.beans.UserInfoInputDataBean
aMemberId
- java.lang.String