public class User extends JDBCObject<User>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_USER
A constant that defines the default user for a retail site.
|
static java.lang.String |
MASSMAIL_USER
A constant that defines the mass mail user for notification
framework processing.
|
private static long |
serialVersionUID
The class' serialization version id.
|
static java.lang.String |
TYPE_BOGUS
The type code for a bogus user (created on the fly).
|
static java.lang.String |
TYPE_CUSTADMIN
The type code for a customer administrator.
|
static java.lang.String |
TYPE_CUSTUSER
The type code for a customer user.
|
static java.lang.String |
TYPE_SALESREP
The type code for a sales rep user.
|
static java.lang.String |
TYPE_SITEADMIN
The type code for a site administrator.
|
LOWVAL_RPG_DATE, LOWVAL_RPG_TIME, STATUS_ACTIVE, STATUS_BLANK, STATUS_CANCELED, STATUS_DELETED, STATUS_INACTIVE, STATUS_PENDING
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
User()
Constructs a
User object with all field values set to null . |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowAccess()
Returns the is access allowed flag.
|
java.lang.String |
getCatalogStyle()
Returns the user's current catalog style attribute.
|
CreditCard |
getCreditCard()
Returns the current credit card object.
|
java.lang.String |
getCreditCardNumber()
Returns the current credit card number.
|
java.lang.String |
getCreditCardNumberAsIs()
Returns the current credit card number as-is.
|
java.lang.String |
getCreditCardType()
Returns the current credit card type.
|
Customer |
getCustomer()
Returns the billing information customer object.
|
java.lang.String |
getCustomerId()
Returns the id for billing information customer.
|
Category |
getDefaultCategory()
Returns the default catalog category object.
|
java.lang.String |
getDefaultCategoryCode()
Returns the default catalog category code.
|
java.lang.String |
getEmailAddr()
Returns the primary email address.
|
java.lang.String |
getEmailAddr2()
Returns the secondary email address.
|
java.lang.String |
getFavoritesListId()
Returns the default favorite items list id.
|
java.lang.String |
getFirstName()
Returns the first name.
|
java.lang.String |
getId()
Returns the unique id for the user.
|
java.lang.String |
getIVCreditCardNumber()
Returns the credit card number initialization vector.
|
java.lang.String |
getIVPassword()
Returns the logon password initialization vector.
|
java.lang.String |
getLastName()
Returns the last name.
|
java.util.Date |
getLastOn()
Returns the time when the user last accessed the site.
|
java.lang.String |
getMiddleInitial()
Returns the middle initial.
|
java.lang.String |
getName()
Returns the name.
|
java.util.ArrayList<NotificationPref> |
getNotificationPrefs()
(not persisted) Returns the collection of notification preferences.
|
java.lang.String |
getPassword()
Returns the logon password.
|
int |
getPasswordExpDays()
Returns the password expiration days.
|
boolean |
getPasswordForceChange()
Returns the force password change at next logon flag.
|
java.util.Date |
getPasswordLastChange()
Returns the time when password was last changed.
|
java.lang.String |
getPhone1()
Returns the phone number 1.
|
java.lang.String |
getPhone1Descr()
Returns the phone number 1 description.
|
java.lang.String |
getPhone1Ext()
Returns the phone number 1 extension.
|
java.lang.String |
getPhone2()
Returns the phone number 2.
|
java.lang.String |
getPhone2Descr()
Returns the phone number 2 description.
|
java.lang.String |
getPhone2Ext()
Returns the phone number 2 extension.
|
java.lang.String |
getPhone3()
Returns the phone number 3.
|
java.lang.String |
getPhone3Descr()
Returns the phone number 3 description.
|
java.lang.String |
getPhone3Ext()
Returns the phone number 3 extension.
|
java.lang.String |
getPhone4()
Returns the phone number 4.
|
java.lang.String |
getPhone4Descr()
Returns the phone number 4 description.
|
java.lang.String |
getPhone4Ext()
Returns the phone number 4 extension.
|
java.lang.String |
getPhoneSMS()
Returns the phone number for SMS.
|
java.lang.String |
getPrefix()
Returns the name prefix.
|
java.lang.String |
getPushTopic()
Returns the push notification topic.
|
boolean |
getReceivePromos()
Returns the receive promotional emails flag.
|
SecurityProfile |
getSecurityProfile(FlashServletContext ctx)
Returns the security profile.
|
java.lang.String |
getSecurityProfileCode()
Returns the security profile code.
|
Customer |
getShipto()
Returns the current shipping information customer object.
|
java.lang.String |
getShiptoId()
Returns the id for current shipping information customer.
|
java.lang.String |
getSuffix()
Returns the name suffix.
|
java.lang.String |
getTitle()
Returns the title.
|
Category |
getTopmostCategory()
Returns the topmost catalog category object.
|
java.lang.String |
getTopmostCategoryCode()
Returns the topmost catalog category code.
|
java.lang.String |
getType()
Returns the user type code.
|
java.lang.String |
getWebPage()
Returns the web page url.
|
boolean |
isDefaultUser()
Answers if the user is the default user.
|
boolean |
isPasswordExpired()
Answers if the user's password has expired.
|
boolean |
isPasswordSame(java.lang.String password)
Answers if the given password matches the user's password.
|
void |
setAllowAccess(boolean value)
Sets the is access allowed flag.
|
void |
setCatalogStyle(java.lang.String value)
Sets the user's current catalog style attribute.
|
void |
setCreditCard(CreditCard value)
Sets the current credit card object.
|
private void |
setCreditCardNumber(java.lang.String value)
Sets the current credit card number.
|
private void |
setCreditCardType(java.lang.String value)
Sets the current credit card type.
|
void |
setCustomer(Customer value)
Sets the billing information customer object.
|
private void |
setCustomerId(java.lang.String value)
Sets the id for billing information customer.
|
void |
setDefaultCategory(Category value)
Sets the default catalog category object.
|
private void |
setDefaultCategoryCode(java.lang.String value)
Sets the default catalog category code.
|
void |
setEmailAddr(java.lang.String value)
Sets the primary email address.
|
void |
setEmailAddr2(java.lang.String value)
Sets the secondary email address.
|
void |
setFavoritesListId(java.lang.String value)
Sets the default favorite items list id.
|
void |
setFirstName(java.lang.String value)
Sets the first name.
|
void |
setId(java.lang.String value)
Sets the unique id for the user.
|
void |
setIVCreditCardNumber(java.lang.String value)
Sets the credit card number initialization vector.
|
void |
setIVPassword(java.lang.String value)
Sets the logon password initialization vector.
|
void |
setLastName(java.lang.String value)
Sets the last name.
|
void |
setLastOn(java.util.Date value)
Sets the time when the user last accessed the site.
|
void |
setMiddleInitial(java.lang.String value)
Sets the middle initial.
|
void |
setName(java.lang.String value)
Sets the name.
|
void |
setNotificationPrefs(java.util.ArrayList<NotificationPref> value)
(not persisted) Sets the collection of notification preferences.
|
void |
setPassword(java.lang.String value)
Sets the logon password.
|
void |
setPasswordExpDays(int value)
Sets the password expiration days.
|
void |
setPasswordForceChange(boolean value)
Sets the force password change at next logon flag.
|
void |
setPasswordLastChange(java.util.Date value)
Sets the time when password was last changed.
|
void |
setPhone1(java.lang.String value)
Sets the phone number 1.
|
void |
setPhone1Descr(java.lang.String value)
Sets the phone number 1 description.
|
void |
setPhone1Ext(java.lang.String value)
Sets the phone number 1 extension.
|
void |
setPhone2(java.lang.String value)
Sets the phone number 2.
|
void |
setPhone2Descr(java.lang.String value)
Sets the phone number 2 description.
|
void |
setPhone2Ext(java.lang.String value)
Sets the phone number 2 extension.
|
void |
setPhone3(java.lang.String value)
Sets the phone number 3.
|
void |
setPhone3Descr(java.lang.String value)
Sets the phone number 3 description.
|
void |
setPhone3Ext(java.lang.String value)
Sets the phone number 3 extension.
|
void |
setPhone4(java.lang.String value)
Sets the phone number 4.
|
void |
setPhone4Descr(java.lang.String value)
Sets the phone number 4 description.
|
void |
setPhone4Ext(java.lang.String value)
Sets the phone number 4 extension.
|
void |
setPhoneSMS(java.lang.String value)
Sets the phone number for SMS.
|
void |
setPrefix(java.lang.String value)
Sets the name prefix.
|
void |
setReceivePromos(boolean value)
Sets the receive promotional emails flag.
|
void |
setSecurityProfileCode(java.lang.String value)
Sets the security profile code.
|
void |
setShipto(Customer value)
Sets the current shipping information customer object.
|
private void |
setShiptoId(java.lang.String value)
Sets the id for current shipping information customer.
|
void |
setSuffix(java.lang.String value)
Sets the name suffix.
|
void |
setTitle(java.lang.String value)
Sets the title.
|
void |
setTopmostCategory(Category value)
Sets the topmost catalog category object.
|
private void |
setTopmostCategoryCode(java.lang.String value)
Sets the topmost catalog category code.
|
void |
setType(java.lang.String value)
Sets the user type code.
|
void |
setWebPage(java.lang.String value)
Sets the web page url.
|
after, before, compareTo, equals, fmtStatus, fmtStatus, getObjectStatus, hashKey, setObjectStatus
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public static final java.lang.String DEFAULT_USER
public static final java.lang.String MASSMAIL_USER
public static final java.lang.String TYPE_SITEADMIN
public static final java.lang.String TYPE_CUSTADMIN
public static final java.lang.String TYPE_CUSTUSER
public static final java.lang.String TYPE_SALESREP
public static final java.lang.String TYPE_BOGUS
public User()
User
object with all field values set to null
.
Initializes the following flags and values based on configured defaults.
setAllowAccess() | true |
setPasswordForceChange() | User.PasswordForceChange.Default |
setPasswordExpDays() | User.PasswordExpireDays.Default |
setSecurityProfileCode() | User.SecurityProfile.Default |
setReceivePromos() | User.ReceivePromos.Default |
public java.lang.String getId()
public void setId(java.lang.String value)
value
- (String) The unique id for the user.public java.lang.String getPassword()
public void setPassword(java.lang.String value)
value
- (String) The logon password (unencrypted value).public java.lang.String getName()
public void setName(java.lang.String value)
value
- (String) The name.public Customer getCustomer()
public void setCustomer(Customer value)
value
- (Customer) The billing information customer object.public java.lang.String getCustomerId()
private void setCustomerId(java.lang.String value)
value
- (String) The id for billing information customer.public Customer getShipto()
public void setShipto(Customer value)
value
- (Customer) The current shipping information customer
object.public java.lang.String getShiptoId()
private void setShiptoId(java.lang.String value)
value
- (String) The id for current shipping information customer.public java.lang.String getType()
public void setType(java.lang.String value)
value
- (String) The user type code.public java.lang.String getEmailAddr()
public void setEmailAddr(java.lang.String value)
value
- (String) The primary email address.public java.lang.String getEmailAddr2()
public void setEmailAddr2(java.lang.String value)
value
- (String) The secondary email address.public java.util.Date getLastOn()
public void setLastOn(java.util.Date value)
value
- (java.util.Date) The time when the user last accessed the
site.public CreditCard getCreditCard()
public void setCreditCard(CreditCard value)
value
- (CreditCard) The current credit card object.public java.lang.String getCreditCardNumber()
public java.lang.String getCreditCardNumberAsIs()
private void setCreditCardNumber(java.lang.String value)
value
- (String) The credit card number (as it's stored in the db).public java.lang.String getCreditCardType()
private void setCreditCardType(java.lang.String value)
value
- (String) The current credit card type.public Category getTopmostCategory()
public void setTopmostCategory(Category value)
value
- (Category) The topmost catalog category object.public java.lang.String getTopmostCategoryCode()
private void setTopmostCategoryCode(java.lang.String value)
value
- (String) The topmost catalog category code.public Category getDefaultCategory()
public void setDefaultCategory(Category value)
value
- (Category) The default catalog category object.public java.lang.String getDefaultCategoryCode()
private void setDefaultCategoryCode(java.lang.String value)
value
- (String) The default catalog category code.public java.lang.String getFirstName()
public void setFirstName(java.lang.String value)
value
- (String) The first name.public java.lang.String getMiddleInitial()
public void setMiddleInitial(java.lang.String value)
value
- (String) The middle initial.public java.lang.String getLastName()
public void setLastName(java.lang.String value)
value
- (String) The last name.public java.lang.String getTitle()
public void setTitle(java.lang.String value)
value
- (String) The title.public java.lang.String getPrefix()
public void setPrefix(java.lang.String value)
value
- (String) The name prefix.public java.lang.String getSuffix()
public void setSuffix(java.lang.String value)
value
- (String) The name suffix.public java.lang.String getWebPage()
public void setWebPage(java.lang.String value)
value
- (String) The web page url.public java.lang.String getPhone1Descr()
public void setPhone1Descr(java.lang.String value)
value
- (String) The phone number 1 description.public java.lang.String getPhone1()
public void setPhone1(java.lang.String value)
value
- (String) The phone number 1.public java.lang.String getPhone1Ext()
public void setPhone1Ext(java.lang.String value)
value
- (String) The phone number 1 extension.public java.lang.String getPhone2Descr()
public void setPhone2Descr(java.lang.String value)
value
- (String) The phone number 2 description.public java.lang.String getPhone2()
public void setPhone2(java.lang.String value)
value
- (String) The phone number 2.public java.lang.String getPhone2Ext()
public void setPhone2Ext(java.lang.String value)
value
- (String) The phone number 2 extension.public java.lang.String getPhone3Descr()
public void setPhone3Descr(java.lang.String value)
value
- (String) The phone number 3 description.public java.lang.String getPhone3()
public void setPhone3(java.lang.String value)
value
- (String) The phone number 3.public java.lang.String getPhone3Ext()
public void setPhone3Ext(java.lang.String value)
value
- (String) The phone number 3 extension.public java.lang.String getPhone4Descr()
public void setPhone4Descr(java.lang.String value)
value
- (String) The phone number 4 description.public java.lang.String getPhone4()
public void setPhone4(java.lang.String value)
value
- (String) The phone number 4.public java.lang.String getPhone4Ext()
public void setPhone4Ext(java.lang.String value)
value
- (String) The phone number 4 extension.public java.lang.String getPhoneSMS()
public void setPhoneSMS(java.lang.String value)
value
- (String) The phone number for SMS.public java.lang.String getPushTopic()
public boolean getAllowAccess()
public void setAllowAccess(boolean value)
value
- (boolean) The is access allowed flag.public boolean getPasswordForceChange()
public void setPasswordForceChange(boolean value)
value
- (boolean) The force password change at next logon flag.public java.util.Date getPasswordLastChange()
public void setPasswordLastChange(java.util.Date value)
value
- (java.util.Date) The time when password was last changed.public int getPasswordExpDays()
public void setPasswordExpDays(int value)
value
- (int) The password expiration days.public SecurityProfile getSecurityProfile(FlashServletContext ctx)
ctx
- (FlashServletContext) The current servlet context.public java.lang.String getSecurityProfileCode()
public void setSecurityProfileCode(java.lang.String value)
value
- (String) The security profile code.public java.util.ArrayList<NotificationPref> getNotificationPrefs()
null
if no
notification preferences exists for the user.public void setNotificationPrefs(java.util.ArrayList<NotificationPref> value)
value
- (ArrayList) The notification preferences.public boolean getReceivePromos()
public void setReceivePromos(boolean value)
value
- (boolean) The receive promotional emails flag.public java.lang.String getFavoritesListId()
public void setFavoritesListId(java.lang.String value)
value
- (String) The default favorite items list id.public java.lang.String getCatalogStyle()
public void setCatalogStyle(java.lang.String value)
value
- (String) The user's current catalog style.public java.lang.String getIVPassword()
public void setIVPassword(java.lang.String value)
value
- (String) The logon password initialization vector.public java.lang.String getIVCreditCardNumber()
public void setIVCreditCardNumber(java.lang.String value)
value
- (String) The credit card number initialization vector.public boolean isDefaultUser()
true
if the user is the default user,
otherwise false
.public boolean isPasswordExpired()
true
if the password has expired, otherwise
false
.public boolean isPasswordSame(java.lang.String password)
password
- (String) The password that is to be compared.true
if the specified password matches
the user's password, otherwise false
.