Package org.exoplatform.wiki.service
Class ExportThread
- java.lang.Object
-
- org.exoplatform.wiki.service.ExportThread
-
-
Constructor Summary
Constructors Constructor Description ExportThread(NoteService noteService, WikiService wikiService, NotesExportService notesExportService, org.exoplatform.social.common.service.HTMLUploadImageProcessor htmlUploadImageProcessor, ExportData exportData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcleanUp(File file)List<File>getFilesfromContent(NoteToExport note, List<File> files, String userId)NoteToExportgetNoteToExport(NoteToExport note, int exportId, org.exoplatform.services.security.Identity identity)Recursive method to build the children and parent of a notevoidprocessExport(int exportId, String[] notesToExportIds, boolean exportAll, org.exoplatform.services.security.Identity identity)StringprocessImagesForExport(Page note)Process images by creting images found in the contentStringprocessNotesLinkForExport(NoteToExport note)voidrun()static FilezipFiles(String zipFileName, List<File> addToZip, NotesExportService notesExportService, int exportId)
-
-
-
Constructor Detail
-
ExportThread
public ExportThread(NoteService noteService, WikiService wikiService, NotesExportService notesExportService, org.exoplatform.social.common.service.HTMLUploadImageProcessor htmlUploadImageProcessor, ExportData exportData)
-
-
Method Detail
-
cleanUp
public static void cleanUp(File file) throws IOException
- Throws:
IOException
-
zipFiles
public static File zipFiles(String zipFileName, List<File> addToZip, NotesExportService notesExportService, int exportId) throws IOException
- Throws:
IOException
-
processExport
public void processExport(int exportId, String[] notesToExportIds, boolean exportAll, org.exoplatform.services.security.Identity identity) throws IOException- Throws:
IOException
-
getNoteToExport
public NoteToExport getNoteToExport(NoteToExport note, int exportId, org.exoplatform.services.security.Identity identity) 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
public String processNotesLinkForExport(NoteToExport note) throws WikiException
- Throws:
WikiException
-
getFilesfromContent
public List<File> getFilesfromContent(NoteToExport note, List<File> files, String userId) throws WikiException
- Throws:
WikiException
-
processImagesForExport
public String processImagesForExport(Page note) throws WikiException, IOException
Process images by creting images found in the content- Parameters:
note-- Returns:
- content
- Throws:
WikiExceptionIOException
-
-