Package nl.topicus.onderwijs.dashboard.datatypes

Examples of nl.topicus.onderwijs.dashboard.datatypes.Issue


      IMCSession session = new MCSession(new URL(url), username, password);
      for (int curProject : projectIds) {
        for (IIssueHeader curIssue : session.getIssueHeaders(
            curProject, filter, 10)) {
          if (IssueStatus.get(curIssue.getStatus()) == IssueStatus.NEW)
            issues.add(new Issue(project, curIssue));
        }
      }
      return issues;
    } catch (MalformedURLException e) {
      log.error("Unable to refresh data from mantis: {} {}", e.getClass()
View Full Code Here


      private List<Issue> createRandomIssues(Key key) {
        Random random = new Random();
        List<Issue> ret = new ArrayList<Issue>();
        for (int count = 0; count < 5; count++) {
          Issue issue = new Issue();
          issue.setProject(key);
          issue.setId(random.nextInt(100000));
          issue.setDateTime(new Date(System.currentTimeMillis()
              - random.nextInt(3600000)));
          issue.setSummary("random issue with long message");
          issue.setStatus(IssueStatus.NEW);
          issue.setSeverity(IssueSeverity.values()[random
              .nextInt(IssueSeverity.values().length)]);
          issue.setPriority(IssuePriority.values()[random
              .nextInt(IssuePriority.values().length)]);
          ret.add(issue);
        }
        return ret;
      }
View Full Code Here

TOP

Related Classes of nl.topicus.onderwijs.dashboard.datatypes.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.