Database Reference
In-Depth Information
Figure 12-18.
Products Purchased by Friends
Specific Products Purchased by Friends
If you click on the “Specific Products Purchased By Friends” link, you can specify a product, in this case “Star Wars
Mimobot Thumb Drives”, and then search for friends who have purchased this product, as shown in Figure
12-19
. This
is done via the
friendsPurchaseByProduct
method in
Purchase
service class, which is shown in Listing 12-46.
Listing 12-46.
FriendsPurchaseByProduct
Route and Method
@Action(value = "intent/friendsPurchaseByProduct",results = {
@Result(name = "success", type = "mustache", location =
"/mustache/html/graphs/intent/index.html")
})
public String friendsPurchaseByProduct() {
setTitle("Specific Products Purchased by Friends");
setShowForm(true);
try {
if (StringUtils.isBlank(producttitle)) {
producttitle = "Star Wars Mimobot Thumb Drives";
}