public class ImageServerWebCmsImageConnector extends Object implements WebCmsImageConnector
WebCmsImageConnector using an ImageServer client.ORIGINAL_HEIGHT, ORIGINAL_WIDTH| Constructor and Description |
|---|
ImageServerWebCmsImageConnector() |
| 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. |
public boolean saveImageData(WebCmsImage image, byte[] data)
WebCmsImageConnectorWebCmsImage.
Usually uploads the physical file to some kind of remote repository, and stores
the returned reference using WebCmsImage#setExternalId(String).saveImageData in interface WebCmsImageConnectorimage - recorddata - actual image filepublic String buildImageUrl(WebCmsImage image, int boxWidth, int boxHeight)
WebCmsImageConnectorbuildImageUrl in interface WebCmsImageConnectorimage - to renderboxWidth - width of the box the image should fit inboxHeight - height of the box the image should fit inpublic boolean deleteImageData(WebCmsImage image)
WebCmsImageConnectorWebCmsImage.
Usually calls the remote repository to delete the actual image file.deleteImageData in interface WebCmsImageConnectorimage - to remove the physical data fromCopyright © 2020. All rights reserved.