Interface IterativeExportSupport<T>
- Type Parameters:
T- The type of items being exported
- All Known Implementing Classes:
AssignmentListProvider,BaseSearchDataProvider,CertCampaignListItemDtoProvider,ClusterSelectableBeanObjectDataProvider,CombinedRelatedObjectsProvider,ContainerListDataProvider,MultivalueContainerListDataProvider,ObjectDataProvider,ObjectTileProvider,ProcessedObjectsProvider,ProjectionsListProvider,RelatedObjectsProvider,RepoAssignmentListProvider,RepositoryObjectDataProvider,RepositoryShadowBeanObjectDataProvider,ResourceTemplateProvider,SelectableBeanContainerDataProvider,SelectableBeanDataProvider,SelectableBeanObjectDataProvider,SelectableBeanReferenceDataProvider,SpecificMappingProvider,StatusAwareDataProvider,TemplateTileProvider
public interface IterativeExportSupport<T>
Interface for DataProviders that support iterative export.
This allows streaming export without loading all data into memory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexportIterative(ObjectHandler<T> handler, com.evolveum.midpoint.task.api.Task task, OperationResult result) Execute iterative search and pass each item to the handler.default booleanReturns true if this provider actually supports iterative export.
-
Method Details
-
exportIterative
void exportIterative(ObjectHandler<T> handler, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException Execute iterative search and pass each item to the handler. The search will stop if the handler returns false.- Parameters:
handler- Handler to process each item. Returns true to continue, false to stop.task- Task for the operationresult- Operation result- Throws:
CommonException- if an error occurs during the search
-
supportsIterativeExport
default boolean supportsIterativeExport()Returns true if this provider actually supports iterative export. Default is true, but BaseSearchDataProvider overrides to return false so that subclasses must explicitly enable support.
-