public interface WebCmsImageConnector
WebCmsImage data (the physical files) in an external repository.
This API provides all basic methods that the administration UI needs to upload images, delete images,
and building a simple URL to an image.CloudinaryWebCmsImageConnector,
ImageServerWebCmsImageConnector| Modifier and Type | Field and Description |
|---|---|
static int |
ORIGINAL_HEIGHT |
static int |
ORIGINAL_WIDTH |
| Modifier and Type | Method and Description |
|---|---|
String |
buildImageUrl(WebCmsImage image,
int boxWidth,
int boxHeight)
Builds a URL to render the given image.
|
boolean |
deleteImageData(WebCmsImage image)
Removes the physical data associated with a
WebCmsImage. |
boolean |
saveImageData(WebCmsImage image,
byte[] data)
Associates physical image data with a
WebCmsImage. |
static final int ORIGINAL_WIDTH
static final int ORIGINAL_HEIGHT
boolean saveImageData(WebCmsImage image, byte[] data)
WebCmsImage.
Usually uploads the physical file to some kind of remote repository, and stores
the returned reference using WebCmsImage#setExternalId(String).image - recorddata - actual image fileString buildImageUrl(WebCmsImage image, int boxWidth, int boxHeight)
image - to renderboxWidth - width of the box the image should fit inboxHeight - height of the box the image should fit inboolean deleteImageData(WebCmsImage image)
WebCmsImage.
Usually calls the remote repository to delete the actual image file.image - to remove the physical data fromCopyright © 2020. All rights reserved.