Examples of saveDocument()


Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

        attDescription.setFileClass(fileClass);
      }

      // Update status
      attDescription.setStatus(UploadConstants.UPLOAD_STATUS_ANALYZED);
      conversionContext.saveDocument();
    }
  }

 
  /**
 
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

      // Delete current attachment
      attDescription.removeFile();

      // Update status
      attDescription.setStatus(UploadConstants.UPLOAD_STATUS_SUBMITTED);
      conversionContext.saveDocument();
    }
  }

  private void performAnalyzedWork(String docId, String attachmentName) throws Exception {
    JSONObject doc = dd.getDatabase().getDocument(docId);
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

        attDescription.setStatus(UploadConstants.UPLOAD_STATUS_APPROVED);
      } else {
        attDescription.setStatus(UploadConstants.UPLOAD_STATUS_WAITING_FOR_APPROVAL);
        shouldSendNotification = true;
      }
      conversionContext.saveDocument();
     
      // Notify that upload is available
      if( shouldSendNotification ) {
        sendVettingNotification(docId, doc, attachmentName);
      }
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

          );
      }

      // Update status
      attDescription.setStatus(UploadConstants.UPLOAD_STATUS_ATTACHED);
      conversionContext.saveDocument();
    }
  }
 
  private void performOrientationWork(String docId, String attachmentName) throws Exception {
    JSONObject doc = dd.getDatabase().getDocument(docId);
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

        if( false == pluginFound ) {
          logger.info("No plugin found for uploaded file class: "+fileClass);
        }
 
        // Update status
        conversionContext.saveDocument();
      }
    }
  }
 
  private void performThumbnailWork(String docId, String attachmentName) throws Exception {
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

        // with legacy documents.
        // In this case, update server work and save document.
        serverDescription.setThumbnailLevel(UploadConstants.SERVER_THUMBNAIL_VALUE);
       
        // Update status
        conversionContext.saveDocument();
       
        logger.info("Updated server thumbnail status");

      } else {
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

        if( false == pluginFound ) {
          logger.info("No plugin found for thumbnail creation, file class: "+fileClass);
        }

        // Update status
        conversionContext.saveDocument();
      }
    }
  }
 
  private void performUploadOriginalImageWork(String docId, String attachmentName) throws Exception {
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

      if( false == pluginFound ) {
        work.setStringAttribute(UploadConstants.UPLOAD_WORK_UPLOAD_ORIGINAL_IMAGE, "No plugin found for thumbnail creation, file class: "+fileClass);
      }

      // Update status
      conversionContext.saveDocument();
    }
  }
 
  private void performRotateWork(String workType, String docId, String attachmentName) throws Exception {
    JSONObject doc = dd.getDatabase().getDocument(docId);
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

      if( false == pluginFound ) {
        work.setStringAttribute(UploadConstants.UPLOAD_WORK_UPLOAD_ORIGINAL_IMAGE, "No plugin found for thumbnail creation, file class: "+fileClass);
      }

      // Update status
      conversionContext.saveDocument();
    }
  }
 
  private void sendVettingNotification(String docId, JSONObject doc, String attachmentName) {
    // Notify that upload is available
View Full Code Here

Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.saveDocument()

        attDescription.setFileClass(fileClass);
      }

      // Update status
      attDescription.setStatus(UploadConstants.UPLOAD_STATUS_ANALYZED);
      conversionContext.saveDocument();
    }
  }

 
  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.