Search in sources :

Example 1 with DocumentFilterDescriptorsProvidersService

use of de.metas.ui.web.document.filter.provider.DocumentFilterDescriptorsProvidersService in project metasfresh-webui-api by metasfresh.

the class DataEntryTabLoaderTest method createDataEntryTabLoader.

private static DataEntryTabLoader createDataEntryTabLoader() {
    final WindowId windowId = WindowId.of(5);
    final DataEntryWebuiTools dataEntryWebuiTools = new DataEntryWebuiTools(new UserRepository());
    final JSONDataEntryRecordMapper jsonDataEntryRecordMapper = new JSONDataEntryRecordMapper();
    final DataEntryRecordRepository dataEntryRecordRepository = new DataEntryRecordRepository(jsonDataEntryRecordMapper);
    final DataEntrySubTabBindingDescriptorBuilder // 
    dataEntrySubTabBindingDescriptorBuilder = new DataEntrySubTabBindingDescriptorBuilder(dataEntryRecordRepository, dataEntryWebuiTools);
    return DataEntryTabLoader.builder().filterDescriptorsProvidersService(new DocumentFilterDescriptorsProvidersService(ImmutableList.of())).windowId(windowId).adWindowId(windowId.toAdWindowIdOrNull()).dataEntrySubTabBindingDescriptorBuilder(dataEntrySubTabBindingDescriptorBuilder).build();
}
Also used : DataEntryRecordRepository(de.metas.dataentry.data.DataEntryRecordRepository) DocumentFilterDescriptorsProvidersService(de.metas.ui.web.document.filter.provider.DocumentFilterDescriptorsProvidersService) UserRepository(de.metas.user.UserRepository) JSONDataEntryRecordMapper(de.metas.dataentry.data.json.JSONDataEntryRecordMapper) AdWindowId(org.adempiere.ad.element.api.AdWindowId) WindowId(de.metas.ui.web.window.datatypes.WindowId)

Aggregations

DataEntryRecordRepository (de.metas.dataentry.data.DataEntryRecordRepository)1 JSONDataEntryRecordMapper (de.metas.dataentry.data.json.JSONDataEntryRecordMapper)1 DocumentFilterDescriptorsProvidersService (de.metas.ui.web.document.filter.provider.DocumentFilterDescriptorsProvidersService)1 WindowId (de.metas.ui.web.window.datatypes.WindowId)1 UserRepository (de.metas.user.UserRepository)1 AdWindowId (org.adempiere.ad.element.api.AdWindowId)1