Package com.ubx1.pdpscanner.shared

Examples of com.ubx1.pdpscanner.shared.Project


  /**
   * Fill the label for displaying the differential with the previous version
   */
  private void fillDiffLabel() {

    Project p = this.project;
    int v = this.version;

    // If there is an anterior version
    if (v > 1) {

      if (p.getNcom(v) != -1 && p.getNcom(v - 1) != -1) {

        if (p.getNcom(v) > p.getNcom(v - 1)) {
          diffComLabel.setText("(+)");
          diffComLabel.setStyleDependentName("red", false);
          diffComLabel.setStyleDependentName("green", true);
        } else if (p.getNcom(v) < p.getNcom(v - 1)) {
          diffComLabel.setText("(-)");
          diffComLabel.setStyleDependentName("green", false);
          diffComLabel.setStyleDependentName("red", true);
        }
      }
View Full Code Here


   * Fill the bad practice UI tree to display the bad pratices grouped by
   * categories
   */
  private void fillTree() {

    Project p = this.project;

    ArrayList<FindbugsBugInstance> bp = p.getBp(this.version);

    HashMap<String, HashMap<String, ArrayList<FindbugsBugInstance>>> bpMap = Project
        .getFbMap(bp);

    Iterator<String> it1 = bpMap.keySet().iterator();
View Full Code Here

   *
   * @return the data table for the chart
   */
  private AbstractDataTable createTestChartDataTable() {

    Project p = this.project;
    int v = this.version;

    HashMap<String, HashMap<String, ArrayList<FindbugsBugInstance>>> bpMap = Project
        .getFbMap(p.getBp(v));

    DataTable data = DataTable.create();
    data.addColumn(ColumnType.STRING, "");

    data.addRows(1);
View Full Code Here

      throw new BadEmailException(email, "Email format invalid");
    }

    if (!cell.isEmpty() && !validateCell(cell)) {

      throw new BadCellException(cell, "Cell format invalid");
    }

    if (!validatePassword(password)) {

      throw new BadPasswordLengthException(password,
View Full Code Here

      throw new RequiredFieldException();
    }

    if (!validateEmail(email)) {

      throw new BadEmailException(email, "Email format invalid");
    }

    if (!cell.isEmpty() && !validateCell(cell)) {

      throw new BadCellException(cell, "Cell format invalid");
View Full Code Here

        return null;
      } else {

        conn.disconnect();

        throw new BadLoginException(username, password,
            "Incorrect password");
      }
    }
    // Username does not exist
    else {

      conn.disconnect();

      throw new BadLoginException(username, password,
          "Incorrect username");
    }
  }
View Full Code Here

          "Password is too short");
    }

    if (!validatePasswordConfirmation(password, confirmPassword)) {

      throw new BadPasswordConfirmationException(confirmPassword,
          confirmPassword, "Confirmation does not match password");
    }
  }
View Full Code Here

      if (BCrypt.checkpw(password, dbPasswordHash)) {

        return null;
      } else {

        throw new BadPasswordException(password, "Incorrect password");
      }
    } else {

      conn.disconnect();
View Full Code Here

      throw new BadCellException(cell, "Cell format invalid");
    }

    if (!validatePassword(password)) {

      throw new BadPasswordLengthException(password,
          "Password is too short");
    }

    if (!validatePasswordConfirmation(password, confirmPassword)) {
View Full Code Here

          String s = rs.getString("name");

          if (s.equals(name)) {

            throw new BadProjectNameException(name,
                "Project name already exists");
          }
        }

        // Prepare insert sql statement
View Full Code Here

TOP

Related Classes of com.ubx1.pdpscanner.shared.Project

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.