Interface SubmitService

All Known Implementing Classes:
Submit11Service

public interface SubmitService
This class contains the submit service interface.
  • Method Details

    • getFields

      SubmitService.Fields getFields(String api)
      The method getFields provides means to retrieve the supported fields and their attributes.
      Parameters:
      api - the number of the requested API
      Returns:
      the fields
      Throws:
      UnsupportedOperationException - if a wrong API version is given
    • getVersion

      String getVersion()
      This is the getter for the version number.
      Returns:
      the version number
    • upload

      Messages upload(String api, SubmitService.UploadData data, Archive archive, User user)
      This method performs a validation and a following upload if the validation has succeeded.
      Parameters:
      api - the version of the API
      data - the parameters
      archive - the archive
      user - the authenticated user or null
      Returns:
      the list of messages
    • validate

      Messages validate(String api, SubmitService.UploadData data, Archive archive)
      This service method performs a validation and tries to store the data as upload.
      Parameters:
      api - the version of the API
      data - the parameters
      archive - the archive
      Returns:
      the messages