Package com.technia.dsx.exchange.imp
Interface ImportService
public interface ImportService
Document me
- Since:
- 2023-04-11
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReceiptAndFileId
checkinFiles
(com.technia.dsx.common.TenantSession session, FileProvider fileProvider) Obtains a checkin-ticket and checks-in all the files provided by the givenFileProvider
checkinFiles
(com.technia.dsx.common.TenantSession session, FileProvider fileProvider, CheckinTicket ticket, Integer fileOffset) Checks in the files to be processed by the import later on.getCheckinTicket
(com.technia.dsx.common.TenantSession session, Integer maxNumberOfFiles) com.technia.dsx.app.model.Referable
requestImport
(com.technia.dsx.common.TenantSession session, ImportInput input) com.technia.dsx.app.model.Referable
retryImport
(com.technia.dsx.common.TenantSession session, String importId) void
submitImport
(com.technia.dsx.common.TenantSession session, String importId) void
updateImport
(com.technia.dsx.common.TenantSession session, String importId, AdditionalImportInput addInput)
-
Method Details
-
getCheckinTicket
@Remote(CREATE) CheckinTicket getCheckinTicket(com.technia.dsx.common.TenantSession session, Integer maxNumberOfFiles) -
checkinFiles
@Remote(UPDATE) default ReceiptAndFileId checkinFiles(com.technia.dsx.common.TenantSession session, FileProvider fileProvider) Obtains a checkin-ticket and checks-in all the files provided by the givenFileProvider
- Parameters:
session
- The current tenant sessionfileProvider
- The file provider, which will return the actual file content as well as the names of the files to be checked in.- Returns:
- The checkin receipt and the ID's of all files checked-in. This information is used in the next phase when the import job is requested.
-
checkinFiles
@Remote(UPDATE) ReceiptAndFileId checkinFiles(com.technia.dsx.common.TenantSession session, FileProvider fileProvider, CheckinTicket ticket, Integer fileOffset) Checks in the files to be processed by the import later on.If the ticket argument is null, a check-in ticket is established by calling the
getCheckinTicket
method. In that case, the number of files requested in the ticket will be equal to theFileProvider.getFileCount()
value.The number of correlations/files the
ticket
contains specifies how many files that will be checked in.If you wish to parallelize the checkin you need to provide different checkin tickets and utilize the fileOffset argument.
- Parameters:
session
- The current tenant sessionfileProvider
- The file provider, which will return the actual file content as well as the names of the files to be checked in.ticket
- Optional checkin ticket. If null, a new ticket will be requested.fileOffset
- The offset to start file execution from. If null or negative, 0 is the default value- Returns:
- The checkin receipt and the ID's of all files checked-in. This information is used in the next phase when the import job is requested.
-
requestImport
@Remote(CREATE) com.technia.dsx.app.model.Referable requestImport(com.technia.dsx.common.TenantSession session, ImportInput input) -
updateImport
@Remote(UPDATE) void updateImport(com.technia.dsx.common.TenantSession session, String importId, AdditionalImportInput addInput) -
submitImport
-
retryImport
@Remote(CREATE) com.technia.dsx.app.model.Referable retryImport(com.technia.dsx.common.TenantSession session, String importId)
-