Package cave.nice.testMessage.data

Examples of cave.nice.testMessage.data.Report


    // TODO Implement since
    DataManager dataManager = getDataManager();
    try {
      VerifiedAccount account = dataManager
          .getVerifiedAccount(emailAddress);
      Report report = new Report();
      report.setTimestamp(new Date());
      report.setOpenTests(Lists.newLinkedList(dataManager.getOpenTests(account)));
      report.setClosedTests(Lists.newLinkedList(dataManager.getClosedTests(account)));
      return Response.ok(report).type(MediaType.APPLICATION_JSON).build();
    } catch (UnknownVerifiedAccountException e) {
      throw new WebApplicationException(Response
          .status(Status.NOT_FOUND)
          .entity("No account '" + emailAddress.getAddress()
View Full Code Here

TOP

Related Classes of cave.nice.testMessage.data.Report

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.