|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is the interface to the shopping advisor package. It builds a searchable table of Qualities from Items. That table is used to provide search and customer profile matching functionality.
suggestionCount
[ShoppingAdvisor] <*>------> [int
]
qualityDepth
[ShoppingAdvisor] <*>------> [int
]
itemDepth
[ShoppingAdvisor] <*>------> [int
]
matchAll
[ShoppingAdvisor] <*>------> [boolean
]
ShoppingAdvisorHome
,
ShoppingAdvisorImpl
Method Summary | |
void |
addCustomerPreference(Customer customer,
Quality quality)
Adds a quality to the customer's profile. |
void |
addDefaultItem(Item item,
int degree)
Add an item that will be returned by the getDefaultSuggestions method. |
void |
addItem(Item item)
Add a single item to the shopping engine. |
void |
deleteCustomerPreference(Customer customer,
Quality quality)
Removes a quality from the customer's profile. |
void |
deleteCustomerProfile(Customer customer)
Remove a customer profile. |
void |
deleteDefaultItem(Item item)
Remove an item from the list that will be returned when getDefaultSuggestions is called. |
void |
deleteItem(Item delete)
Delete a single item from the shopping engine. |
Suggestions |
getDefaultSuggestions()
Return a default list of suggestions as configured with teh addDefaultItem method. |
int |
getItemDepth()
Get the value of itemDepth |
boolean |
getMatchAll()
Get the value of matchAll |
int |
getQualityDepth()
Get the value of qualityDepth |
int |
getSuggestionCount()
Get the value of suggestionCount |
Suggestions |
getSuggestions(Customer customer)
Get suggestions based soley on a customers profile. |
Suggestions |
getSuggestions(Customer customer,
Item item)
Get suggestions based on the customer profile and the qualities of the item. |
Suggestions |
getSuggestions(Customer customer,
java.lang.String searchString)
Get suggestions based on a customer profile and a search string. |
Suggestions |
getSuggestions(java.lang.String searchString)
Tokenize the search string into a list of qualities to be searched for. |
void |
learnCustomerPreference(Customer customer,
Item item)
Adds an item's qualities to the customer's profile. |
void |
setItemDepth(int itemDepth)
Set the value of itemDepth |
void |
setMatchAll(boolean matchAll)
Set the value of matchAll |
void |
setQualityDepth(int qualityDepth)
Set the value of qualityDepth |
void |
setSuggestionCount(int suggestionCount)
Set the value of suggestionCount |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public int getSuggestionCount() throws java.rmi.RemoteException
public void setSuggestionCount(int suggestionCount) throws java.rmi.RemoteException
suggestionCounts
- suggestionCount to be addedpublic int getQualityDepth() throws java.rmi.RemoteException
public void setQualityDepth(int qualityDepth) throws java.rmi.RemoteException
qualityDepthes
- qualityDepth to be addedpublic int getItemDepth() throws java.rmi.RemoteException
public void setItemDepth(int itemDepth) throws java.rmi.RemoteException
itemDepthes
- itemDepth to be addedpublic boolean getMatchAll() throws java.rmi.RemoteException
public void setMatchAll(boolean matchAll) throws java.rmi.RemoteException
matchAlls
- matchAll to be addedpublic void deleteItem(Item delete) throws java.rmi.RemoteException
public void addItem(Item item) throws java.rmi.RemoteException
public void addDefaultItem(Item item, int degree) throws java.rmi.RemoteException
public void deleteDefaultItem(Item item) throws java.rmi.RemoteException
public Suggestions getDefaultSuggestions() throws java.rmi.RemoteException
public Suggestions getSuggestions(Customer customer) throws java.rmi.RemoteException
public Suggestions getSuggestions(Customer customer, java.lang.String searchString) throws java.rmi.RemoteException
public void learnCustomerPreference(Customer customer, Item item) throws java.rmi.RemoteException
public void addCustomerPreference(Customer customer, Quality quality) throws java.rmi.RemoteException
public void deleteCustomerPreference(Customer customer, Quality quality) throws java.rmi.RemoteException
public void deleteCustomerProfile(Customer customer) throws java.rmi.RemoteException
public Suggestions getSuggestions(java.lang.String searchString) throws java.rmi.RemoteException
public Suggestions getSuggestions(Customer customer, Item item) throws java.rmi.RemoteException
|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |