public class HTMLUploadImageProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IP_REGEX |
static String |
URL_OR_URI_REGEX |
| Constructor and Description |
|---|
HTMLUploadImageProcessor(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.upload.UploadService uploadService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.cms.link.LinkManager linkManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRepositoryName() |
String |
processImages(String content,
javax.jcr.Node parentNode,
String imagesSubFolderPath)
Process the given HTML content, extract temporary uploaded files, store them in a permanent location
and replace URLs in the HTML content with the permanent URLs
|
public static final String IP_REGEX
public static final String URL_OR_URI_REGEX
public HTMLUploadImageProcessor(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.upload.UploadService uploadService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.cms.link.LinkManager linkManager)
public String processImages(String content, javax.jcr.Node parentNode, String imagesSubFolderPath) throws Exception
content - The HTML contentparentNode - The parent node to store the images. This node must exist.imagesSubFolderPath - 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.Exceptionpublic String getRepositoryName()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.