class DelfiSubmitService implements SubmitService {

  @Override
  public SubmitJobResult submitFile(SubmitFileContext fileContext, RequestContext requestContext) {
    SubmitFileResult submitFileResult = delfiIngestionClient
        .submitFile(requestContext.getAuthorizationToken(),
            portalProperties.getAppKey(),
            requestContext.getPartition(),
            requestContext.getPartition(),
            SubmitFileObject.builder()
                .kind(fileContext.getKind())
                .acl(getAcl(requestContext.getUserGroupEmailByName()))
                .legalTags(requestContext.getLegalTags())
                .filePath(GCS_PROTOCOL + fileContext.getRelativeFilePath())
                .fileInput(FileInput.FILE_PATH)
                .ingestorRoutines(getIngestorRoutines(fileContext))
                .build());

    return SubmitJobResult.builder()
        .jobId(submitFileResult.getJobId())
        .build();
  }

}