Examples of LoadedFile


Examples of ca.carleton.gcrc.upload.LoadedFile

      JSONObject uploadedObj = new JSONObject();
      results.put("uploaded", uploadedObj);
     
      Iterator<LoadedFile> itLoadedFile = uploadedFiles.iterator();
      while( itLoadedFile.hasNext() ) {
        LoadedFile loadedFile = itLoadedFile.next();
       
        logger.info("Loaded file "+loadedFile.getOriginalFileName()+ " to "+loadedFile.getFile().getName());
 
        // Create thread to determine file type
        UploadedFileInfo fileInfo = new UploadedFileInfo();
        fileInfo.setOriginalFilename( loadedFile.getOriginalFileName() );
        fileInfo.setUploadedFile( loadedFile.getFile() );
        ProcessFileThread t = new ProcessFileThread(fileInfo, progressId, parameters, cometChannel, userPrincipal, contributions, progressTracker);
        t.start();

        // Add entry to results
        JSONObject fileObj = new JSONObject();
        fileObj.put("chained", t.getProgressId());
        uploadedObj.put(loadedFile.getFile().getName(),fileObj);
      }
    } else {
      // insert contributions record into database immediately
      ContributionHandler t = new ContributionHandler(parameters, userPrincipal);
      List<String> vec = parameters.get("isUpdate");
View Full Code Here

Examples of ca.carleton.gcrc.upload.LoadedFile

      JSONObject uploadedObj = new JSONObject();
      results.put("uploaded", uploadedObj);
     
      Iterator<LoadedFile> itLoadedFile = uploadedFiles.iterator();
      while( itLoadedFile.hasNext() ) {
        LoadedFile loadedFile = itLoadedFile.next();
       
        logger.info("Loaded file "+loadedFile.getOriginalFileName()+ " to "+loadedFile.getFile().getName());
 
        // Create thread to determine file type
        UploadedFileInfo fileInfo = new UploadedFileInfo();
        fileInfo.setOriginalFilename( loadedFile.getOriginalFileName() );
        fileInfo.setUploadedFile( loadedFile.getFile() );
        ProcessFileThread t = new ProcessFileThread(fileInfo, progressId, parameters, cometChannel, userPrincipal, contributions, progressTracker);
        t.start();

        // Add entry to results
        JSONObject fileObj = new JSONObject();
        fileObj.put("chained", t.getProgressId());
        uploadedObj.put(loadedFile.getFile().getName(),fileObj);
      }
    } else {
      // insert contributions record into database immediately
      ContributionHandler t = new ContributionHandler(parameters, userPrincipal);
      List<String> vec = parameters.get("isUpdate");
View Full Code Here

Examples of ca.carleton.gcrc.upload.LoadedFile

      JSONObject uploadedObj = new JSONObject();
      results.put("uploaded", uploadedObj);
     
      Iterator<LoadedFile> itLoadedFile = uploadedFiles.iterator();
      while( itLoadedFile.hasNext() ) {
        LoadedFile loadedFile = itLoadedFile.next();
       
        logger.info("Loaded file "+loadedFile.getOriginalFileName()+ " to "+loadedFile.getFile().getName());
 
        // Create thread to determine file type
        UploadedFileInfo fileInfo = new UploadedFileInfo();
        fileInfo.setOriginalFilename( loadedFile.getOriginalFileName() );
        fileInfo.setUploadedFile( loadedFile.getFile() );
        ProcessFileThread t = new ProcessFileThread(fileInfo, progressId, parameters, cometChannel, userPrincipal, contributions);
        t.start();

        // Add entry to results
        JSONObject fileObj = new JSONObject();
        fileObj.put("chained", t.getProgressId());
        uploadedObj.put(loadedFile.getFile().getName(),fileObj);
      }
    } else {
      // insert contributions record into database immediately
      ContributionHandler t = new ContributionHandler(parameters, userPrincipal);
      List<String> vec = parameters.get("isUpdate");
View Full Code Here

Examples of ca.carleton.gcrc.upload.LoadedFile

      JSONObject uploadedObj = new JSONObject();
      results.put("uploaded", uploadedObj);
     
      Iterator<LoadedFile> itLoadedFile = uploadedFiles.iterator();
      while( itLoadedFile.hasNext() ) {
        LoadedFile loadedFile = itLoadedFile.next();
       
        logger.info("Loaded file "+loadedFile.getOriginalFileName()+ " to "+loadedFile.getFile().getName());
 
        // Create thread to determine file type
        UploadedFileInfo fileInfo = new UploadedFileInfo();
        fileInfo.setOriginalFilename( loadedFile.getOriginalFileName() );
        fileInfo.setUploadedFile( loadedFile.getFile() );
        ProcessFileThread t = new ProcessFileThread(fileInfo, progressId, parameters, cometChannel, userPrincipal, contributions, progressTracker);
        t.start();

        // Add entry to results
        JSONObject fileObj = new JSONObject();
        fileObj.put("chained", t.getProgressId());
        uploadedObj.put(loadedFile.getFile().getName(),fileObj);
      }
    } else {
      // insert contributions record into database immediately
      ContributionHandler t = new ContributionHandler(parameters, userPrincipal);
      List<String> vec = parameters.get("isUpdate");
View Full Code Here

Examples of ca.carleton.gcrc.upload.LoadedFile

      JSONObject uploadedObj = new JSONObject();
      results.put("uploaded", uploadedObj);
     
      Iterator<LoadedFile> itLoadedFile = uploadedFiles.iterator();
      while( itLoadedFile.hasNext() ) {
        LoadedFile loadedFile = itLoadedFile.next();
       
        logger.info("Loaded file "+loadedFile.getOriginalFileName()+ " to "+loadedFile.getFile().getName());
 
        // Create thread to determine file type
        UploadedFileInfo fileInfo = new UploadedFileInfo();
        fileInfo.setOriginalFilename( loadedFile.getOriginalFileName() );
        fileInfo.setUploadedFile( loadedFile.getFile() );
        ProcessFileThread t = new ProcessFileThread(fileInfo, progressId, parameters, cometChannel, userPrincipal, contributions, progressTracker);
        t.start();

        // Add entry to results
        JSONObject fileObj = new JSONObject();
        fileObj.put("chained", t.getProgressId());
        uploadedObj.put(loadedFile.getFile().getName(),fileObj);
      }
    } else {
      // insert contributions record into database immediately
      ContributionHandler t = new ContributionHandler(parameters, userPrincipal);
      List<String> vec = parameters.get("isUpdate");
View Full Code Here

Examples of ca.carleton.gcrc.upload.LoadedFile

      JSONObject uploadedObj = new JSONObject();
      results.put("uploaded", uploadedObj);
     
      Iterator<LoadedFile> itLoadedFile = uploadedFiles.iterator();
      while( itLoadedFile.hasNext() ) {
        LoadedFile loadedFile = itLoadedFile.next();
       
        logger.info("Loaded file "+loadedFile.getOriginalFileName()+ " to "+loadedFile.getFile().getName());
 
        // Create thread to determine file type
        UploadedFileInfo fileInfo = new UploadedFileInfo();
        fileInfo.setOriginalFilename( loadedFile.getOriginalFileName() );
        fileInfo.setUploadedFile( loadedFile.getFile() );
        ProcessFileThread t = new ProcessFileThread(fileInfo, progressId, parameters, cometChannel, userPrincipal, contributions, progressTracker);
        t.start();

        // Add entry to results
        JSONObject fileObj = new JSONObject();
        fileObj.put("chained", t.getProgressId());
        uploadedObj.put(loadedFile.getFile().getName(),fileObj);
      }
    } else {
      // insert contributions record into database immediately
      ContributionHandler t = new ContributionHandler(parameters, userPrincipal);
      List<String> vec = parameters.get("isUpdate");
View Full Code Here

Examples of tv.porst.swfretools.dissector.gui.main.models.LoadedFile

    if (node == null) {
      throw new IllegalArgumentException("Node argument must not be null.");
    }

    final LoadedFile loadedFile = FlashTreeHelpers.getLoadedFile(node);

    if (node instanceof FlashFileNode) {
      final FlashFileNodeMenu menu = new FlashFileNodeMenu(SwingUtilities.getWindowAncestor(tree), loadedFile);

      menu.show(tree, x, y);
View Full Code Here

Examples of tv.porst.swfretools.dissector.gui.main.models.LoadedFile

   * @param file The file to open.
   */
  public static void openFile(final FlashTree tree, final FileModel model, final File file) {

    try {
      final LoadedFile loadedFile = model.openFile(file);

      // After loading the file, the new node in the tree should
      // be selected. This is not done in the event handler because
      // in the future there will be other ways to load files and
      // those should not display the node selection behavior.
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.