Package nz.org.winters.appspot.acrareporter.store

Examples of nz.org.winters.appspot.acrareporter.store.ACRALog


  }

  @Override
  public ACRALog getACRALog(String REPORT_ID) throws IllegalArgumentException
  {
    ACRALog log = ObjectifyService.ofy().load().type(ACRALog.class).filter("REPORT_ID", REPORT_ID).first().now();
    return log;
  }
View Full Code Here


  }

  @Override
  public void deleteReport(String REPORT_ID) throws IllegalArgumentException
  {
    ACRALog log = ObjectifyService.ofy().load().type(ACRALog.class).filter("REPORT_ID", REPORT_ID).first().now();
    if (log != null)
    {
      ObjectifyService.ofy().delete().entity(log);
    }
View Full Code Here

  }

  @Override
  public void retraceReport(String REPORT_ID) throws IllegalArgumentException
  {
    ACRALog acraLog = ObjectifyService.ofy().load().type(ACRALog.class).filter("REPORT_ID", REPORT_ID).first().now();

    if (acraLog != null)
    {

      MappingFileInfo mapping = ObjectifyService.ofy().load().type(MappingFileInfo.class).filter("PACKAGE_NAME", acraLog.PACKAGE_NAME).filter("version", acraLog.APP_VERSION_NAME).first().now();
View Full Code Here

    int lookedAt = 0;

    for (String report_id : reportIds)
    {
      BasicErrorInfo beo = ObjectifyService.ofy().load().type(BasicErrorInfo.class).filter("REPORT_ID", report_id).first().now();
      ACRALog acra = ObjectifyService.ofy().load().type(ACRALog.class).filter("REPORT_ID", report_id).first().now();
      owner = beo.Owner;
      packageName = beo.PACKAGE_NAME;

      DailyCounts userCounts = DailyCountsGetters.getDate(owner, beo.Timestamp);
      DailyCounts packageCounts = DailyCountsGetters.getDate(beo.PACKAGE_NAME, beo.Timestamp);
View Full Code Here

    List<BasicErrorInfo> beoList = ObjectifyService.ofy().load().type(BasicErrorInfo.class).filter("PACKAGE_NAME", PACKAGE_NAME).list();
   
    for (BasicErrorInfo beo: beoList)
    {
     
      ACRALog acra = ObjectifyService.ofy().load().type(ACRALog.class).filter("REPORT_ID", beo.REPORT_ID).first().now();
     
      owner = beo.Owner;

      DailyCounts userCounts = DailyCountsGetters.getDate(owner, beo.Timestamp);
      DailyCounts packageCounts = DailyCountsGetters.getDate(beo.PACKAGE_NAME, beo.Timestamp);
View Full Code Here

          log.severe("package disabled " + PACKAGE_NAME);
          response.sendError(HttpServletResponse.SC_FORBIDDEN);
          return;
        }
       
        ACRALog acraLog = populateACRA(request);
        String auth = request.getHeader("Authorization");
        if (Utils.isEmpty(auth))
        {
          response.getWriter().println("FAIL AUTH");
          log.severe("Authentication Failed " + acraLog.PACKAGE_NAME);
View Full Code Here

   
  }

  ACRALog populateACRA(HttpServletRequest request)
  {
    ACRALog log = new ACRALog();
    log.Timestamp = new Date();

    log.REPORT_ID = request.getParameter("REPORT_ID");

    String apc = request.getParameter("APP_VERSION_CODE").replace(".0", "");
View Full Code Here

 

  private void getError(HttpServletResponse response, String reportId) throws Exception
  {
  //  response.getWriter().println("PACKAGES");
    ACRALog error = ObjectifyService.ofy().load().type(ACRALog.class).filter("REPORT_ID", reportId).first().now();

    Gson gson = new GsonBuilder().setVersion(GSON_VERSION).create();
    response.getWriter().println(gson.toJson(error));
  }
View Full Code Here

TOP

Related Classes of nz.org.winters.appspot.acrareporter.store.ACRALog

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.