@@ -0,0 +1,1666 @@
+package edu.umn.msi.tropix.jobs.newfile;%0A%0Aimport javax.annotation.ManagedBean;%0Aimport javax.inject.Inject;%0A%0Aimport com.google.common.collect.Sets;%0A%0Aimport edu.umn.msi.tropix.files.NewFileMessageQueue.NewFileMessage;%0Aimport edu.umn.msi.tropix.jobs.activities.descriptions.ActivityDescription;%0Aimport edu.umn.msi.tropix.jobs.activities.descriptions.CreateProteomicsRunDescription;%0Aimport edu.umn.msi.tropix.jobs.activities.descriptions.JobDescription;%0Aimport edu.umn.msi.tropix.jobs.client.ActivityClient;%0Aimport edu.umn.msi.tropix.models.TropixFile;%0Aimport edu.umn.msi.tropix.models.utils.StockFileExtensionEnum;%0A%0A@ManagedBean%0A@ForExtension(edu.umn.msi.tropix.models.utils.StockFileExtensionEnum.MZXML)%0Apublic class MzxmlNewFileProcessorImpl %7B%0A  private final ActivityClient activityClient;%0A%0A  @Inject%0A  public MzxmlNewFileProcessorImpl(final ActivityClient activityClient) %7B%0A    this.activityClient = activityClient;%0A  %7D%0A%0A  public void processFile(final NewFileMessage message, final TropixFile tropixFile) %7B%0A    final CreateProteomicsRunDescription description = new CreateProteomicsRunDescription();%0A    description.setDestinationId(message.getParentId());%0A    description.setMzxmlFileId(tropixFile.getId());%0A    final String name = StockFileExtensionEnum.MZXML.stripExtension(tropixFile.getName());%0A    description.setName(name);%0A    description.setCommitted(true);%0A    final JobDescription jobDescription = new JobDescription();%0A    jobDescription.setName(String.format(%22Create peak list %25s%22, name));%0A    description.setJobDescription(jobDescription);%0A    activityClient.submit(Sets.%3CActivityDescription%3EnewHashSet(description), message.getCredential());%0A  %7D%0A%0A%7D%0A

Add mzxml new file processor to create peak lists from new mzxml files.