public class DefaultModelLoader extends Object implements ModelLoader<Object>
ProductModel. SolrDocuments| Constructor and Description |
|---|
DefaultModelLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getModelAttribute(String attribute,
Object model,
PK pk) |
protected PK |
getPKFromDocument(SolrDocument doc) |
List<String> |
loadCodes(Collection<SolrDocument> documents)
Retrieves codes of items contained within the collection of
SolrDocuments |
List<Object> |
loadModels(Collection<SolrDocument> documents)
Retrieves information on models that are contained within the collection of
SolrDocuments |
void |
setModelService(ModelService modelService) |
public List<Object> loadModels(Collection<SolrDocument> documents) throws ModelLoadingException
ModelLoaderSolrDocumentsloadModels in interface ModelLoader<Object>ModelLoadingExceptionpublic List<String> loadCodes(Collection<SolrDocument> documents) throws ModelLoadingException
ModelLoaderSolrDocumentsloadCodes in interface ModelLoader<Object>ModelLoadingExceptionprotected String getModelAttribute(String attribute, Object model, PK pk) throws ModelLoadingException
attribute - model - pk - ModelLoadingExceptionprotected PK getPKFromDocument(SolrDocument doc) throws ModelLoadingException
doc - ModelLoadingExceptionpublic void setModelService(ModelService modelService)
Copyright © 2017 SAP SE. All Rights Reserved.