|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminCustomerMgrIf
AdminCustomerMgrIf
Method Summary | |
---|---|
int |
deleteCustomer(int custId)
Deletes a customer from the database. |
int |
deleteCustomerGroup(int custGroupId)
Delete a Customer Group. |
void |
deleteProductNotification(int custId,
int prodId)
Delete a Product Notification record for the specified customer and product if it's found. |
boolean |
doesCustomerExistForEmail(java.lang.String emailAddr)
Checks to see whether a customer already exists with this email address. |
boolean |
doesCustomerExistForId(int custId)
Checks to see whether a customer already exists with this id |
int |
forceRegisterCustomer(AdminCustomerRegistration custReg)
A new customer is added to the system. |
java.lang.String |
getAddressFormatTemplate(int id)
Does a query on the address_format table |
AdminAddressFormat[] |
getAllAddressFormats()
This returns an array of all the address formats |
AdminCustomer |
getCustomerForEmail(java.lang.String emailAddr)
Checks to see whether a customer already exists with this email address and returns the customer object if it does exist. |
AdminCustomer |
getCustomerForId(int customerId)
Returns the customer object for the customer defined by the given id. |
AdminCustomerGroupSearchResult |
getCustomerGroups(AdminCustomerGroupSearch search)
This returns an AdminCustomerGroupSearchResult object. |
AdminCustomerGroup[] |
getCustomerGroupsPerPromotion(int promotionId,
int languageId)
Returns all of the customer groups for the promotion |
AdminCustomerSearchResult |
getCustomers(AdminCustomerSearch custSearch,
int offset,
int size)
Returns a set of Customers that match the search criteria |
int |
getCustomersCount(AdminCustomerSearch search)
Returns a count of the number of Customers |
AdminCustomerSearchResult |
getCustomersLite(AdminCustomerSearch custSearch,
int offset,
int size)
Returns a set of "Lite" Customers that match the search criteria. |
AdminProductNotification[] |
getProductNotificationsForCustomer(int customerId)
Get an array of product notifications for the customer |
java.lang.String |
getRandomPassword(int length)
If length == 0, the configuration value ENTRY_PASSWORD_MIN_LENGTH is used. |
int |
insertCustomerGroup(AdminCustomerGroup custGroup)
Insert a customer group |
int |
insertCustomerGroups(AdminCustomerGroup[] custGroups)
Insert an array of AdminCustomerGroup objects. |
void |
insertProductNotification(int custId,
int prodId)
Insert a Product Notification record for the specified customer and product. |
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager |
int |
registerCustomer(AdminCustomerRegistration custReg)
A new customer is added to the system. |
void |
resetCustomerPassword(int custId)
Reset a customer's password. |
void |
resetCustomerPasswordSpecifyingEmail(int custId,
java.lang.String eMailAddress)
Reset a customer's password using the eMail address specified. |
void |
sendTemplateEmailToCustomers(AdminCustomerSearch custSearch,
java.lang.String templateName,
java.lang.Object obj1,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5,
int numberEmailThreads)
Calls sendTemplateEmailToCustomersWithOptions() with null options. |
void |
sendTemplateEmailToCustomersWithOptions(AdminCustomerSearch custSearch,
java.lang.String templateName,
java.lang.Object obj1,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5,
int numberEmailThreads,
AdminEmailOptions options)
An email is sent to the customer. |
void |
setCustomerPassword(int customerId,
java.lang.String password)
Sets the customer password. |
void |
updateCustomer(AdminCustomer cust)
We must update the following tables: customers, address_book (for the default address) and customers_info |
int |
updateCustomerGroup(AdminCustomerGroup custGroup)
Update a customer group |
Method Detail |
---|
int getCustomersCount(AdminCustomerSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminCustomerSearchResult getCustomers(AdminCustomerSearch custSearch, int offset, int size) throws java.lang.Exception
custSearch
- the definition of the search for customers - can be nulloffset
- the offset in the dbsize
- the number of records from the specified offset
java.lang.Exception
AdminProductNotification[] getProductNotificationsForCustomer(int customerId) throws java.lang.Exception
customerId
- Id of the customer whose product notifications will be returned
java.lang.Exception
void updateCustomer(AdminCustomer cust) throws java.lang.Exception
cust
- the customer - must already have a good ID
java.lang.Exception
int deleteCustomer(int custId) throws java.lang.Exception
Removes records from :
Parameters :
custId
-
java.lang.Exception
int registerCustomer(AdminCustomerRegistration 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 forceRegisterCustomer(AdminCustomerRegistration 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
void resetCustomerPasswordSpecifyingEmail(int custId, java.lang.String eMailAddress) throws KKAdminException
custId
- Customer IdeMailAddress
- The eMail address to override the one from the customer object
KKAdminException
- if the customer is not found, or problems resetting the password or sending the
email.void resetCustomerPassword(int custId) throws KKAdminException
custId
- Customer Id
KKAdminException
- if the customer is not found, the customer has no email address (which is used as
the username), or problems resetting the password or sending the email.void setCustomerPassword(int customerId, java.lang.String password) throws java.lang.Exception
customerId
- password
-
java.lang.Exception
java.lang.String getRandomPassword(int length) throws java.lang.Exception
length
-
java.lang.Exception
boolean doesCustomerExistForEmail(java.lang.String emailAddr) throws org.apache.torque.TorqueException, KKAdminException
emailAddr
-
org.apache.torque.TorqueException
KKAdminException
boolean doesCustomerExistForId(int custId) throws org.apache.torque.TorqueException, KKAdminException
custId
-
org.apache.torque.TorqueException
KKAdminException
AdminCustomer getCustomerForEmail(java.lang.String emailAddr) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException, java.lang.Exception
emailAddr
-
org.apache.torque.TorqueException
KKAdminException
com.workingdogs.village.DataSetException
java.lang.Exception
AdminCustomer getCustomerForId(int customerId) throws java.lang.Exception
customerId
-
java.lang.Exception
java.lang.String getAddressFormatTemplate(int id) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
id
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminAddressFormat[] getAllAddressFormats() throws KKAdminException
KKAdminException
void sendTemplateEmailToCustomers(AdminCustomerSearch custSearch, java.lang.String templateName, java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5, int numberEmailThreads) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, java.lang.Exception
custSearch
- The AdminCustomerSearch object which determines the customers that are selected.templateName
- The name of the template. The country code and .vm will be appended automatically.
i.e. If the template name is newsletter and the country code is en, then we will
look for a file called newsletter_en.vm. This file should be in the classpath.obj1
- This object will be passed to the velocity template with the name obj1.obj2
- This object will be passed to the velocity template with the name obj2.obj3
- This object will be passed to the velocity template with the name obj3.obj4
- This object will be passed to the velocity template with the name obj4.obj5
- This object will be passed to the velocity template with the name obj5.numberEmailThreads
- The number of concurrent threads that will be used to send the emails.
java.lang.Exception
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
java.lang.Exception
void sendTemplateEmailToCustomersWithOptions(AdminCustomerSearch custSearch, java.lang.String templateName, java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5, int numberEmailThreads, AdminEmailOptions options) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, java.lang.Exception
custSearch
- The AdminCustomerSearch object which determines the customers that are selected.templateName
- The name of the template. The country code and .vm will be appended automatically.
i.e. If the template name is newsletter and the country code is en, then we will
look for a file called newsletter_en.vm. This file should be in the classpath.obj1
- This object will be passed to the velocity template with the name obj1.obj2
- This object will be passed to the velocity template with the name obj2.obj3
- This object will be passed to the velocity template with the name obj3.obj4
- This object will be passed to the velocity template with the name obj4.obj5
- This object will be passed to the velocity template with the name obj5.numberEmailThreads
- The number of concurrent threads that will be used to send the emails.options
- An object used to configure options used when sending eMails from the AdminApp
java.lang.Exception
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
java.lang.Exception
void insertProductNotification(int custId, int prodId) throws KKAdminException
custId
- the customerIdprodId
- the productId
KKAdminException
void deleteProductNotification(int custId, int prodId) throws KKAdminException
custId
- the customerIdprodId
- the productId
KKAdminException
AdminCustomerGroup[] getCustomerGroupsPerPromotion(int promotionId, int languageId) throws java.lang.Exception
promotionId
- languageId
-
java.lang.Exception
int insertCustomerGroup(AdminCustomerGroup custGroup) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
custGroup
- A customer group object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int insertCustomerGroups(AdminCustomerGroup[] custGroups) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
custGroups
- An array of AdminCustomerGroup objects
org.apache.torque.TorqueException
KKAdminException
com.workingdogs.village.DataSetException
int updateCustomerGroup(AdminCustomerGroup custGroup) throws KKAdminException, org.apache.torque.TorqueException
custGroup
- A customer group object
KKAdminException
org.apache.torque.TorqueException
int deleteCustomerGroup(int custGroupId) throws java.lang.Exception
custGroupId
- The id of a customer group object
java.lang.Exception
AdminCustomerGroupSearchResult getCustomerGroups(AdminCustomerGroupSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
void refreshConfigs() throws java.lang.Exception
java.lang.Exception
AdminCustomerSearchResult getCustomersLite(AdminCustomerSearch custSearch, int offset, int size) throws KKAdminException
custSearch
- the definition of the search for customers - can be nulloffset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |