Package org.exoplatform.wiki.service
Class ExportThread
java.lang.Object
org.exoplatform.wiki.service.ExportThread
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionExportThread(NoteService noteService, WikiService wikiService, NotesExportService notesExportService, org.exoplatform.social.common.service.HTMLUploadImageProcessor htmlUploadImageProcessor, ExportData exportData, org.exoplatform.commons.file.services.FileService fileService) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetFilesfromContent(NoteToExport note, List<File> files) getNoteToExport(NoteToExport note, int exportId) Recursive method to build the children and parent of a notevoidprocessExport(int exportId, String[] notesToExportIds, boolean exportAll, org.exoplatform.services.security.Identity identity) processImagesForExport(Page note) Process images by creting images found in the contentvoidrun()static FilezipFiles(String zipFileName, List<List<File>> addToZip, NotesExportService notesExportService, int exportId)
-
Constructor Details
-
ExportThread
public ExportThread(NoteService noteService, WikiService wikiService, NotesExportService notesExportService, org.exoplatform.social.common.service.HTMLUploadImageProcessor htmlUploadImageProcessor, ExportData exportData, org.exoplatform.commons.file.services.FileService fileService)
-
-
Method Details
-
cleanUp
- Throws:
IOException
-
zipFiles
public static File zipFiles(String zipFileName, List<List<File>> addToZip, NotesExportService notesExportService, int exportId) throws IOException - Throws:
IOException
-
run
public void run() -
processExport
public void processExport(int exportId, String[] notesToExportIds, boolean exportAll, org.exoplatform.services.security.Identity identity) throws Exception - Throws:
Exception
-
getNoteToExport
public NoteToExport getNoteToExport(NoteToExport note, int exportId) throws WikiException, IOException, InterruptedException Recursive method to build the children and parent of a note- Parameters:
note- get the note details to be exported- Returns:
- Throws:
WikiExceptionIOExceptionInterruptedException
-
processNotesLinkForExport
- Throws:
WikiException
-
getFilesfromContent
- Throws:
WikiException
-
processImagesForExport
Process images by creting images found in the content- Parameters:
note-- Returns:
- content
- Throws:
WikiExceptionIOException
-