@Service(value="blDefaultLinkedDataServiceImpl") public class DefaultLinkedDataServiceImpl extends Object implements LinkedDataService
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.common.breadcrumbs.service.BreadcrumbService |
breadcrumbService |
protected static String |
DEFAULT_CONTEXT |
protected org.springframework.core.env.Environment |
environment |
| Constructor and Description |
|---|
DefaultLinkedDataServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
canHandle(LinkedDataDestinationType destination)
Determines whether or not this LinkedDataService can handle the incoming
LinkedDataDestinationType |
protected org.codehaus.jettison.json.JSONObject |
getBreadcrumbList()
Generates an object representing the Schema.org BreadcrumbList
|
String |
getLinkedData(String url,
List<Product> products)
Gets the linked data for default pages
|
protected org.codehaus.jettison.json.JSONArray |
getLinkedDataJson(String url,
List<Product> products) |
protected static Map<String,String[]> |
getRequestParams() |
protected String |
getRequestUri() |
protected String |
getSiteBaseUrl() |
protected static final String DEFAULT_CONTEXT
@Autowired protected org.springframework.core.env.Environment environment
@Autowired protected org.broadleafcommerce.common.breadcrumbs.service.BreadcrumbService breadcrumbService
public Boolean canHandle(LinkedDataDestinationType destination)
LinkedDataServiceLinkedDataDestinationTypecanHandle in interface LinkedDataServicepublic String getLinkedData(String url, List<Product> products) throws org.codehaus.jettison.json.JSONException
LinkedDataServicegetLinkedData in interface LinkedDataServiceorg.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONArray getLinkedDataJson(String url, List<Product> products) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject getBreadcrumbList()
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected String getRequestUri()
protected String getSiteBaseUrl()
Copyright © 2017. All rights reserved.