Interface CockpitCelumService
-
public interface CockpitCelumServiceService providing the Cockpit framework with Celum specific functionality.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCELUM_CONTAINER_KEYstatic java.lang.StringREQUEST_EVENT_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegergetCelumAssetId(ItemModel asset)java.lang.StringgetCelumUrl(TypedObject celumAsset)Returns the Celum URL of the specified Celum asset.java.lang.StringgetDirectCelumLink(ItemModel item, java.lang.String celumAssetId, java.util.Map<java.lang.String,java.lang.String> params)Returns a link to be used for opening Celum Imagine from within a Cockpit application.java.lang.StringgetDirectCelumLink(java.lang.String celumAssetId, java.util.Map<java.lang.String,java.lang.String> params)Returns a link to be used for opening Celum Imagine from within a Cockpit application.java.lang.StringgetLocalUrl(TypedObject celumAsset)Returns the local URL of the specified Celum asset.java.lang.StringgetOriginalMediaFormat()Gets the original media format.booleanisAssetValid(TypedObject celumAsset)Checks if is asset valid.java.lang.BooleanisCelumAlive()Checks if celum server is alive and responding.booleanisSynchronized(TypedObject celumAsset)Checks if is CelumAsset is synchronized.voidsynchronize(TypedObject celumAsset)Synchronize.voidunSynchronize(TypedObject celumAsset)Unsynchronize CelumAsset.
-
-
-
Field Detail
-
REQUEST_EVENT_PREFIX
static final java.lang.String REQUEST_EVENT_PREFIX
- See Also:
- Constant Field Values
-
CELUM_CONTAINER_KEY
static final java.lang.String CELUM_CONTAINER_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDirectCelumLink
java.lang.String getDirectCelumLink(ItemModel item, java.lang.String celumAssetId, java.util.Map<java.lang.String,java.lang.String> params)
Returns a link to be used for opening Celum Imagine from within a Cockpit application.- Parameters:
item- default search parameters for this item type will be included in returned link (leavenullif no search parameters should be included)celumAssetId- celum asset idparams- custom parameters, some of which are echoed back to the cockpit- Returns:
- the link to be used for opening Celum Imagine
-
getDirectCelumLink
java.lang.String getDirectCelumLink(java.lang.String celumAssetId, java.util.Map<java.lang.String,java.lang.String> params)Returns a link to be used for opening Celum Imagine from within a Cockpit application.- Parameters:
celumAssetId- celum asset idparams- custom parameters, some of which are echoed back to the cockpit- Returns:
- the link to be used for opening Celum Imagine
-
getCelumUrl
java.lang.String getCelumUrl(TypedObject celumAsset) throws java.lang.IllegalArgumentException
Returns the Celum URL of the specified Celum asset.- Parameters:
celumAsset- celum asset- Returns:
- the URL for displaying the Celum asset
- Throws:
java.lang.IllegalArgumentException- ifcelumAssetisnull- See Also:
getLocalUrl(TypedObject)
-
getLocalUrl
java.lang.String getLocalUrl(TypedObject celumAsset) throws java.lang.IllegalArgumentException
Returns the local URL of the specified Celum asset.- Parameters:
celumAsset- celum asset- Returns:
- the URL for displaying the local version of the Celum asset
- Throws:
java.lang.IllegalArgumentException- ifcelumAssetis null- See Also:
getCelumUrl(TypedObject)
-
synchronize
void synchronize(TypedObject celumAsset)
Synchronize.- Parameters:
celumAsset- the celum asset
-
unSynchronize
void unSynchronize(TypedObject celumAsset)
Unsynchronize CelumAsset.- Parameters:
celumAsset- the celum asset
-
isSynchronized
boolean isSynchronized(TypedObject celumAsset) throws java.lang.IllegalArgumentException
Checks if is CelumAsset is synchronized.- Parameters:
celumAsset- the celum asset- Returns:
- true, if is synchronized
- Throws:
java.lang.IllegalArgumentException- the illegal argument exception
-
isAssetValid
boolean isAssetValid(TypedObject celumAsset)
Checks if is asset valid.- Parameters:
celumAsset- the celum asset- Returns:
- true, if is asset valid
-
isCelumAlive
java.lang.Boolean isCelumAlive()
Checks if celum server is alive and responding.- Returns:
- true, if is celum alive
-
getOriginalMediaFormat
java.lang.String getOriginalMediaFormat()
Gets the original media format.- Returns:
- the original media format
-
getCelumAssetId
java.lang.Integer getCelumAssetId(ItemModel asset)
- Parameters:
asset- item model which might be celum asset- Returns:
- celum asset id if given item is existing celum asset or null.
-
-