@Component(value="blInventoryDataFeedGenerator") @ConditionalOnBroadleafModule(value=ADVANCED_INVENTORY) public class InventoryDataFeedGenerator extends AbstractStreamingDataFeedGenerator<com.broadleafcommerce.inventory.advanced.domain.Inventory>
Modifier and Type | Field and Description |
---|---|
com.broadleafcommerce.inventory.advanced.service.FulfillmentLocationService |
fulfillmentLocationService |
com.broadleafcommerce.inventory.advanced.service.AdvancedInventoryService |
inventoryService |
LOG, transUtil
processors, publishers
Constructor and Description |
---|
InventoryDataFeedGenerator() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateForEntityType(DataFeedEntityType entityType)
Returns true if this generator is able to process the passed in entityType.
|
List<com.broadleafcommerce.inventory.advanced.domain.Inventory> |
findEntities(DataFeed dataFeed,
int startPos,
int pageSize)
A streaming data feed generator must provide a way to return a paginated
set of entities.
|
Long |
findTotalEntityCount(DataFeed dataFeed)
A streaming data feed generator must provide the totalEntityCount in order to
facilitate paging.
|
findAndProcessData
buildDataFeedGraph, buildDynamicClass, checkConditionallyRequired, generate, getDynamicEntity, identifyDataFeedPublisher, initializeDynamicClass, lookupTestCount, lookupTestIds, resolveValues, shouldExcludeField, translateEntityListToDynamicList, validateValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
translateEntityListToDynamicList
generate
@Autowired public com.broadleafcommerce.inventory.advanced.service.AdvancedInventoryService inventoryService
@Autowired public com.broadleafcommerce.inventory.advanced.service.FulfillmentLocationService fulfillmentLocationService
public boolean canGenerateForEntityType(DataFeedEntityType entityType)
DataFeedGenerator
public Long findTotalEntityCount(DataFeed dataFeed)
AbstractStreamingDataFeedGenerator
findTotalEntityCount
in class AbstractStreamingDataFeedGenerator<com.broadleafcommerce.inventory.advanced.domain.Inventory>
public List<com.broadleafcommerce.inventory.advanced.domain.Inventory> findEntities(DataFeed dataFeed, int startPos, int pageSize)
AbstractStreamingDataFeedGenerator
findEntities
in class AbstractStreamingDataFeedGenerator<com.broadleafcommerce.inventory.advanced.domain.Inventory>
Copyright © 2020. All rights reserved.