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

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


      @Override
      public void execute()
      {
        if (selectionModel.getSelectedSet().isEmpty())
          return;
        final MappingFileInfo mfs = selectionModel.getSelectedSet().iterator().next();

        InputDialog.doInput(constants.mappingListLabelEditMapping(), constants.mappingListGridVersion(), mfs.version, new InputDialog.DialogCallback()
        {

          @Override
View Full Code Here


    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();
      if (mapping != null)
      {
        MappingFileData mfd = ObjectifyService.ofy().load().type(MappingFileData.class).filter("mappingFileInfoId",mapping.id).first().now();
        acraLog.MAPPED_STACK_TRACE = StringReTrace.doReTrace(mfd.mapping, acraLog.STACK_TRACE);
        ObjectifyService.ofy().save().entity(acraLog);
View Full Code Here

  }

  @Override
  public void editMappingVersion(Long id, String version) throws IllegalArgumentException
  {
    MappingFileInfo mf = ObjectifyService.ofy().load().type(MappingFileInfo.class).id(id).now();
    mf.setVersion(version);
    ObjectifyService.ofy().save().entity(mf);

  }
View Full Code Here

          {
            while (iterator.hasNext())
            {
              MappingFile map = iterator.next();

              MappingFileInfo mfi = new MappingFileInfo();
              mfi.Owner = map.Owner;
              mfi.version = map.version;
              mfi.PACKAGE_NAME = map.getApppackage();
              mfi.uploadDate = map.uploadDate;
             
View Full Code Here

      ServletInputStream input = request.getInputStream();

      String data = convertStreamToString(input);

      MappingFileInfo mfi = new MappingFileInfo(appUser, apppackage, version);

      Key<MappingFileInfo> resultkey = ObjectifyService.ofy().save().entity(mfi).now();
     
      MappingFileData mfd = new MappingFileData();
      mfd.add(data);
View Full Code Here

        return;
      }

      String data = convertStreamToString(fileinput);

      MappingFileInfo mfi = new MappingFileInfo(appUser, apppackage, version);

      Key<MappingFileInfo> resultkey = ObjectifyService.ofy().save().entity(mfi).now();

      MappingFileData mfd = new MappingFileData();
      mfd.add(data);
View Full Code Here

        basicInfo.REPORT_ID = acraLog.REPORT_ID;
        basicInfo.USER_CRASH_DATE = acraLog.USER_CRASH_DATE;
        basicInfo.Timestamp = acraLog.Timestamp;

        // find mapping.
        MappingFileInfo mapping = ofy.load().type(MappingFileInfo.class).filter("PACKAGE_NAME", acraLog.PACKAGE_NAME).filter("version", acraLog.APP_VERSION_NAME).first().now();
        if (mapping != null)
        {
          MappingFileInfo mostRecentMapping = ofy.load().type(MappingFileInfo.class).filter("PACKAGE_NAME", acraLog.PACKAGE_NAME).order("-uploadDate").limit(1).first().now();
          if (mostRecentMapping != null)
          {
            if (mostRecentMapping.getId() != mapping.getId())
            {
              // old version, lets write out message
              response.getWriter().println("OLD VERSION");
              if (appPackage.DiscardOldVersionReports)
              {
View Full Code Here

TOP

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

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.