public interface CockpitCelumDelegate
| Modifier and Type | Method and Description |
|---|---|
void |
createSynchPopup(Component button,
TypedObject celumAsset,
EditorListener listener)
Creates a Celum Asset Synchronization popup dialog to be used in a Cockpit.
|
Integer |
getCelumAssetId(ItemModel asset) |
String |
getCelumLink(ItemModel item,
String celumAssetId,
Map<String,String> params)
Returns a link to be used when opening Celum Imagine from within a Cockpit application.
|
String |
getCelumLink(String celumAssetId,
Map<String,String> params)
Returns a link to be used when opening Celum Imagine from within a Cockpit application.
|
String |
getLocalMediaUrl(TypedObject celumAsset)
Returns the URL of the local version of the Celum asset.
|
String |
getMediaUrl(TypedObject celumAsset)
Returns the URL of the current Celum version of the Celum asset.
|
String |
getOriginalMediaFormat()
Gets the original media format.
|
boolean |
isCelumAssetValid(TypedObject celumAsset)
Checks if is celum asset valid.
|
boolean |
isCelumAvailable()
Returns whether Celum is available and ready to be used.
|
boolean |
isSynchronized(TypedObject celumAsset)
Checks if is synchronized.
|
void |
synchronize(TypedObject celumAsset)
Synchronize celum asset with current image in celum.
|
void |
unSynchronize(TypedObject celumAsset)
Un synchronize.
|
boolean isCelumAvailable()
true if Celum is available, false otherwiseString getCelumLink(ItemModel item, String celumAssetId, Map<String,String> params) throws CelumNotAvailableException
isCelumAvailable() before calling this method.item - default search parameters for this item type will be included in returned link (leave null
if no search parameters should be included)celumAssetId - celum asset ID (leave null if no ID is available)params - custom parameters, some of which are echoed back to the CockpitCelumNotAvailableException - if MAM/Celum is not availableString getCelumLink(String celumAssetId, Map<String,String> params) throws CelumNotAvailableException
isCelumAvailable() before calling this method.celumAssetId - celum asset ID (leave null if no ID is available)params - custom parameters, some of which are echoed back to the CockpitCelumNotAvailableException - if MAM/Celum is not availablevoid createSynchPopup(Component button,
TypedObject celumAsset,
EditorListener listener)
throws CelumNotAvailableException,
IllegalArgumentException
onClick events.button - the button which should open the synchronization dialogcelumAsset - the celum assetlistener - the editor listenerCelumNotAvailableException - if MAM/Celum is not availableIllegalArgumentException - if celumAsset is nullString getMediaUrl(TypedObject celumAsset) throws CelumNotAvailableException, IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - if MAM/Celum is not availableIllegalArgumentException - if celumAsset is nullgetLocalMediaUrl(TypedObject)String getLocalMediaUrl(TypedObject celumAsset) throws CelumNotAvailableException, IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - if MAM/Celum is not availableIllegalArgumentException - if celumAsset is nullgetMediaUrl(TypedObject)boolean isSynchronized(TypedObject celumAsset) throws CelumNotAvailableException, IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionIllegalArgumentException - the illegal argument exceptionvoid synchronize(TypedObject celumAsset) throws CelumNotAvailableException, IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionIllegalArgumentException - the illegal argument exceptionvoid unSynchronize(TypedObject celumAsset) throws CelumNotAvailableException, IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionIllegalArgumentException - the illegal argument exceptionboolean isCelumAssetValid(TypedObject celumAsset) throws CelumNotAvailableException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionString getOriginalMediaFormat() throws CelumNotAvailableException
CelumNotAvailableException - the celum not available exceptionCopyright © 2017 SAP SE. All Rights Reserved.