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.
|
java.lang.Integer |
getCelumAssetId(ItemModel asset) |
java.lang.String |
getCelumLink(ItemModel item,
java.lang.String celumAssetId,
java.util.Map<java.lang.String,java.lang.String> params)
Returns a link to be used when opening Celum Imagine from within a Cockpit application.
|
java.lang.String |
getCelumLink(java.lang.String celumAssetId,
java.util.Map<java.lang.String,java.lang.String> params)
Returns a link to be used when opening Celum Imagine from within a Cockpit application.
|
java.lang.String |
getLocalMediaUrl(TypedObject celumAsset)
Returns the URL of the local version of the Celum asset.
|
java.lang.String |
getMediaUrl(TypedObject celumAsset)
Returns the URL of the current Celum version of the Celum asset.
|
java.lang.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 otherwisejava.lang.String getCelumLink(ItemModel item, java.lang.String celumAssetId, java.util.Map<java.lang.String,java.lang.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 availablejava.lang.String getCelumLink(java.lang.String celumAssetId,
java.util.Map<java.lang.String,java.lang.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,
java.lang.IllegalArgumentException
onClick events.button - the button which should open the synchronization dialogcelumAsset - the celum assetlistener - the editor listenerCelumNotAvailableException - if MAM/Celum is not availablejava.lang.IllegalArgumentException - if celumAsset is nulljava.lang.String getMediaUrl(TypedObject celumAsset) throws CelumNotAvailableException, java.lang.IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - if MAM/Celum is not availablejava.lang.IllegalArgumentException - if celumAsset is nullgetLocalMediaUrl(TypedObject)java.lang.String getLocalMediaUrl(TypedObject celumAsset) throws CelumNotAvailableException, java.lang.IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - if MAM/Celum is not availablejava.lang.IllegalArgumentException - if celumAsset is nullgetMediaUrl(TypedObject)boolean isSynchronized(TypedObject celumAsset) throws CelumNotAvailableException, java.lang.IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionvoid synchronize(TypedObject celumAsset) throws CelumNotAvailableException, java.lang.IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionvoid unSynchronize(TypedObject celumAsset) throws CelumNotAvailableException, java.lang.IllegalArgumentException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionboolean isCelumAssetValid(TypedObject celumAsset) throws CelumNotAvailableException
celumAsset - the celum assetCelumNotAvailableException - the celum not available exceptionjava.lang.String getOriginalMediaFormat()
throws CelumNotAvailableException
CelumNotAvailableException - the celum not available exceptionjava.lang.Integer getCelumAssetId(ItemModel asset)
asset - item model which might be celum assetCopyright © 2018 SAP SE. All Rights Reserved.