Package org.cipres.treebase.domain.matrix

Examples of org.cipres.treebase.domain.matrix.Matrix


  }

  private void checkAnalyzed(Collection<Matrix> mylist, Study study) { 
    Iterator<Matrix> matrixIterator = mylist.iterator();
    while ( matrixIterator.hasNext() ) {
      Matrix matrix = matrixIterator.next();
      if ( matrix.isPublished() ) {
        matrix.setAnalyzed(true);
      }
      else {
        if ( study != null ) {
          Iterator<Matrix> analyzedMatrixIterator = study.getMatrices().iterator();
          ANALYZED: while ( analyzedMatrixIterator.hasNext() ) {
            Matrix analyzedMatrix = analyzedMatrixIterator.next();
            if ( analyzedMatrix.getId() == matrix.getId() ) {
              matrix.setAnalyzed(true);
              break ANALYZED;
            }
          }
        }
View Full Code Here


    StringBuilder oversizerowsbldr = new StringBuilder("");
    Iterator<Matrix> matrices = mylist.iterator();

    int i = 0;
    while (matrices.hasNext()) {
      Matrix amat = matrices.next();
      if (amat.getTitle().trim().length() > permittedlength) {
        check = false;
        oversizerowsbldr.append(String.valueOf(i + 1));
        oversizerowsbldr.append(",");
      }
      i++;
View Full Code Here

    }

    String username = request.getRemoteUser();
    arowsegment = getRowSegmentService().resurrect(arowsegment);

    Matrix amatrix = arowsegment.getMatrixRow().getMatrix();
    Long submissionId = getSubmissionHome().findByMatrix(amatrix).getId();

    TBPermission perm2 = getSubmissionService().getPermission(username, submissionId);

    if (perm2 == TBPermission.WRITE) {
View Full Code Here

    HttpServletRequest request,
    HttpServletResponse response,
    Object command,
    BindException bindExp) throws Exception {

    Matrix amatrix = (Matrix) command;

    String username = request.getRemoteUser();

    Long submissionId = getSubmissionHome().findByMatrix(amatrix).getId();
View Full Code Here

  protected Object formBackingObject(HttpServletRequest request) {

    if (request.getParameter("matrixid") != null) {

      Long matrixID = Long.parseLong(request.getParameter("matrixid"));
      Matrix pMatrix = getMatrixService().findByID(matrixID);
      return pMatrix;

    } else {
      return null;
    }
View Full Code Here

    Map<String,String> referenceMap = new HashMap<String,String>();
    referenceMap.put("deleteelementtype", "Delete this particular matrix");

    Long matrixID = Long.parseLong(request.getParameter("matrixid"));
    Matrix pMatrix = getMatrixService().findByID(matrixID);

    if (pMatrix.getStudy() != null) { // It means this tree is tied to analysis step
      referenceMap.put("generalmessage", "This matrix is tied to an Analysis Step.");
    }

    referenceMap.put("deleteid", "Matrix ID : " + matrixID);
    referenceMap.put("objectname", "Matrix Title : " + pMatrix.getTitle());

    return referenceMap;
  }
View Full Code Here

      String idString = request.getParameter("ids");
      String[] ids = idString.split(" +");     
      if ( dataType.equals("Matrices") ) {
        for ( int i = 0; i < ids.length; i++ ) {
          if ( ! TreebaseUtil.isEmpty(ids[i]) ) {
            Matrix matrix = getMatrixService().findByID(Long.parseLong(ids[i]));
            AnalyzedMatrix analyzedMatrix = new AnalyzedMatrix();
            analyzedMatrix.setInput(input);
            analyzedMatrix.setMatrix(matrix);
            analysisStep.addAnalyzedData(analyzedMatrix);
            getAnalysisStepService().update(analysisStep);         
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.matrix.Matrix

Copyright © 2018 www.massapicom. 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.