|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CustomerMgrIf
CustomerMgrIf Interface which an implementation of this manager must adhere to.
| Method Summary | |
|---|---|
int |
addAddressToCustomer(java.lang.String sessionId,
AddressIf addr)
The Address object is added to the customer defined by the SessionId. |
void |
addProductNotificationToCustomer(java.lang.String sessionId,
int productId)
Adds a product notification to the customer referenced by the session id |
void |
deleteAddressFromCustomer(java.lang.String sessionId,
int addressId)
The address defined by customerId and addressId is deleted. |
void |
deleteProductNotificationFromCustomer(java.lang.String sessionId,
int productId)
Deletes a product notification from the customer referenced by the session id |
boolean |
doesCustomerExistForEmail(java.lang.String emailAddr)
Checks to see whether a customer already exists with this email address. |
void |
editCustomer(java.lang.String sessionId,
CustomerIf cust)
Updates the customer data with the data in the Customer object passed in as a parameter. |
void |
editCustomerAddress(java.lang.String sessionId,
AddressIf addr)
The Address object will replace the existing address object in the database with the same id. |
void |
enableCustomer(int customerId)
Enables the customer identified by the customer id. |
int |
forceRegisterCustomer(CustomerRegistrationIf custReg)
A new customer is added to the system. |
Address |
getAddress(int addressId)
Returns the address object for the given address id. |
Address[] |
getAddressesPerCustomer(java.lang.String sessionId)
Returns all of the addresses registered for the given customer. |
java.lang.String |
getAddressFormatTemplate(int id)
Does a query on the address_format table |
CustomerGroup[] |
getAllCustomerGroups(int languageId)
Returns an array of customer groups for all customer groups that have been defined in the system. |
Address |
getCountryAndZonePerCustomer(Customer cust)
Returns the default address for the given customer. |
Address |
getCountryAndZonePerCustomer(int customerId)
Returns the default address for the given customer. |
Address |
getCountryAndZonePerCustomer(java.lang.String sessionId)
Returns the default address for the given customer. |
Customer |
getCustomer(java.lang.String sessionId)
Returns the customer object for the customer defined by the given sessionId. |
Customer |
getCustomerForEmail(java.lang.String emailAddr)
Checks to see whether a customer already exists with this email address. |
Customer |
getCustomerForId(int customerId)
Returns the customer object for the customer defined by the given id. |
CustomerGroup |
getCustomerGroup(int customerGroupId,
int languageId)
Returns a customer group object for the customerGroupId passed in as a parameter. |
CustomerGroup |
getCustomerGroupFromCache(int customerGroupId)
Gets the CustomerGroup object for the customerGroupId and default language from the cache. |
Address |
getDefaultAddressPerCustomer(Customer cust)
Returns the default address for the given customer. |
Address |
getDefaultAddressPerCustomer(java.lang.String sessionId)
Returns the default address for the given customer. |
Customer |
getDefaultCustomer()
Returns the customer object for the default customer. |
java.lang.String |
getNameFromId(int custId)
|
Product[] |
getProductNotificationsPerCustomer(java.lang.String sessionId,
int languageId)
Returns an array of products for which the customer referenced by sessionId will be notified on. |
Product[] |
getProductNotificationsPerCustomerWithOptions(java.lang.String sessionId,
int languageId,
FetchProductOptionsIf options)
Returns an array of products for which the customer referenced by sessionId will be notified on. |
int |
getTempCustomerId()
Returns an available unique temporary id. |
void |
incrementLogonCount(int customerId)
This method is not exposed to the web interface because it isn't secure. |
void |
refreshConfigs()
Refresh the configuration of the Customer manager |
int |
registerCustomer(CustomerRegistrationIf custReg)
A new customer is added to the system. |
int |
registerCustomerPrivate(CustomerRegistrationIf custReg,
boolean force)
A new customer is added to the system. |
KKCriteria |
setAllAddrAttrs(KKCriteria c)
Used by other managers to avoid repeating code. |
void |
setCustomerPassword(int customerId,
java.lang.String password)
Sets the customer password. |
void |
setCustomerType(int customerId,
int type)
Sets the customer type. |
void |
setDefaultAddressPerCustomer(java.lang.String sessionId,
int addressId)
Sets the default address for this customer to be the addressId passed in as a parameter. |
| Method Detail |
|---|
int forceRegisterCustomer(CustomerRegistrationIf custReg)
throws java.lang.Exception
custReg -
java.lang.Exception
int registerCustomer(CustomerRegistrationIf custReg)
throws java.lang.Exception
Alter table t Engine = InnoDB;. The standard engine seems to be MyIsam which
doesn't support transactions.
custReg -
java.lang.Exception
int registerCustomerPrivate(CustomerRegistrationIf custReg,
boolean force)
throws java.lang.Exception
Alter table t Engine = InnoDB;. The standard engine seems to be MyIsam which
doesn't support transactions.
custReg - force - If set, then we modify the registration rather than throwing an exception if the
customer already exists
java.lang.Exception
void editCustomer(java.lang.String sessionId,
CustomerIf cust)
throws java.lang.Exception
sessionId - cust -
java.lang.Exception
void setCustomerPassword(int customerId,
java.lang.String password)
throws java.lang.Exception
customerId - password -
java.lang.Exception
void setCustomerType(int customerId,
int type)
throws java.lang.Exception
customerId - type -
java.lang.Exception
void incrementLogonCount(int customerId)
throws org.apache.torque.TorqueException,
KKException,
com.workingdogs.village.DataSetException
customerId -
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
boolean doesCustomerExistForEmail(java.lang.String emailAddr)
throws org.apache.torque.TorqueException,
KKException,
com.workingdogs.village.DataSetException
emailAddr -
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
Customer getCustomerForEmail(java.lang.String emailAddr)
throws java.lang.Exception
emailAddr -
java.lang.Exception
java.lang.String getNameFromId(int custId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
custId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Customer getCustomer(java.lang.String sessionId)
throws java.lang.Exception
sessionId -
java.lang.Exception
Customer getCustomerForId(int customerId)
throws java.lang.Exception
customerId -
java.lang.Exception
Customer getDefaultCustomer()
throws java.lang.Exception
java.lang.Exception
Address[] getAddressesPerCustomer(java.lang.String sessionId)
throws java.lang.Exception
sessionId -
java.lang.Exception
Address getDefaultAddressPerCustomer(java.lang.String sessionId)
throws java.lang.Exception
sessionId -
java.lang.Exception
Address getDefaultAddressPerCustomer(Customer cust)
throws java.lang.Exception
cust -
java.lang.Exception
Address getCountryAndZonePerCustomer(java.lang.String sessionId)
throws java.lang.Exception
sessionId -
java.lang.Exception
Address getCountryAndZonePerCustomer(int customerId)
throws java.lang.Exception
customerId -
java.lang.Exception
Address getCountryAndZonePerCustomer(Customer cust)
throws java.lang.Exception
cust -
java.lang.Exception
void setDefaultAddressPerCustomer(java.lang.String sessionId,
int addressId)
throws java.lang.Exception
sessionId - addressId -
java.lang.Exception
int addAddressToCustomer(java.lang.String sessionId,
AddressIf addr)
throws java.lang.Exception
sessionId - addr -
java.lang.Exception
void deleteAddressFromCustomer(java.lang.String sessionId,
int addressId)
throws java.lang.Exception
sessionId - addressId -
java.lang.Exception
void editCustomerAddress(java.lang.String sessionId,
AddressIf addr)
throws java.lang.Exception
sessionId - addr -
java.lang.Exception
java.lang.String getAddressFormatTemplate(int id)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
id -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
void addProductNotificationToCustomer(java.lang.String sessionId,
int productId)
throws java.lang.Exception
sessionId - productId -
java.lang.Exception
void deleteProductNotificationFromCustomer(java.lang.String sessionId,
int productId)
throws java.lang.Exception
sessionId - productId -
java.lang.Exception
Product[] getProductNotificationsPerCustomer(java.lang.String sessionId,
int languageId)
throws java.lang.Exception
sessionId - languageId -
java.lang.Exception
Product[] getProductNotificationsPerCustomerWithOptions(java.lang.String sessionId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - languageId - options -
java.lang.Exception
int getTempCustomerId()
throws org.apache.torque.TorqueException,
KKException
org.apache.torque.TorqueException
KKException
CustomerGroup[] getAllCustomerGroups(int languageId)
throws java.lang.Exception
languageId - The id for the language that will be used to determine the customer group name and
description. Value of -1 selects the default language.
java.lang.Exception
CustomerGroup getCustomerGroup(int customerGroupId,
int languageId)
throws java.lang.Exception
customerGroupId - languageId - The id for the language that will be used to determine the customer group name and
description. Value of -1 selects the default language.
java.lang.Exception
CustomerGroup getCustomerGroupFromCache(int customerGroupId)
throws java.lang.Exception
customerGroupId -
java.lang.Exception
void refreshConfigs()
throws KKException
KKException
Address getAddress(int addressId)
throws java.lang.Exception
addressId -
java.lang.ExceptionKKCriteria setAllAddrAttrs(KKCriteria c)
c -
void enableCustomer(int customerId)
throws KKException,
org.apache.torque.TorqueException
customerId -
org.apache.torque.TorqueException
KKException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||