public class TelesalesModelManager
extends java.lang.Object
The model databeans will be maintained in a hierarchy with the com.ibm.commerce.telesales.model.Operator being the parent or root. Each operator has children of type com.ibm.commerce.telesales.model.Store which can have a state of open or closed. All open stores have children of type com.ibm.commerce.telesales.model.Customer which are only in an open state. All open customers have children of type com.ibm.commerce.telesales.model.SalesContainer which are only in an open state.
Modifier and Type | Method and Description |
---|---|
void | addAvailableServiceRep(TicklerAssignee serviceRep)
Adds a service representative to the list available to the operator.
|
void | addAvailableServiceTeam(TicklerAssignee serviceTeam)
Adds a service team to the list available to the operator.
|
void | addAvailableStore(Store store)
Adds a store to the list available to the operator.
|
void | addMarketingPromotion(java.lang.String customerId, java.lang.String orderId, MarketingPromotion marketingPromotion)
Inserts a MarketingPromotions object in ModelRoot for the respective customerId and orderId.
|
void | addOpenCustomer(Customer customer)
Adds a customer to the current list of open customers.
|
void | addOpenCustomer(Customer customer, Store openStore)
Adds a customer to the current list of open customers for a specified store.
|
void | addOpenReturn(Return rma)
Adds a return container to the current list of open returns.
|
void | addOpenReturn(Return rma, Customer openCustomer)
Adds a return container to the current list of open returns for a specified open customer.
|
void | addOpenSalesContainer(SalesContainer sale)
Adds sales container to the current list of open sales.
|
void | addOpenSalesContainer(SalesContainer sale, Customer openCustomer)
Adds sales container to the current list of open sales for a specified open customer.
|
void | addOpenStore(Store store)
Adds an open store to the current list of open stores.
|
void | addOpenTickler(Tickler tickler)
Adds a tickler to the current list of open ticklers.
|
void | addOpenTickler(Tickler tickler, Store openStore)
Adds a tickler to the current list of open ticklers at the open store.
|
void | addResponsibleTickler(Tickler tickler)
Adds a tickler to the list available to the operator.
|
void | addResponsibleTicklers(Tickler[] ticklers)
Adds ticklers to the list available to the operator.
|
void | closeOpenCustomer(Customer openCustomer)
Closes the specified open customer.
|
void | closeOpenCustomer(Customer openCustomer, Store openStore)
Closes the specified open customer for the specified open store.
|
void | closeOpenCustomers()
Closes all open customers.
|
void | closeOpenCustomers(Store openStore)
Closes all open customers for the specified open store.
|
void | closeOpenReturn(Return openRMA)
Closes the specified open sale.
|
void | closeOpenReturn(Return openRMA, Customer openCustomer)
Closes the specified open return for a specified open customer.
|
void | closeOpenSalesContainer(SalesContainer openSalesContainer)
Closes the specified open sale.
|
void | closeOpenSalesContainer(SalesContainer openSalesContainer, Customer openCustomer)
Closes the specified open sale for a specified open customer.
|
void | closeOpenSalesContainers()
Closes all open sales for the active customer.
|
void | closeOpenSalesContainers(Customer openCustomer)
Closes all open sales for the specified customer.
|
void | closeOpenStore(Store openStore)
Closes the specified open store.
|
void | closeOpenStores()
Closes all open stores.
|
void | closeOpenTickler(Tickler openTickler)
Closes open tickler.
|
void | closeOpenTickler(Tickler openTickler, Store openStore)
Closes the specified open tickler.
|
void | closeOpenTicklers()
Closes all open ticklers.
|
Country | findCountryByCode(java.lang.String countryCode)
Finds a country by its code.
|
Customer | findCustomer(Customer customer)
Searches the model for a customer that is equivalent to the specified Customer object.
|
Customer | findCustomerByMemberId(Store store, java.lang.String memberId)
Searches the model for a customer that with the specified member Id and store
|
Return | findReturn(Return rma)
Searches the model for a rma that is equivalent to the specified Return object.
|
SalesContainer | findSalesContainer(SalesContainer sale)
Searches the model for a sale that is equivalent to the specified SalesContainer object.
|
TicklerAssignee | findServiceRep(TicklerAssignee serviceRep)
Searches the model for a service representative that is equivalent to the specified TicklerAssignee object.
|
TicklerAssignee | findServiceTeam(TicklerAssignee serviceTeam)
Searches the model for a service team that is equivalent to the specified TicklerAssignee object.
|
Store | findStore(Store store)
Searches the model for a store that is equivalent to the specified Store object.
|
Tickler | findTickler(Tickler tickler)
Searches the model for a tickler that is equivalent to the specified Tickler object.
|
Customer | getActiveCustomer()
Returns the active customer data bean.
|
Operator | getActiveOperator()
Returns the active operator data bean.
|
Return | getActiveReturn()
Returns the active return data bean.
|
SalesContainer | getActiveSalesContainer()
Returns the active sale data bean.
|
Store | getActiveStore()
Returns the active store data bean.
|
Tickler | getActiveTickler()
Returns the active tickler data bean.
|
TicklerAssignee | getAvailableServiceRepById(java.lang.String serviceRepId)
Return an available service representative to the operator.
|
TicklerAssignee | getAvailableServiceRepByName(java.lang.String serviceRepName)
Return an available service representative to the operator.
|
TicklerAssignee[] | getAvailableServiceReps()
Returns an array of service representatives available to the operator.
|
TicklerAssignee | getAvailableServiceTeamById(java.lang.String serviceTeamId)
Return an available service team to the operator.
|
TicklerAssignee | getAvailableServiceTeamByName(java.lang.String serviceTeamName)
Return an available service team to the operator.
|
TicklerAssignee[] | getAvailableServiceTeams()
Returns an array of service teams available to the operator.
|
Store | getAvailableStoreById(java.lang.String storeId)
Return an available store to the operator.
|
Store | getAvailableStoreByName(java.lang.String storeName)
Return an available store to the operator.
|
Store[] | getAvailableStores()
Returns an array of stores available to the operator.
|
BusinessChannel[] | getBusinessChannels()
This method is a convenience method for getting the "businessChannels" property.
|
Country[] | getCountries()
Returns an array of available countries.
|
java.util.ArrayList | getCountryCodes()
Returns a list of country codes.
|
java.util.ArrayList | getCountryNames()
Returns a list of country names for display.
|
static TelesalesModelManager | getInstance()
Returns the singleton instance of the model manager.
|
MarketingPromotions | getMarketingPromotions(java.lang.String customerId, java.lang.String salesContainerId)
This method returns MarketingPromotions from ModelRoot for the respective customer Id and sales container Id if they exist, otherwise, returns null
|
ModelRoot | getModelRoot()
Returns the root model object.
|
Customer[] | getOpenCustomers()
Returns an array of open customers for a given store.
|
Customer[] | getOpenCustomers(Store openStore)
Returns an array of open customers for a given store.
|
Return[] | getOpenReturns()
Returns an array of open sales for a given customer and store.
|
Return[] | getOpenReturns(Customer openCustomer)
Returns an array of open sales for a given customer and store.
|
Return[] | getOpenReturns(Store openStore)
Returns an array of open sales for a given customer and store.
|
SalesContainer[] | getOpenSalesContainers()
Returns an array of open sales for a given customer and store.
|
SalesContainer[] | getOpenSalesContainers(Customer openCustomer)
Returns an array of open sales for a given customer and store.
|
SalesContainer[] | getOpenSalesContainers(Store openStore)
Returns an array of open sales for a given customer and store.
|
Store | getOpenStore(java.lang.String storeId)
Returns an open store to the operator.
|
Store[] | getOpenStores()
Returns an array of open stores.
|
java.lang.String | getPreferredCurrency()
Returns the preferred currency code.
|
Tickler | getResponsibleTickler(java.lang.String ticklerId)
Return a responsible tickler to the operator.
|
Tickler[] | getResponsibleTicklers()
Return an array of responsible ticklers available to the operator.
|
ServiceContext | getServiceContext(java.lang.String serviceType, java.lang.String runAsId)
Builds the service context using the active model data beans and preference settings.
|
java.util.ArrayList | getStateOrProvinceCodes(java.lang.String countryCode)
Returns a list of state or province codes.
|
java.util.ArrayList | getStateOrProvinceNames(java.lang.String countryCode)
Returns a list of state or province names for display.
|
java.lang.String[] | getSupportedAssociationTypes()
This method is a convenience method for retrieving the supported association types.
|
void | removeAvailableServiceRep(TicklerAssignee serviceRep)
Removes the selected service representative from the available service representatives.
|
void | removeAvailableServiceReps()
Removes all available service representatives for the registry.
|
void | removeAvailableServiceTeam(TicklerAssignee serviceTeam)
Removes the selected service team from the available service teams.
|
void | removeAvailableServiceTeams()
Removes all available service teams for the registry.
|
void | removeAvailableStore(Store store)
Removes the selected store from the available stores.
|
void | removeAvailableStores()
Removes all available stores for the registry.
|
void | removeBusinessChannels()
Removes all available business channels for the registry.
|
void | removeMarketingPromotions(java.lang.String customerId, java.lang.String orderId)
Removes MarketingPromotions object in ModelRoot for the respective customerId and orderId if they exist, otherwise takes no action.
|
void | removeResponsibleTicklers()
Removes all responsible ticklers for the registry.
|
void | setActiveCustomer(Customer customer)
Sets the active customer data bean.
|
void | setActiveOperator(Operator operator)
Sets the active operator data bean.
|
void | setActiveReturn(Return rma)
Sets the active return data bean.
|
void | setActiveSalesContainer(SalesContainer sale)
Sets the active sale data bean.
|
void | setActiveStore(Store store)
Sets the active store data bean.
|
void | setActiveTickler(Tickler tickler)
Sets the active tickler data bean.
|
void | setAvailableServiceReps(TicklerAssignee[] serviceReps)
Sets service representatives available to the operator.
|
void | setAvailableServiceTeams(TicklerAssignee[] serviceTeams)
Sets service teams available to the operator.
|
void | setAvailableStores(Store[] stores)
Sets stores available to the operator.
|
void | setBusinessChannels(BusinessChannel[] businessChannels)
This method is a convenience method for Setting the "businessChannels" property.
|
void | setOpenCustomers(Customer[] customers)
Sets customers open to the operator for editing.
|
void | setOpenCustomers(Customer[] customers, Store openStore)
Sets customers open to the operator for editing.
|
void | setOpenSalesContainers(SalesContainer[] sales)
Sets sales open to the operator for editing.
|
void | setOpenSalesContainers(SalesContainer[] sales, Customer openCustomer)
Sets sales open to the operator for editing.
|
void | setOpenStores(Store[] stores)
Sets stores open to the operator for editing.
|
void | setOpenTicklers(Tickler[] ticklers)
Set ticklers open to the operator for editing.
|
void | setResponsibleTicklers(java.lang.Object[] ticklers)
Set responsible ticklers available to the operator.
|
public static TelesalesModelManager getInstance()
public ServiceContext getServiceContext(java.lang.String serviceType, java.lang.String runAsId)
public void addAvailableStore(Store store)
public void addOpenCustomer(Customer customer)
Note: The active store will be assumed.
public void addOpenCustomer(Customer customer, Store openStore)
public void addOpenSalesContainer(SalesContainer sale)
Note: The active customer will be assumed.
public void addOpenSalesContainer(SalesContainer sale, Customer openCustomer)
public void addOpenReturn(Return rma)
Note: The active customer will be assumed.
public void addOpenReturn(Return rma, Customer openCustomer)
public void closeOpenReturn(Return openRMA)
Note: The active customer will be assumed.
public void closeOpenReturn(Return openRMA, Customer openCustomer)
public void addOpenStore(Store store)
public void closeOpenCustomer(Customer openCustomer)
Note: The active store will be assumed.
public void closeOpenCustomer(Customer openCustomer, Store openStore)
public void closeOpenCustomers()
Note: The active store will be assumed.
public void closeOpenCustomers(Store openStore)
public void closeOpenSalesContainer(SalesContainer openSalesContainer)
Note: The active customer will be assumed.
public void closeOpenSalesContainer(SalesContainer openSalesContainer, Customer openCustomer)
public void closeOpenSalesContainers()
Note: The active customer will be assumed.
public void closeOpenSalesContainers(Customer openCustomer)
public void closeOpenStore(Store openStore)
public void closeOpenStores()
public Customer getActiveCustomer()
public Operator getActiveOperator()
public SalesContainer getActiveSalesContainer()
public Return getActiveReturn()
public Country[] getCountries()
public java.util.ArrayList getCountryCodes()
public java.util.ArrayList getCountryNames()
public java.util.ArrayList getStateOrProvinceCodes(java.lang.String countryCode)
public java.util.ArrayList getStateOrProvinceNames(java.lang.String countryCode)
public Country findCountryByCode(java.lang.String countryCode)
public MarketingPromotions getMarketingPromotions(java.lang.String customerId, java.lang.String salesContainerId)
public void removeMarketingPromotions(java.lang.String customerId, java.lang.String orderId)
public void addMarketingPromotion(java.lang.String customerId, java.lang.String orderId, MarketingPromotion marketingPromotion)
public Store getActiveStore()
public Store[] getAvailableStores()
public Store getAvailableStoreById(java.lang.String storeId)
public Store getAvailableStoreByName(java.lang.String storeName)
public ModelRoot getModelRoot()
public Customer[] getOpenCustomers()
Note: The active store will be assumed.
public Customer[] getOpenCustomers(Store openStore)
public SalesContainer[] getOpenSalesContainers()
Note: The active customer will be assumed.
public SalesContainer[] getOpenSalesContainers(Store openStore)
Note: The active customer will be assumed.
public SalesContainer[] getOpenSalesContainers(Customer openCustomer)
public Return[] getOpenReturns()
Note: The active customer will be assumed.
public Return[] getOpenReturns(Store openStore)
Note: The active customer will be assumed.
public Return[] getOpenReturns(Customer openCustomer)
public Store getOpenStore(java.lang.String storeId)
public Store[] getOpenStores()
public void removeAvailableStores()
public void setActiveCustomer(Customer customer)
public void setActiveOperator(Operator operator)
public void setActiveSalesContainer(SalesContainer sale)
public void setActiveReturn(Return rma)
public void setActiveStore(Store store)
public void setAvailableStores(Store[] stores)
public void setOpenStores(Store[] stores)
public void setOpenCustomers(Customer[] customers)
Note: The active store will be assumed.
public void setOpenCustomers(Customer[] customers, Store openStore)
public void setOpenSalesContainers(SalesContainer[] sales)
Note: The active customer will be assumed.
public void setOpenSalesContainers(SalesContainer[] sales, Customer openCustomer)
public java.lang.String getPreferredCurrency()
public Store findStore(Store store)
public Customer findCustomer(Customer customer)
public Customer findCustomerByMemberId(Store store, java.lang.String memberId)
public SalesContainer findSalesContainer(SalesContainer sale)
public Return findReturn(Return rma)
public void addResponsibleTickler(Tickler tickler)
public void addResponsibleTicklers(Tickler[] ticklers)
public void addOpenTickler(Tickler tickler)
public void addOpenTickler(Tickler tickler, Store openStore)
public void closeOpenTickler(Tickler openTickler)
public void closeOpenTicklers()
public void closeOpenTickler(Tickler openTickler, Store openStore)
public Tickler getActiveTickler()
public Tickler[] getResponsibleTicklers()
public Tickler getResponsibleTickler(java.lang.String ticklerId)
public void removeResponsibleTicklers()
public void setActiveTickler(Tickler tickler)
public void setResponsibleTicklers(java.lang.Object[] ticklers)
public void setOpenTicklers(Tickler[] ticklers)
public Tickler findTickler(Tickler tickler)
public void setBusinessChannels(BusinessChannel[] businessChannels)
The single parameter is an array of BusinessChannel objects.
public BusinessChannel[] getBusinessChannels()
The return value is an array of BusinessChannel objects.
public void removeBusinessChannels()
public void removeAvailableStore(Store store)
public void addAvailableServiceRep(TicklerAssignee serviceRep)
public TicklerAssignee findServiceRep(TicklerAssignee serviceRep)
public TicklerAssignee[] getAvailableServiceReps()
public TicklerAssignee getAvailableServiceRepById(java.lang.String serviceRepId)
public TicklerAssignee getAvailableServiceRepByName(java.lang.String serviceRepName)
public void setAvailableServiceReps(TicklerAssignee[] serviceReps)
public void removeAvailableServiceRep(TicklerAssignee serviceRep)
public void removeAvailableServiceReps()
public void addAvailableServiceTeam(TicklerAssignee serviceTeam)
public TicklerAssignee findServiceTeam(TicklerAssignee serviceTeam)
public TicklerAssignee[] getAvailableServiceTeams()
public TicklerAssignee getAvailableServiceTeamById(java.lang.String serviceTeamId)
public TicklerAssignee getAvailableServiceTeamByName(java.lang.String serviceTeamName)
public void setAvailableServiceTeams(TicklerAssignee[] serviceTeams)
public void removeAvailableServiceTeam(TicklerAssignee serviceTeam)
public void removeAvailableServiceTeams()
public java.lang.String[] getSupportedAssociationTypes()