@Service(value="blProductLinkedDataServiceImpl") public class ProductLinkedDataServiceImpl extends DefaultLinkedDataServiceImpl
| Modifier and Type | Field and Description |
|---|---|
protected static DateFormat |
ISO_8601_FORMAT |
protected RatingService |
ratingService |
breadcrumbService, environment| Constructor and Description |
|---|
ProductLinkedDataServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addReviewData(Product product,
org.codehaus.jettison.json.JSONObject productData) |
Boolean |
canHandle(LinkedDataDestinationType destination)
Determines whether or not this LinkedDataService can handle the incoming
LinkedDataDestinationType |
protected org.codehaus.jettison.json.JSONObject |
getBreadcrumbList(Product product,
String url)
Gets the category breadcrumbs and appends the product breadcrumb
|
protected org.codehaus.jettison.json.JSONArray |
getLinkedDataJson(String url,
List<Product> products) |
protected org.codehaus.jettison.json.JSONObject |
getProductLinkedData(Product product,
String url) |
getLinkedDataprotected static final DateFormat ISO_8601_FORMAT
protected RatingService ratingService
public Boolean canHandle(LinkedDataDestinationType destination)
LinkedDataServiceLinkedDataDestinationTypecanHandle in interface LinkedDataServicecanHandle in class DefaultLinkedDataServiceImplprotected org.codehaus.jettison.json.JSONArray getLinkedDataJson(String url, List<Product> products) throws org.codehaus.jettison.json.JSONException
getLinkedDataJson in class DefaultLinkedDataServiceImplorg.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject getProductLinkedData(Product product, String url) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected void addReviewData(Product product, org.codehaus.jettison.json.JSONObject productData) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject getBreadcrumbList(Product product, String url) throws org.codehaus.jettison.json.JSONException
product - the product on the page visitedurl - the full URL requestedorg.codehaus.jettison.json.JSONExceptionCopyright © 2017. All rights reserved.