Package uk.ac.bbsrc.tgac.miso.core.data.impl.ls454

Source Code of uk.ac.bbsrc.tgac.miso.core.data.impl.ls454.LS454Run

/*
* Copyright (c) 2012. The Genome Analysis Centre, Norwich, UK
* MISO project contacts: Robert Davey, Mario Caccamo @ TGAC
* *********************************************************************
*
* This file is part of MISO.
*
* MISO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MISO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MISO.  If not, see <http://www.gnu.org/licenses/>.
*
* *********************************************************************
*/

package uk.ac.bbsrc.tgac.miso.core.data.impl.ls454;

import com.eaglegenomics.simlims.core.SecurityProfile;
import com.eaglegenomics.simlims.core.User;
import uk.ac.bbsrc.tgac.miso.core.data.impl.RunImpl;
import uk.ac.bbsrc.tgac.miso.core.data.impl.StatusImpl;
import uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType;
import uk.ac.bbsrc.tgac.miso.core.factory.submission.ERASubmissionFactory;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

/**
* uk.ac.bbsrc.tgac.miso.core.data.impl.ls454
* <p/>
* TODO Info
*
* @author Rob Davey
* @since 0.0.2
*/
@Entity
@DiscriminatorValue("LS454")
public class LS454Run extends RunImpl {

  public LS454Run() {
    setPlatformType(PlatformType.LS454);
    setStatus(new StatusImpl());
  }

  public LS454Run(User user) {
    setPlatformType(PlatformType.LS454);
    setStatus(new StatusImpl());
    setSecurityProfile(new SecurityProfile(user));
  }

  public void buildSubmission() {
    /*
    try {
      DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
      submissionDocument = docBuilder.newDocument();
    }
    catch (ParserConfigurationException e) {
      e.printStackTrace();
    }
    ERASubmissionFactory.generateFullRunSubmissionXML(submissionDocument, this);
    */
  }

  /**
   * Method buildReport ...
   */
  public void buildReport() {

  }
}
TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.data.impl.ls454.LS454Run

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.