Package org.eclipse.pass.loader.nihms
Class SubmissionLoader
java.lang.Object
org.eclipse.pass.loader.nihms.SubmissionLoader
Creates / updates the Submission, RepositoryCopy, Publication, and Deposit in the database as needed
- Author:
- Karen Hanson
-
Constructor Summary
ConstructorsConstructorDescriptionSubmissionLoader(NihmsPassClientService clientService, SubmissionStatusService statusService) Supports initiation with specific client service -
Method Summary
Modifier and TypeMethodDescriptionvoidload(SubmissionDTO dto) Load the data in the NihmsSubmissionDTO to the database.
-
Constructor Details
-
SubmissionLoader
public SubmissionLoader(NihmsPassClientService clientService, SubmissionStatusService statusService) Supports initiation with specific client service- Parameters:
clientService- PASS client servicestatusService- Submission status service
-
-
Method Details
-
load
Load the data in the NihmsSubmissionDTO to the database. Deal with any conflicts that occur during the updates by implementing retries, failing gracefully etc.- Parameters:
dto- the DTO- Throws:
IOException- if there is an error updating/creating the publication, repository copy, or submission
-