Package com.almende.eve.entity

Examples of com.almende.eve.entity.Issue


      }
    }
    else {
      if (activityStart != null || activityEnd != null) {
        // no solution
        Issue issue = new Issue();
        issue.setCode(Issue.NO_PLANNING);
        issue.setType(Issue.TYPE.error);
        issue.setMessage("No free interval found for the meeting");
        issue.setTimestamp(DateTime.now().toString());
        // TODO: generate hints
        addIssue(issue);
 
        Status status = activity.withStatus();
        status.setStart(null);
        status.setEnd(null);
        status.setActivityStatus(Status.ACTIVITY_STATUS.error);
        status.setUpdated(DateTime.now().toString());
        state.put("activity", activity);
        logger.info(issue.getMessage()); // TODO: cleanup logging
        return true;
      }
      else {
        // planning did not change (no solution was already the case)
      }
View Full Code Here


   * @param type
   * @param code
   * @param message
   */
  private void addIssue (TYPE type, Integer code, String message) {
    Issue issue = new Issue();
    issue.setType(type);
    issue.setCode(code);
    issue.setMessage(message);
    issue.setTimestamp(DateTime.now().toString());
    addIssue(issue);
  }
View Full Code Here

      }
    }
    else {
      if (activityStart != null || activityEnd != null) {
        // no solution
        Issue issue = new Issue();
        issue.setCode(Issue.NO_PLANNING);
        issue.setType(Issue.TYPE.error);
        issue.setMessage("No free interval found for the meeting");
        issue.setTimestamp(DateTime.now().toString());
        // TODO: generate hints
        addIssue(issue);
 
        Status status = activity.withStatus();
        status.setStart(null);
        status.setEnd(null);
        status.setActivityStatus(Status.ACTIVITY_STATUS.error);
        status.setUpdated(DateTime.now().toString());
        state.put("activity", activity);
        logger.info(issue.getMessage()); // TODO: cleanup logging
        return true;
      }
      else {
        // planning did not change (no solution was already the case)
      }
View Full Code Here

   * @param type
   * @param code
   * @param message
   */
  private void addIssue (TYPE type, Integer code, String message) {
    Issue issue = new Issue();
    issue.setType(type);
    issue.setCode(code);
    issue.setMessage(message);
    issue.setTimestamp(DateTime.now().toString());
    addIssue(issue);
  }
View Full Code Here

      }
    }
    else {
      if (activityStart != null || activityEnd != null) {
        // no solution
        Issue issue = new Issue();
        issue.setCode(Issue.NO_PLANNING);
        issue.setType(Issue.TYPE.error);
        issue.setMessage("No free interval found for the meeting");
        issue.setTimestamp(DateTime.now().toString());
        // TODO: generate hints
        addIssue(issue);
 
        Status status = activity.withStatus();
        status.setStart(null);
        status.setEnd(null);
        status.setActivityStatus(Status.ACTIVITY_STATUS.error);
        status.setUpdated(DateTime.now().toString());
        state.put("activity", activity);
        logger.info(issue.getMessage()); // TODO: cleanup logging
        return true;
      }
      else {
        // planning did not change (no solution was already the case)
      }
View Full Code Here

   * @param type
   * @param code
   * @param message
   */
  private void addIssue (TYPE type, Integer code, String message) {
    Issue issue = new Issue();
    issue.setType(type);
    issue.setCode(code);
    issue.setMessage(message);
    issue.setTimestamp(DateTime.now().toString());
    addIssue(issue);
  }
View Full Code Here

      }
    }
    else {
      if (activityStart != null || activityEnd != null) {
        // no solution
        Issue issue = new Issue();
        issue.setCode(Issue.NO_PLANNING);
        issue.setType(Issue.TYPE.error);
        issue.setMessage("No free interval found for the meeting");
        issue.setTimestamp(DateTime.now().toString());
        // TODO: generate hints
        addIssue(issue);
 
        Status status = activity.withStatus();
        status.setStart(null);
        status.setEnd(null);
        status.setActivityStatus(Status.ACTIVITY_STATUS.error);
        status.setUpdated(DateTime.now().toString());
        state.put("activity", activity);
        logger.info(issue.getMessage()); // TODO: cleanup logging
        return true;
      }
      else {
        // planning did not change (no solution was already the case)
      }
View Full Code Here

   * @param type
   * @param code
   * @param message
   */
  private void addIssue (TYPE type, Integer code, String message) {
    Issue issue = new Issue();
    issue.setType(type);
    issue.setCode(code);
    issue.setMessage(message);
    issue.setTimestamp(DateTime.now().toString());
    addIssue(issue);
  }
View Full Code Here

TOP

Related Classes of com.almende.eve.entity.Issue

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.