public class UserDataBean
extends com.ibm.commerce.user.beansrc.UserDataBeanBase
implements com.ibm.commerce.user.beans.UserInputDataBean, com.ibm.commerce.user.beans.UserSmartDataBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
emptyString
Constructor and Description |
---|
UserDataBean()
Default constructor
|
UserDataBean(UserAccessBean aabUser)
Constructs an UserDataBean from an UserAccessBean.
|
UserDataBean(UserAccessBean aabUser,
CommandContext aCommandContext)
Constructs an UserDataBean from an UserAccessBean and commandContext
|
Modifier and Type | Method and Description |
---|---|
static void |
clearTransactionCachedUserDataBeans() |
boolean |
fulfills(java.lang.Long member,
java.lang.String relationship)
An access control method used to determine if a given member fulfills a given
relationship with the user resource.
|
java.lang.String |
getAccountStatus()
Get the user's account status
|
CommandContext |
getCommandContext()
Gets the command context set within this bean.
|
java.lang.String |
getDataBeanKeyMemberId()
Gets the key (user id) of this data bean.
|
java.lang.String |
getFirstName()
Get the user's firstname
|
java.lang.String |
getLastName()
Get the user's lastname
|
java.lang.String |
getLogonId()
Get the user's logon id
|
TypedProperty |
getRequestProperties()
Gets the request property set within this bean.
|
static UserDataBean |
getTransactionCachedUserDataBean(java.lang.String astrUserId,
CommandContext aCommandContext)
Returns an UserDataBean from the transaction cache, or, if it is not there,
then creates a new UserDataBean,
and places it in the transaction cache.
|
static UserDataBean |
getTransactionCachedUserDataBean(UserAccessBean aUserAB,
CommandContext aCommandContext)
Returns an UserDataBean from the transaction cache, or, if it is not there,
then creates a new UserDataBean,
and places it in the transaction cache.
|
void |
populate()
Retrieves data from the database.
|
void |
setCommandContext(CommandContext aCommandContext)
Sets the command context within this bean.
|
void |
setDataBeanKeyMemberId(java.lang.String aMemberId)
Sets the key(member id) of this data bean.
|
void |
setRequestProperties(TypedProperty aRequestProperty)
Sets the request property within this bean.
|
addAddress, addBusinessProfile, addDemographics, addUserProfile, addUserRegistry, findAccessGroupOwner, findAdministrators, findAllRegistered, findByDN, findByDNNoCache, findByUniqueIdentifier, findByUniqueIdentifierNoCache, findRegisteredUserByPersonalizationId, findRegisteredUserByPersonalizationIdNoCache, findUserIdsByPersonalizationId, findUserIdsByPersonalizationIdNoCache, findUsersByPersonalizationId, findUsersByPersonalizationIdNoCache, findUsersForAdminByLogonIdAndCriteria, findUsersForAdminByLogonIdAndCriteria, getAddress, getAllStoreGroupMembers, getAncestors, getBusinessProfile, getChildren, getDemographics, getDescendants, getDisplayName, getDistinguishedName, getEntity, getGroupingAttributeValue, getLastOrder, getLastOrderInEntityType, getLastSession, getLastSessionInEntityType, getMemberGroups, getMemberId, getMemberIdInEntityType, getOwnedMemberGroups, getOwner, getParentMemberId, getPersonalizationId, getPreferredCurrency, getPreferredLanguageId, getPreferredLanguageIdInEntityType, getPreviousLastSession, getPreviousLastSessionInEntityType, getPrimaryAddress, getProfileType, getRegisterType, getRegistration, getRegistrationCancel, getRegistrationCancelInEntityType, getRegistrationInEntityType, getRegistrationUpdate, getRegistrationUpdateInEntityType, getRoles, getRoles, getRolesForOrgEntityAndAncestors, getState, getStateInEntityType, getType, getUserField1, getUserField2, getUserField3, getUserId, getUserIdInEntityType, getUserProfile, getUserRegistry, instantiateEntity, isAdministrator, isAdministratorForAllStores, isRoleForAllStores, isSiteAdministrator, isStoreAdministrator, setDistinguishedName, setInitKey_memberId, setInitKey_memberId, setLastOrder, setLastOrder, setLastSession, setLastSession, setParentMemberId, setPersonalizationId, setPreferredCurrency, setPreferredLanguageId, setPreferredLanguageId, setPreviousLastSession, setPreviousLastSession, setProfileType, setRegisterType, setRegistration, setRegistration, setRegistrationCancel, setRegistrationCancel, setRegistrationUpdate, setRegistrationUpdate, setState, setState, setUserField1, setUserField2, setUserField3
createAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOwner
getGroupingAttributeValue
public static final java.lang.String COPYRIGHT
public UserDataBean(UserAccessBean aabUser, CommandContext aCommandContext)
aabUser
- UserAccessBeanaCommandContext
- Command Contextjava.lang.Exception
public UserDataBean(UserAccessBean aabUser)
aabUser
- UserAccessBeanjava.lang.Exception
public UserDataBean()
public static final UserDataBean getTransactionCachedUserDataBean(UserAccessBean aUserAB, CommandContext aCommandContext)
aUserAB
- the user for the data bean.aCommandContext
- the command context for the data bean.
If this is null, then the transaction cache is not used.java.lang.Exception
public static final UserDataBean getTransactionCachedUserDataBean(java.lang.String astrUserId, CommandContext aCommandContext)
astrUserId
- the user Id for the data bean.aCommandContext
- the command context for the data bean.
If this is null, then the transaction cache is not used.public static final void clearTransactionCachedUserDataBeans()
public CommandContext getCommandContext()
getCommandContext
in interface SmartDataBean
public java.lang.String getDataBeanKeyMemberId()
getDataBeanKeyMemberId
in interface com.ibm.commerce.user.beans.UserSmartDataBean
public TypedProperty getRequestProperties()
getRequestProperties
in interface InputDataBean
public void populate()
populate
in interface SmartDataBean
java.lang.Exception
- Thrown if an exception occurs.public void setCommandContext(CommandContext aCommandContext)
setCommandContext
in interface SmartDataBean
aCommandContext
- com.ibm.commerce.command.CommandContextpublic void setDataBeanKeyMemberId(java.lang.String aMemberId)
setDataBeanKeyMemberId
in interface com.ibm.commerce.user.beans.UserInputDataBean
aMemberId
- The key of this data bean.public void setRequestProperties(TypedProperty aRequestProperty)
setRequestProperties
in interface InputDataBean
aRequestProperty
- The input properties.public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception
fulfills
in interface Protectable
fulfills
in class UserAccessBean
member
- The member ID.relationship
- The relationship.RemoteException
- Thrown if a remote exception occurs.java.lang.Exception
- Thrown if any other exception occurs.public java.lang.String getLastName()
public java.lang.String getFirstName()
public java.lang.String getLogonId()
public java.lang.String getAccountStatus()