Exemple #1
0
  /**
   * Finds all fraud point rules which were violated.
   *
   * @return the string
   */
  public String fraudPointViolations() {

    FraudPointController controller = FraudPointController.getInstance();
    StringBuffer buffer = new StringBuffer();
    List<FraudPoint> fpList = FraudPoint.find("byUser", this).fetch();
    Set<String> violations = new HashSet<String>();
    for (FraudPoint p : fpList) {
      violations.add(controller.getDescription(p.rule));
    }
    for (String violation : violations) {
      buffer.append(violation + "\n");
    }

    return buffer.toString();
  }
Exemple #2
0
 /**
  * Fraud point score.
  *
  * @return the long
  */
 public long fraudPointScore() {
   return FraudPoint.count("user = ?", this);
 }