Package cave.nice.testMessage.data

Examples of cave.nice.testMessage.data.ReportingPolicy


      VerifiedAccount account = dataManager
          .getVerifiedAccount(emailAddress);

      // First, check if a policy of the selected type exists, If so, we
      // update it
      ReportingPolicy reportingPolicy = account.getReportingPolicy(type);
      boolean modified = false;
      if (notifyAfterMinutes != null && reportingPolicy.getNotifyAfterMinutes() != notifyAfterMinutes) {
        reportingPolicy.setNotifyAfterMinutes(notifyAfterMinutes);
        modified = true;
      }
      if (notifyIfNoOpenTests != null && reportingPolicy.isNotifyIfNoOpenTests() != notifyIfNoOpenTests) {
        reportingPolicy.setNotifyIfNoOpenTests(notifyIfNoOpenTests);
        modified = true;
      }

      if (modified) {
        return Response.status(Status.OK).build();
View Full Code Here


    DataManager dataManager = getDataManager();
    try {
      VerifiedAccount account = dataManager
          .getVerifiedAccount(emailAddress);

      ReportingPolicy reportingPolicy = account.getReportingPolicy(type);
      dataManager.removeReportingPolicy(account, reportingPolicy);
      return Response.status(Status.NO_CONTENT).build();
    } catch (UnknownVerifiedAccountException e) {
      throw new WebApplicationException(Response
          .status(Status.NOT_FOUND)
View Full Code Here

TOP

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

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.