public class MediaDeliveryCloudManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NAME_MAX_LENGTH |
static java.lang.String |
RENDITION_FORMAT_GIF |
static java.lang.String |
RENDITION_FORMAT_JPEG |
static java.lang.String |
RENDITION_FORMAT_PNG |
static java.lang.String |
RENDITION_FORMAT_TIF |
Modifier and Type | Method and Description |
---|---|
void |
addAllRenditionParameters(Item item,
JSONObject targetObject,
java.lang.String propertyName) |
void |
addMasterImageRegionOfInterest(Item item,
JSONObject targetObject,
java.lang.String propertyName) |
void |
addMasterImageSize(Asset convertedAsset,
JSONObject targetObject,
java.lang.String propertyName) |
AccountInformation |
getAccountInformation() |
MediaDeliveryCloudConfiguration |
getConfiguration() |
java.lang.String |
getImageRenditionURL(Item item,
RenditionParameters parameters)
Returns the URL to the image with the given rendering parameters in the media delivery cloud
|
static MediaDeliveryCloudManager |
getInstance(Server server) |
java.lang.String |
getOriginalAssetURL(Item item)
Returns the URL to the original asset in the media delivery cloud
|
void |
removeMasterImage(java.lang.String imageID)
Deletes the master image and the renditions at the media delivery cloud.
|
void |
removeMasterImage(java.lang.String imageID,
boolean invalidateCDN)
Deletes the master image and the renditions at the media delivery cloud and invalidates the corresponding entries in the CDN.
|
void |
removeOriginalAsset(java.lang.String assetID)
Deletes the original asset at the media delivery cloud.
|
void |
removeOriginalAsset(java.lang.String assetID,
boolean invalidateCDN)
Deletes the original asset at the media delivery cloud.
|
void |
removeWatermarkImage(java.lang.String watermarkImageID)
Deletes the watermark image at the media delivery cloud.
|
void |
syncAccountMetadata()
Update the definitions of automatic crop templates if they have changed.
|
void |
unpublishMasterImage(Item item)
Deactivate the images for publishing.
|
void |
unpublishMasterImage(Item item,
boolean invalidateCDN)
Deactivate the images for publishing.
|
void |
unpublishOriginalAsset(Item item)
Deactivate the original asset for publishing.
|
void |
unpublishOriginalAsset(Item item,
boolean invalidateCDN)
Deactivate the original asset for publishing.
|
void |
updateMasterImageExpirationDate(Item item)
Update the images expiration date for publishing.
|
void |
updateMasterImageMetadata(Item item)
Update the images expiration date for publishing and other metadata such as crop parameters.
|
void |
updateOriginalAssetExpirationDate(Item item)
Update the original asset expiration date for publishing.
|
void |
uploadMasterImage(Item item)
Upload the master image to media delivery cloud.
|
void |
uploadOriginalAsset(Item item)
Upload the original asset to media delivery cloud.
|
void |
uploadWatermarkImage(Asset asset,
java.lang.String watermarkName)
Upload a watermark image to media delivery cloud.
|
void |
uploadWatermarkImage(Asset asset,
java.lang.String watermarkName,
java.lang.String imageID)
Upload a watermark image to media delivery cloud.
|
public static final java.lang.String RENDITION_FORMAT_JPEG
public static final java.lang.String RENDITION_FORMAT_PNG
public static final java.lang.String RENDITION_FORMAT_GIF
public static final java.lang.String RENDITION_FORMAT_TIF
public static final int NAME_MAX_LENGTH
public static MediaDeliveryCloudManager getInstance(Server server)
public MediaDeliveryCloudConfiguration getConfiguration()
public AccountInformation getAccountInformation() throws java.io.IOException
java.io.IOException
public void syncAccountMetadata() throws java.io.IOException
java.io.IOException
public void uploadOriginalAsset(Item item) throws java.io.IOException, UnresolvableAssetReferenceException
item
- The asset record itemjava.io.IOException
UnresolvableAssetReferenceException
public void uploadMasterImage(Item item) throws java.io.IOException
item
- The asset record itemjava.io.IOException
public void uploadWatermarkImage(Asset asset, java.lang.String watermarkName) throws java.io.IOException
asset
- The asset to upload as watermark imagewatermarkName
- The name of the watermark to identifyjava.io.IOException
public void uploadWatermarkImage(Asset asset, java.lang.String watermarkName, java.lang.String imageID) throws java.io.IOException
asset
- The asset to upload as watermark imagewatermarkName
- The name of the watermark to identifyimageID
- The image ID of an existing watermark image to be replaced or null
to create a new image with a new ID.java.io.IOException
public void unpublishOriginalAsset(Item item) throws java.io.IOException
item
- The asset record itemjava.io.IOException
public void unpublishOriginalAsset(Item item, boolean invalidateCDN) throws java.io.IOException
item
- The asset record iteminvalidateCDN
- Specify whether the asset should also immediately be removed from the CDN (Content Delivery Network) cache.java.io.IOException
public void unpublishMasterImage(Item item) throws java.io.IOException
item
- The asset record itemjava.io.IOException
public void unpublishMasterImage(Item item, boolean invalidateCDN) throws java.io.IOException
item
- The asset record iteminvalidateCDN
- Specify whether the master image and all renditions should also be immediately removed from the CDN (Content Delivery Network).java.io.IOException
public java.lang.String getOriginalAssetURL(Item item) throws java.io.IOException
item
- The asset record itemjava.io.IOException
public void addAllRenditionParameters(Item item, JSONObject targetObject, java.lang.String propertyName) throws java.io.IOException, JSONException
java.io.IOException
JSONException
public void addMasterImageRegionOfInterest(Item item, JSONObject targetObject, java.lang.String propertyName) throws java.io.IOException, JSONException
java.io.IOException
JSONException
public void addMasterImageSize(Asset convertedAsset, JSONObject targetObject, java.lang.String propertyName) throws java.io.IOException, JSONException
java.io.IOException
JSONException
public java.lang.String getImageRenditionURL(Item item, RenditionParameters parameters) throws java.io.IOException
item
- The asset record itemparameters
- The rendering parameters to be used when getting the URL resource.java.io.IOException
public void removeOriginalAsset(java.lang.String assetID) throws java.io.IOException
assetID
- The "Media Delivery Cloud Asset ID" field valuejava.io.IOException
public void removeOriginalAsset(java.lang.String assetID, boolean invalidateCDN) throws java.io.IOException
assetID
- The "Media Delivery Cloud Asset ID" field valueinvalidateCDN
- Specify whether the master image and all renditions should also be immediately removed from the CDN (Content Delivery Network).java.io.IOException
public void removeMasterImage(java.lang.String imageID) throws java.io.IOException
imageID
- The "Media Delivery Cloud Image ID" field valuejava.io.IOException
public void removeMasterImage(java.lang.String imageID, boolean invalidateCDN) throws java.io.IOException
imageID
- The "Media Delivery Cloud Image ID" field valueinvalidateCDN
- Specify whether the master image and all renditions should also be immediately removed from the CDN (Content Delivery Network).java.io.IOException
public void removeWatermarkImage(java.lang.String watermarkImageID) throws java.io.IOException
watermarkImageID
- The image ID of the watermark imagejava.io.IOException
public void updateOriginalAssetExpirationDate(Item item) throws java.io.IOException
item
- The asset record itemObjectNotFoundException
- if the Asset ID of the given item does not exist in MDCjava.io.IOException
public void updateMasterImageExpirationDate(Item item) throws java.io.IOException
item
- The asset record itemjava.io.IOException
public void updateMasterImageMetadata(Item item) throws java.io.IOException
item
- The asset record itemjava.io.IOException
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.