Interface HTMLUploadImageProcessor
- All Known Implementing Classes:
HTMLUploadImageProcessorImpl
public interface HTMLUploadImageProcessor
Service to parse an HTML content, extract temporary uploaded files, store them in a permanent location
and replace URLs in the HTML content with the permanent URLs
-
Method Summary
Modifier and TypeMethodDescriptionprocessImages(String content, String locationId, String imagesSubLocationPath) Process the given HTML content, extract temporary uploaded files and replace URLs in the HTML content with the permanent URLsprocessImagesForExport(String content) Process the given HTML content, export Files and replace URLs in the HTML content with files nameprocessSpaceImages(String content, String spaceGroupId, String imagesSubLocationPath) Process the given HTML content, extract temporary uploaded files and replace URLs in the HTML content with the permanent URLsprocessUserImages(String content, String userId, String imagesSubLocationPath) Process the given HTML content, extract temporary uploaded files and replace URLs in the HTML content with the permanent URLsvoiduploadSpaceFile(String filePath, String spaceGroupId, String fileName, String imagesSubLocationPath) voiduploadUserFile(String filePath, String userId, String fileName, String imagesSubLocationPath)
-
Method Details
-
processImages
Process the given HTML content, extract temporary uploaded files and replace URLs in the HTML content with the permanent URLs- Parameters:
content- The HTML contentlocationId- The location to store the images.imagesSubLocationPath- The subpath of the folder under parentNode to store the images. If the nodes of this path do not exist, they are automatically created, only if there are images to store.- Returns:
- The updated HTML content with the permanent images URLs
-
processSpaceImages
Process the given HTML content, extract temporary uploaded files and replace URLs in the HTML content with the permanent URLs- Parameters:
content- The HTML contentspaceGroupId- The space group ID to store the image under it's content.imagesSubLocationPath- The subpath of the folder under parentNode to store the images. If the nodes of this path do not exist, they are automatically created, only if there are images to store.- Returns:
- The updated HTML content with the permanent images URLs
-
processUserImages
Process the given HTML content, extract temporary uploaded files and replace URLs in the HTML content with the permanent URLs- Parameters:
content- The HTML contentuserId- The user ID to store the image under he's content.imagesSubLocationPath- The subpath of the folder under parentNode to store the images. If the nodes of this path do not exist, they are automatically created, only if there are images to store.- Returns:
- The updated HTML content with the permanent images URLs
-
processImagesForExport
Process the given HTML content, export Files and replace URLs in the HTML content with files name- Parameters:
content- The HTML content- Returns:
- The updated HTML content with the images name
-
uploadSpaceFile
-
uploadUserFile
-