Package org.apache.openmeetings.documents.beans

Examples of org.apache.openmeetings.documents.beans.ConverterProcessResultList.addItem()


        log.debug("isAsIs: " + isAsIs);

        // add outputfolders for profiles
        // if it is a presenation it will be copied to another place
        if (!(canBeConverted || isPdf || isImage || isVideo || isAsIs)) {
          returnError.addItem("wrongType", new ConverterProcessResult("The file type cannot be converted"));
            return returnError;
        }

        File completeName = new File(
          isAsIs ? OmFileHelper.getUploadFilesDir() : OmFileHelper.getUploadTempFilesDir()
View Full Code Here


            log.debug("##### convert it to JPG: ");
            returnError = generateImage.convertImage(newFileSystemName, newFileExtDot, "files",
                    newFileSystemName, false);
        } else if (isAsIs) {
          ConverterProcessResult processThumb = generateThumbs.generateThumb("_thumb_", completeName, 50);
            returnError.addItem("processThumb", processThumb);
        } else if (isVideo) {
          List<ConverterProcessResult> returnList = flvExplorerConverter.startConversion(fileExplorerItemId, completeName.getCanonicalPath());
         
          int i=0;
          for (ConverterProcessResult returnMap : returnList) {
View Full Code Here

        } else if (isVideo) {
          List<ConverterProcessResult> returnList = flvExplorerConverter.startConversion(fileExplorerItemId, completeName.getCanonicalPath());
         
          int i=0;
          for (ConverterProcessResult returnMap : returnList) {
            returnError.addItem("processFLV "+i, returnMap);
          }
         
        }
       
        // has to happen at the end, otherwise it will be overwritten
View Full Code Here

    log.debug("fullProcessing: " + fullProcessing);
    if (fullProcessing) {
      ConverterProcessResult processOpenOffice = doJodConvert(
          fileFullPath, destinationFolder, fileName);
      returnError.addItem("processOpenOffice", processOpenOffice);
      ConverterProcessResult processThumb = generateThumbs
          .generateBatchThumb(new File(destinationFolder, fileName + ".pdf"), destinationFolder, 80, "thumb");
      returnError.addItem("processThumb", processThumb);
      ConverterProcessResult processSWF = generateSWF
          .generateSwf(destinationFolder, destinationFolder, fileName);
View Full Code Here

      ConverterProcessResult processOpenOffice = doJodConvert(
          fileFullPath, destinationFolder, fileName);
      returnError.addItem("processOpenOffice", processOpenOffice);
      ConverterProcessResult processThumb = generateThumbs
          .generateBatchThumb(new File(destinationFolder, fileName + ".pdf"), destinationFolder, 80, "thumb");
      returnError.addItem("processThumb", processThumb);
      ConverterProcessResult processSWF = generateSWF
          .generateSwf(destinationFolder, destinationFolder, fileName);
      returnError.addItem("processSWF", processSWF);
    } else {
View Full Code Here

      ConverterProcessResult processThumb = generateThumbs
          .generateBatchThumb(new File(destinationFolder, fileName + ".pdf"), destinationFolder, 80, "thumb");
      returnError.addItem("processThumb", processThumb);
      ConverterProcessResult processSWF = generateSWF
          .generateSwf(destinationFolder, destinationFolder, fileName);
      returnError.addItem("processSWF", processSWF);
    } else {

      log.debug("-- generateBatchThumb --");

      ConverterProcessResult processThumb = generateThumbs
View Full Code Here

      log.debug("-- generateBatchThumb --");

      ConverterProcessResult processThumb = generateThumbs
          .generateBatchThumb(fileFullPath, destinationFolder, 80, "thumb");
      returnError.addItem("processThumb", processThumb);

      ConverterProcessResult processSWF = generateSWF.generateSwf(
          fileFullPath.getParentFile(), destinationFolder, fileName);
      returnError.addItem("processSWF", processSWF);
    }
View Full Code Here

          .generateBatchThumb(fileFullPath, destinationFolder, 80, "thumb");
      returnError.addItem("processThumb", processThumb);

      ConverterProcessResult processSWF = generateSWF.generateSwf(
          fileFullPath.getParentFile(), destinationFolder, fileName);
      returnError.addItem("processSWF", processSWF);
    }

    // now it should be completed so copy that file to the expected location
    File fileWhereToMove = new File(destinationFolder, inFileName);
    fileWhereToMove.createNewFile();
View Full Code Here

    if (fullProcessing) {
      ConverterProcessResult processXML = CreateLibraryPresentation
          .generateXMLDocument(destinationFolder,
              inFileName, fileName + ".pdf",
              fileName + ".swf");
      returnError.addItem("processXML", processXML);
    } else {
      ConverterProcessResult processXML = CreateLibraryPresentation
          .generateXMLDocument(destinationFolder,
              inFileName, null, fileName + ".swf");
      returnError.addItem("processXML", processXML);
View Full Code Here

      returnError.addItem("processXML", processXML);
    } else {
      ConverterProcessResult processXML = CreateLibraryPresentation
          .generateXMLDocument(destinationFolder,
              inFileName, null, fileName + ".swf");
      returnError.addItem("processXML", processXML);
    }

    return returnError;
  }
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.