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