com.konakartadmin.app
Class AdminCustomer

java.lang.Object
  extended by com.konakartadmin.app.AdminCustomer
All Implemented Interfaces:
AdminObjectIf

public class AdminCustomer
extends java.lang.Object
implements AdminObjectIf

Customer object for the Admin Apis


Field Summary
private  java.util.Date accountCreated
          accountCreated
private  java.util.Date accountLastModified
          accountLastModified
private  AdminAddress[] addresses
          Addresses
private  java.util.Date birthDate
          birthDate
private  java.lang.String custom1
          custom field
private  java.lang.String custom2
          custom field
private  java.lang.String custom3
          custom field
private  java.lang.String custom4
          custom field
private  java.lang.String custom5
          custom field
private  AdminAddress defaultAddr
          defaultAddr
private  int defaultAddrId
          default addr id
private  java.lang.String emailAddr
          emailAddr
private  boolean enabled
          Is the customer enabled.
private  java.lang.String faxNumber
          faxNumber
private  java.lang.String firstName
          firstName
private  java.lang.String gender
          gender
private  int globalProdNotifier
          globalProdNotifier
private  int groupId
          Id of the group that the customer belongs to.
private  int id
          id
private  byte invisible
          Customer visibility
private  java.util.Date lastLogon
          lastLogon - From customers_info
private  java.lang.String lastName
          lastName
private  java.lang.String locale
          Locale of the customer
private  java.lang.String newsletter
          newsletter
private  int numberOfLogons
          numberOfLogons
private  AdminOrder[] orders
          Orders
private  java.lang.String password
          password
private  AdminProductNotification[] prodNotifications
          Array of products that customer wants to be notified of
private  AdminProduct[] productNotifications
          Deprecated. 
private  int promotionMaxUse
          The maximum number of times a promotion can be used
private  int promotionTimesUsed
          The number of times a promotion has been used
private  AdminRole[] roles
          The roles of this customer.
private  java.lang.String telephoneNumber
          telephoneNumber
private  java.lang.String telephoneNumber1
          telephoneNumber1
private  int type
          Type of customer.
 
Constructor Summary
AdminCustomer()
          Constructor
AdminCustomer(com.workingdogs.village.Record vr, com.konakart.bl.KKCriteria c)
          Instantiates the attributes of the Customer object from a Record object
 
Method Summary
 java.util.Date getAccountCreated()
           
 java.util.Date getAccountLastModified()
           
 AdminAddress[] getAddresses()
           
 java.util.Date getBirthDate()
           
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 AdminAddress getDefaultAddr()
           
 int getDefaultAddrId()
           
 java.lang.String getEmailAddr()
           
 java.lang.String getFaxNumber()
           
 java.lang.String getFirstName()
           
 java.lang.String getGender()
           
 int getGlobalProdNotifier()
           
 int getGroupId()
          If negative, the customer belongs to no groups.
 int getId()
           
 byte getInvisible()
           
 java.util.Date getLastLogon()
           
 java.lang.String getLastName()
           
 java.lang.String getLocale()
          Locale of the customer
 java.lang.String getNewsletter()
           
 int getNumberOfLogons()
           
 AdminOrder[] getOrders()
           
 java.lang.String getPassword()
           
 AdminProductNotification[] getProdNotifications()
           
 AdminProduct[] getProductNotifications()
          Deprecated. 
 int getPromotionMaxUse()
           
 int getPromotionTimesUsed()
           
 AdminRole[] getRoles()
           
 java.lang.String getTelephoneNumber()
           
 java.lang.String getTelephoneNumber1()
           
 int getType()
           
 boolean isEnabled()
           
 void setAccountCreated(java.util.Date accountCreated)
           
 void setAccountLastModified(java.util.Date accountLastModified)
           
 void setAddresses(AdminAddress[] addresses)
           
 void setBirthDate(java.util.Date birthDate)
           
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setCustom3(java.lang.String custom3)
           
 void setCustom4(java.lang.String custom4)
           
 void setCustom5(java.lang.String custom5)
           
 void setDefaultAddr(AdminAddress defaultAddr)
           
 void setDefaultAddrId(int defaultAddrId)
           
 void setEmailAddr(java.lang.String emailAddr)
           
 void setEnabled(boolean enabled)
           
 void setFaxNumber(java.lang.String faxNumber)
           
 void setFirstName(java.lang.String firstName)
           
 void setGender(java.lang.String gender)
           
 void setGlobalProdNotifier(int globalProdNotifier)
           
 void setGroupId(int groupId)
          If negative, the customer belongs to no groups.
 void setId(int id)
           
 void setInvisible(byte invisible)
           
 void setLastLogon(java.util.Date lastLogon)
           
 void setLastName(java.lang.String lastName)
           
 void setLocale(java.lang.String locale)
          Locale of the customer
 void setNewsletter(java.lang.String newsletter)
           
 void setNumberOfLogons(int numberOfLogons)
           
 void setOrders(AdminOrder[] orders)
           
 void setPassword(java.lang.String password)
           
 void setProdNotifications(AdminProductNotification[] prodNotifications)
           
 void setProductNotifications(AdminProduct[] productNotifications)
          Deprecated. 
 void setPromotionMaxUse(int promotionMaxUse)
           
 void setPromotionTimesUsed(int promotionTimesUsed)
           
 void setRoles(AdminRole[] roles)
           
 void setTelephoneNumber(java.lang.String telephoneNumber)
           
 void setTelephoneNumber1(java.lang.String telephoneNumber1)
           
 void setType(int type)
           
 java.lang.String toString()
           
 java.lang.String toStringBrief()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private int id
id


gender

private java.lang.String gender
gender


firstName

private java.lang.String firstName
firstName


lastName

private java.lang.String lastName
lastName


birthDate

private java.util.Date birthDate
birthDate


emailAddr

private java.lang.String emailAddr
emailAddr


defaultAddr

private AdminAddress defaultAddr
defaultAddr


addresses

private AdminAddress[] addresses
Addresses


orders

private AdminOrder[] orders
Orders


defaultAddrId

private int defaultAddrId
default addr id


telephoneNumber

private java.lang.String telephoneNumber
telephoneNumber


telephoneNumber1

private java.lang.String telephoneNumber1
telephoneNumber1


faxNumber

private java.lang.String faxNumber
faxNumber


password

private java.lang.String password
password


newsletter

private java.lang.String newsletter
newsletter


lastLogon

private java.util.Date lastLogon
lastLogon - From customers_info


numberOfLogons

private int numberOfLogons
numberOfLogons


accountCreated

private java.util.Date accountCreated
accountCreated


accountLastModified

private java.util.Date accountLastModified
accountLastModified


globalProdNotifier

private int globalProdNotifier
globalProdNotifier


groupId

private int groupId
Id of the group that the customer belongs to. If negative, the customer belongs to no groups.


invisible

private byte invisible
Customer visibility


custom1

private java.lang.String custom1
custom field


custom2

private java.lang.String custom2
custom field


custom3

private java.lang.String custom3
custom field


custom4

private java.lang.String custom4
custom field


custom5

private java.lang.String custom5
custom field


promotionMaxUse

private int promotionMaxUse
The maximum number of times a promotion can be used


promotionTimesUsed

private int promotionTimesUsed
The number of times a promotion has been used


productNotifications

@Deprecated
private AdminProduct[] productNotifications
Deprecated. 
Array of products that customer wants to be notified of - not used


prodNotifications

private AdminProductNotification[] prodNotifications
Array of products that customer wants to be notified of


type

private int type
Type of customer. If 1 is an AdminApp user. If 0 it is a normal customer.


enabled

private boolean enabled
Is the customer enabled.


roles

private AdminRole[] roles
The roles of this customer. Only applies when the customer is an AdminApp user.


locale

private java.lang.String locale
Locale of the customer

Constructor Detail

AdminCustomer

public AdminCustomer()
Constructor


AdminCustomer

public AdminCustomer(com.workingdogs.village.Record vr,
                     com.konakart.bl.KKCriteria c)
              throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Customer object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface AdminObjectIf
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Customer object.

toStringBrief

public java.lang.String toStringBrief()
Returns:
Returns a string containing the attributes of the Customer object.

getDefaultAddr

public AdminAddress getDefaultAddr()
Returns:
Returns the defaultAddr.

setDefaultAddr

public void setDefaultAddr(AdminAddress defaultAddr)
Parameters:
defaultAddr - The defaultAddr to set.

getEmailAddr

public java.lang.String getEmailAddr()
Returns:
Returns the emailAddr.

setEmailAddr

public void setEmailAddr(java.lang.String emailAddr)
Parameters:
emailAddr - The emailAddr to set.

getFaxNumber

public java.lang.String getFaxNumber()
Returns:
Returns the faxNumber.

setFaxNumber

public void setFaxNumber(java.lang.String faxNumber)
Parameters:
faxNumber - The faxNumber to set.

getFirstName

public java.lang.String getFirstName()
Returns:
Returns the firstName.

setFirstName

public void setFirstName(java.lang.String firstName)
Parameters:
firstName - The firstName to set.

getGender

public java.lang.String getGender()
Returns:
Returns the gender.

setGender

public void setGender(java.lang.String gender)
Parameters:
gender - The gender to set.

getId

public int getId()
Specified by:
getId in interface AdminObjectIf
Returns:
Returns the id.

setId

public void setId(int id)
Specified by:
setId in interface AdminObjectIf
Parameters:
id - The id to set.

getLastName

public java.lang.String getLastName()
Returns:
Returns the lastName.

setLastName

public void setLastName(java.lang.String lastName)
Parameters:
lastName - The lastName to set.

getNewsletter

public java.lang.String getNewsletter()
Returns:
Returns the newsletter.

setNewsletter

public void setNewsletter(java.lang.String newsletter)
Parameters:
newsletter - The newsletter to set.

getNumberOfLogons

public int getNumberOfLogons()
Returns:
Returns the numberOfLogons.

setNumberOfLogons

public void setNumberOfLogons(int numberOfLogons)
Parameters:
numberOfLogons - The numberOfLogons to set.

getPassword

public java.lang.String getPassword()
Returns:
Returns the password.

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - The password to set.

getTelephoneNumber

public java.lang.String getTelephoneNumber()
Returns:
Returns the telephoneNumber.

setTelephoneNumber

public void setTelephoneNumber(java.lang.String telephoneNumber)
Parameters:
telephoneNumber - The telephoneNumber to set.

getAccountCreated

public java.util.Date getAccountCreated()
Returns:
Returns the accountCreated.

setAccountCreated

public void setAccountCreated(java.util.Date accountCreated)
Parameters:
accountCreated - The accountCreated to set.

getAccountLastModified

public java.util.Date getAccountLastModified()
Returns:
Returns the accountLastModified.

setAccountLastModified

public void setAccountLastModified(java.util.Date accountLastModified)
Parameters:
accountLastModified - The accountLastModified to set.

getBirthDate

public java.util.Date getBirthDate()
Returns:
Returns the birthDate.

setBirthDate

public void setBirthDate(java.util.Date birthDate)
Parameters:
birthDate - The birthDate to set.

getLastLogon

public java.util.Date getLastLogon()
Returns:
Returns the lastLogon.

setLastLogon

public void setLastLogon(java.util.Date lastLogon)
Parameters:
lastLogon - The lastLogon to set.

getDefaultAddrId

public int getDefaultAddrId()
Returns:
Returns the defaultAddrId.

setDefaultAddrId

public void setDefaultAddrId(int defaultAddrId)
Parameters:
defaultAddrId - The defaultAddrId to set.

getAddresses

public AdminAddress[] getAddresses()
Returns:
Returns the addresses.

setAddresses

public void setAddresses(AdminAddress[] addresses)
Parameters:
addresses - The addresses to set.

getGlobalProdNotifier

public int getGlobalProdNotifier()
Returns:
Returns the globalProdNotifier.

setGlobalProdNotifier

public void setGlobalProdNotifier(int globalProdNotifier)
Parameters:
globalProdNotifier - The globalProdNotifier to set.

getProductNotifications

@Deprecated
public AdminProduct[] getProductNotifications()
Deprecated. 

Returns:
Returns the productNotifications.

setProductNotifications

@Deprecated
public void setProductNotifications(AdminProduct[] productNotifications)
Deprecated. 

Parameters:
productNotifications - The productNotifications to set.

getOrders

public AdminOrder[] getOrders()
Returns:
Returns the orders.

setOrders

public void setOrders(AdminOrder[] orders)
Parameters:
orders - The orders to set.

getCustom1

public java.lang.String getCustom1()
Returns:
Returns the custom1.

setCustom1

public void setCustom1(java.lang.String custom1)
Parameters:
custom1 - The custom1 to set.

getCustom2

public java.lang.String getCustom2()
Returns:
Returns the custom2.

setCustom2

public void setCustom2(java.lang.String custom2)
Parameters:
custom2 - The custom2 to set.

getCustom3

public java.lang.String getCustom3()
Returns:
Returns the custom3.

setCustom3

public void setCustom3(java.lang.String custom3)
Parameters:
custom3 - The custom3 to set.

getCustom4

public java.lang.String getCustom4()
Returns:
Returns the custom4.

setCustom4

public void setCustom4(java.lang.String custom4)
Parameters:
custom4 - The custom4 to set.

getCustom5

public java.lang.String getCustom5()
Returns:
Returns the custom5.

setCustom5

public void setCustom5(java.lang.String custom5)
Parameters:
custom5 - The custom5 to set.

getPromotionMaxUse

public int getPromotionMaxUse()
Returns:
Returns the promotionMaxUse.

setPromotionMaxUse

public void setPromotionMaxUse(int promotionMaxUse)
Parameters:
promotionMaxUse - The promotionMaxUse to set.

getPromotionTimesUsed

public int getPromotionTimesUsed()
Returns:
Returns the promotionTimesUsed.

setPromotionTimesUsed

public void setPromotionTimesUsed(int promotionTimesUsed)
Parameters:
promotionTimesUsed - The promotionTimesUsed to set.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getRoles

public AdminRole[] getRoles()
Returns:
Returns the roles.

setRoles

public void setRoles(AdminRole[] roles)
Parameters:
roles - The roles to set.

isEnabled

public boolean isEnabled()
Returns:
Returns the enabled.

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - The enabled to set.

getGroupId

public int getGroupId()
If negative, the customer belongs to no groups.

Returns:
Returns the groupId.

setGroupId

public void setGroupId(int groupId)
If negative, the customer belongs to no groups.

Parameters:
groupId - The groupId to set.

getProdNotifications

public AdminProductNotification[] getProdNotifications()
Returns:
the prodNotifications

setProdNotifications

public void setProdNotifications(AdminProductNotification[] prodNotifications)
Parameters:
prodNotifications - the prodNotifications to set

getLocale

public java.lang.String getLocale()
Locale of the customer

Returns:
the locale

setLocale

public void setLocale(java.lang.String locale)
Locale of the customer

Parameters:
locale - the locale to set

getTelephoneNumber1

public java.lang.String getTelephoneNumber1()
Returns:
the telephoneNumber1

setTelephoneNumber1

public void setTelephoneNumber1(java.lang.String telephoneNumber1)
Parameters:
telephoneNumber1 - the telephoneNumber1 to set

getInvisible

public byte getInvisible()
Returns:
the invisible

setInvisible

public void setInvisible(byte invisible)
Parameters:
invisible - the invisible to set


Copyright © 2011 DS Data Systems UK Ltd.