public class ProductAddServiceImpl extends java.lang.Object implements ProductAddService
Modifier and Type | Field and Description |
---|---|
private DocumentBufferedOutputStreamFactory<Product> |
documentOutputStreamFactory |
private static org.slf4j.Logger |
log |
private DAOFactory<MetadataDAO> |
metadataDAOFactory |
private ItemStreamReaderFactory<Product> |
productItemReaderFactory |
private TransactionTemplateFactory |
transactionTemplateFactory |
Constructor and Description |
---|
ProductAddServiceImpl(DAOFactory<MetadataDAO> metadataDAOFactory,
CoreService coreService,
ItemStreamReaderFactory<Product> productItemReaderFactory,
DocumentBufferedOutputStreamFactory<Product> documentOutputStreamFactory,
TransactionTemplateFactory transactionTemplateFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
addProductsToIndex(CoreIdentifier core,
Index index) |
boolean |
addProductsToIndex(CoreIdentifier core,
Index index,
java.util.List<IndexItem> items) |
private boolean |
addProductsToIndex(Index index,
CoreIdentifier core,
ItemSelector<IEp6Object,?> selector) |
private boolean |
addProductsToIndexWithinTransaction(CoreIdentifier core,
Index index,
ItemSelector<IEp6Object,?> selector) |
private void |
logFailure(Index index) |
private static final org.slf4j.Logger log
private final DAOFactory<MetadataDAO> metadataDAOFactory
private final ItemStreamReaderFactory<Product> productItemReaderFactory
private final DocumentBufferedOutputStreamFactory<Product> documentOutputStreamFactory
private final TransactionTemplateFactory transactionTemplateFactory
@Inject public ProductAddServiceImpl(DAOFactory<MetadataDAO> metadataDAOFactory, CoreService coreService, ItemStreamReaderFactory<Product> productItemReaderFactory, DocumentBufferedOutputStreamFactory<Product> documentOutputStreamFactory, TransactionTemplateFactory transactionTemplateFactory)
public boolean addProductsToIndex(CoreIdentifier core, Index index)
addProductsToIndex
in interface ProductAddService
public boolean addProductsToIndex(CoreIdentifier core, Index index, java.util.List<IndexItem> items)
addProductsToIndex
in interface ProductAddService
private boolean addProductsToIndexWithinTransaction(CoreIdentifier core, Index index, ItemSelector<IEp6Object,?> selector)
private boolean addProductsToIndex(Index index, CoreIdentifier core, ItemSelector<IEp6Object,?> selector)
private void logFailure(Index index)