Class AllEntitiesLoaderFactory
java.lang.Object
io.jmix.gridexportflowui.exporter.entitiesloader.AllEntitiesLoaderFactory
Gives access to the all entities loader with current pagination strategy
set in application.properties
GridExportProperties.getExportAllPaginationStrategy()-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AllEntitiesLoader> protected GridExportProperties -
Constructor Summary
ConstructorsConstructorDescriptionAllEntitiesLoaderFactory(GridExportProperties gridExportProperties, List<AllEntitiesLoader> allEntitiesLoaders) -
Method Summary
Modifier and TypeMethodDescriptionReturn appropriateAllEntitiesLoadercomponent with accordance toGridExportProperties.getExportAllPaginationStrategy()getEntitiesLoader(String paginationStrategy) Returns theAllEntitiesLoaderthat implements the given pagination strategy.
-
Field Details
-
gridExportProperties
-
allEntitiesLoaders
-
-
Constructor Details
-
AllEntitiesLoaderFactory
public AllEntitiesLoaderFactory(GridExportProperties gridExportProperties, List<AllEntitiesLoader> allEntitiesLoaders)
-
-
Method Details
-
getEntitiesLoader
Return appropriateAllEntitiesLoadercomponent with accordance toGridExportProperties.getExportAllPaginationStrategy() -
getEntitiesLoader
Returns theAllEntitiesLoaderthat implements the given pagination strategy.- Parameters:
paginationStrategy- pagination strategy, e.g.KeysetAllEntitiesLoader.PAGINATION_STRATEGYorLimitOffsetAllEntitiesLoader.PAGINATION_STRATEGY- Returns:
- loader with the given pagination strategy
- Throws:
IllegalStateException- if there is no loader with the given pagination strategy
-