final class PreselectedAttributesAppender extends java.lang.Object implements DocumentAppender
Modifier and Type | Field and Description |
---|---|
private DocumentValueAppender |
appender |
private javax.inject.Provider<PreselectedSet> |
preselectedSetProvider |
Constructor and Description |
---|
PreselectedAttributesAppender(DocumentValueAppender appender,
javax.inject.Provider<PreselectedSet> provider) |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.solr.common.SolrInputDocument doc,
IProduct product)
Takes data from the product and adds it to the document.
|
private java.lang.String |
buildPreselectedJsonField(java.util.Collection<CustomAttribute> attributes) |
private final DocumentValueAppender appender
private final javax.inject.Provider<PreselectedSet> preselectedSetProvider
@Inject public PreselectedAttributesAppender(DocumentValueAppender appender, javax.inject.Provider<PreselectedSet> provider)
public void append(org.apache.solr.common.SolrInputDocument doc, IProduct product)
DocumentAppender
append
in interface DocumentAppender
doc
- The document to which the data has to be added.product
- The product from which the data is taken.private java.lang.String buildPreselectedJsonField(java.util.Collection<CustomAttribute> attributes)