Class SubmissionLoader

java.lang.Object
org.eclipse.pass.loader.nihms.SubmissionLoader

@Component public class SubmissionLoader extends Object
Creates / updates the Submission, RepositoryCopy, Publication, and Deposit in the database as needed
Author:
Karen Hanson
  • Constructor Details

    • SubmissionLoader

      public SubmissionLoader(NihmsPassClientService clientService, SubmissionStatusService statusService)
      Supports initiation with specific client service
      Parameters:
      clientService - PASS client service
      statusService - Submission status service
  • Method Details

    • load

      public void load(SubmissionDTO dto) throws IOException
      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