The ToiAssetManagerService interface provides access to locally stored media assets and metadata associated with these assets.
If no local media storage is available, then this service will not be available in the system.
import "ToiAssetManagerService.idl";
Public Member Functions | |
ToiOperationManager | getAssetOperationManager () |
TToiDirectoryId | createDirectory (in TToiDirectoryId parentId, in string title) raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
void | moveDirectory (in TToiDirectoryId dirId, in TToiDirectoryId newParentId) raises (TToiInvalidArgumentException) |
void | setDirectoryProperties (in TToiDirectoryId dirId, in TToiPropertySequence properties) raises (TToiInvalidArgumentException) |
void | removeDirectoryProperties (in TToiDirectoryId dirId, in TToiPropertyIdSequence properties) raises (TToiInvalidArgumentException) |
void | removeDirectory (in TToiDirectoryId dirId, in boolean recursiveFlag, in boolean removeAssetsFlag) raises (TToiInvalidArgumentException, TToiPermissionDeniedException) |
ToiAssetManagerServiceDirectoryInfo | getDirectoryInfo (in TToiDirectoryId dirId) raises (TToiInvalidArgumentException) |
TToiDirectoryIdSequence | getDirectories (in TToiDirectoryId dirId) raises (TToiInvalidArgumentException) |
TToiPropertyIdSequence | getDefinedProperties () |
ToiAssetManagerServicePropertyDefinition | getPropertyDefinition (in TToiPropertyId propertyId) raises (TToiInvalidArgumentException) |
void | createPropertyDefinition (in TToiPropertyId propertyId, in TToiPropertyType type, in boolean hasMultipleValueSupport) raises (TToiInvalidArgumentException) |
void | removePropertyDefinition (in TToiPropertyId propertyId) raises (TToiInvalidArgumentException) |
TToiAssetId | createAsset (in TToiAssetType assetType) raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
void | importAsset (in ToiOperationManager::TToiOperationId operationId, in TToiAssetId assetId, in string uri, in TToiImportPolicy importPolicy) raises (TToiInvalidArgumentException, TToiNoDataException) |
void | removeAsset (in ToiOperationManager::TToiOperationId operationId, in TToiAssetId assetId) raises (TToiInvalidArgumentException, TToiNoDataException, TToiPermissionDeniedException) |
void | copyAsset (in ToiOperationManager::TToiOperationId operationId, in TToiAssetId sourceAssetId, in unsigned long startOffset, in unsigned long duration, in TToiAssetId destinationAssetId) raises (TToiInvalidArgumentException, TToiPermissionDeniedException) |
void | linkAssets (in TToiDirectoryId dirId, in TToiAssetIdSequence assetIds) raises (TToiInvalidArgumentException) |
void | unlinkAssets (in TToiDirectoryId dirId, in TToiAssetIdSequence assetIds) raises (TToiInvalidArgumentException) |
void | runQuery (in ToiOperationManager::TToiOperationId operationId, in TToiQueryConditionSequence queryConditions, in TToiPropertyIdSequence requestedProperties, in TToiSortConditionSequence sortConditions) raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
void | runQueryForDirectory (in ToiOperationManager::TToiOperationId operationId, in TToiDirectoryId directoryId, in TToiQueryConditionSequence queryConditions, in TToiPropertyIdSequence requestedProperties, in TToiSortConditionSequence sortConditions) raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
void | runCountQuery (in ToiOperationManager::TToiOperationId operationId, in TToiQueryConditionSequence queryConditions) raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
ToiMultipleResult | getAssetInfoResult (in ToiOperationManager::TToiOperationId operationId, in unsigned long maxCount) raises (TToiInvalidArgumentException, TToiNoDataException) |
unsigned long | getLongResult (in ToiOperationManager::TToiOperationId operationId) raises (TToiInvalidArgumentException, TToiNoDataException) |
TToiPropertySequence | getProperties (in TToiAssetId assetId, in TToiPropertyIdSequence requestedProperties) raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
TToiPropertySequence | getAllProperties (in TToiAssetId assetId) raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
void | setProperties (in TToiAssetId id, in TToiPropertySequence properties) raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
void | removeProperties (in TToiAssetId id, in TToiPropertyIdSequence properties) raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
void | removeMultiValuedPropertyValue (in TToiAssetId id, in ToiAssetManagerServiceProperty property) raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
void | addEventListener (in long type, in ToiEventListener listener) raises (TToiInvalidArgumentException) |
void | removeEventListener (in long type, in ToiEventListener listener) raises (TToiInvalidArgumentException) |
Public Attributes | |
const TToiDirectoryId | ROOT_DIRECTORY = -1 |
Events | |
const long | ON_ASSETS_ADDED = 300 |
const long | ON_ASSETS_REMOVED = 301 |
const long | ON_ASSETS_CHANGED = 302 |
const long | ON_DIRECTORIES_ADDED = 303 |
const long | ON_DIRECTORIES_REMOVED = 304 |
const long | ON_DIRECTORIES_CHANGED = 305 |
Operation results | |
The result types defined for the Asset Manager operations. See ToiOperationManager for generic result types. | |
const ToiOperationManager::TToiOperationResult | OP_RESULT_ASSET_INFO = 1 |
const ToiOperationManager::TToiOperationResult | OP_RESULT_LONG = 2 |
TToiConditionOperation | |
const TToiConditionOperation | EQUALS = 0 |
const TToiConditionOperation | NOT_EQUAL = 1 |
const TToiConditionOperation | GREATER = 2 |
const TToiConditionOperation | LESS = 3 |
const TToiConditionOperation | GREATER_OR_EQUAL = 4 |
const TToiConditionOperation | LESS_OR_EQUAL = 5 |
const TToiConditionOperation | CONTAINS = 6 |
TToiPropertyType | |
const TToiPropertyType | TYPE_BOOLEAN = 0 |
const TToiPropertyType | TYPE_STRING = 1 |
const TToiPropertyType | TYPE_INTEGER = 2 |
const TToiPropertyType | TYPE_DATE = 3 |
const TToiPropertyType | TYPE_ASSETLINK = 4 |
Property constants | |
const string | PROPERTY_SYSTEM_DURATION = "system.duration" |
const string | PROPERTY_SYSTEM_FILESIZE = "system.filesize" |
const string | PROPERTY_SYSTEM_PLAYBACKURI = "system.playbackuri" |
const string | PROPERTY_SYSTEM_FILENAME = "system.filename" |
const string | PROPERTY_SYSTEM_TYPE = "system.type" |
const string | PROPERTY_SYSTEM_INTEGRITY_STATUS = "system.integritystatus" |
const string | PROPERTY_INFO_TITLE = "info.title" |
const string | PROPERTY_INFO_DATE = "info.date" |
const string | PROPERTY_INFO_DESCRIPTION = "info.description" |
const string | PROPERTY_INFO_LONGDESCRIPTION = "info.longdescription" |
const string | PROPERTY_INFO_CHANNELNAME = "info.channelname" |
const string | PROPERTY_INFO_RECORDINGSTATUS = "info.recordingstatus" |
const string | PROPERTY_INFO_MATURITYRATING = "info.maturityrating" |
const string | PROPERTY_INFO_SHARED = "info.shared" |
const string | PROPERTY_INFO_COVER = "info.cover" |
const string | PROPERTY_INFO_CHILDREN = "info.children" |
TToiAssetType | |
const TToiAssetType | ASSET_PVR = 0 |
const TToiAssetType | ASSET_IMAGE = 1 |
const TToiAssetType | ASSET_AUDIO = 2 |
const TToiAssetType | ASSET_VIDEO = 3 |
TToiAssetIntegrityStatus | |
const TToiAssetIntegrityStatus | INTEGRITY_UNKNOWN = 0 |
const TToiAssetIntegrityStatus | INTEGRITY_OK = 1 |
const TToiAssetIntegrityStatus | INTEGRITY_COULD_NOT_UPGRADE = 2 |
const TToiAssetIntegrityStatus | INTEGRITY_COULD_NOT_REPAIR = 3 |
TToiImportPolicy | |
const TToiImportPolicy | IMPORT_POLICY_COPY = 0 |
const TToiImportPolicy | IMPORT_POLICY_MOVE = 1 |
| |
typedef long | TToiAssetType |
const string | PROPERTY_INFO_LOST_AND_FOUND = "info.lostandfound" |
Public Types | |
typedef long | TToiConditionOperation |
typedef long | TToiQueryId |
typedef string | TToiAssetId |
typedef sequence< TToiAssetId > | TToiAssetIdSequence |
typedef long | TToiPropertyType |
typedef string | TToiPropertyId |
typedef sequence< TToiPropertyId > | TToiPropertyIdSequence |
typedef sequence< string > | TToiPropertyValueSequence |
typedef sequence < ToiAssetManagerServiceProperty > | TToiPropertySequence |
typedef sequence < ToiAssetManagerServiceAssetInfo > | TToiAssetInfoSequence |
typedef long | TToiDirectoryId |
typedef sequence< TToiDirectoryId > | TToiDirectoryIdSequence |
typedef long | TToiAssetIntegrityStatus |
typedef sequence < ToiAssetManagerServiceSortCondition > | TToiSortConditionSequence |
typedef sequence < ToiAssetManagerServiceQueryCondition > | TToiQueryConditionSequence |
typedef long | TToiImportPolicy |
typedef string ToiAssetManagerService::TToiAssetId |
Identifier that uniquely identifies an asset.
typedef sequence< TToiAssetId > ToiAssetManagerService::TToiAssetIdSequence |
Sequence of asset identifiers.
typedef sequence< ToiAssetManagerServiceAssetInfo > ToiAssetManagerService::TToiAssetInfoSequence |
List of ToiAssetManagerServiceAssetInfo structures
typedef long ToiAssetManagerService::TToiAssetIntegrityStatus |
Identifies integrity status of an asset.
typedef long ToiAssetManagerService::TToiAssetType |
Identifies different types of asset. This asset type is provided by the application while creating the asset.
typedef long ToiAssetManagerService::TToiConditionOperation |
The ToiAssetManagerService::TToiConditionOperation enumerates possible operations that can be used to define a query condition.
typedef long ToiAssetManagerService::TToiDirectoryId |
Identifer that uniquely identifies a directory.
typedef sequence< TToiDirectoryId > ToiAssetManagerService::TToiDirectoryIdSequence |
Sequence of directory identifiers.
typedef long ToiAssetManagerService::TToiImportPolicy |
Policy to be applied when importing an asset. Note that not all policies may be valid for all URIs which are imported.
typedef string ToiAssetManagerService::TToiPropertyId |
Identifier for a metadata property.
typedef sequence< TToiPropertyId > ToiAssetManagerService::TToiPropertyIdSequence |
Sequence of property identifiers.
typedef sequence< ToiAssetManagerServiceProperty > ToiAssetManagerService::TToiPropertySequence |
Sequence of properties.
typedef long ToiAssetManagerService::TToiPropertyType |
Different kind of property value types.
typedef sequence< string > ToiAssetManagerService::TToiPropertyValueSequence |
Sequence of property values.
typedef sequence< ToiAssetManagerServiceQueryCondition > ToiAssetManagerService::TToiQueryConditionSequence |
Sequence of query conditions.
typedef long ToiAssetManagerService::TToiQueryId |
Query identifier.
typedef sequence< ToiAssetManagerServiceSortCondition > ToiAssetManagerService::TToiSortConditionSequence |
List of sort conditions. The list is used for sorting asset results and the sort conditions are applied in order.
void ToiEventTarget::addEventListener | ( | in long | type, | |
in ToiEventListener | listener | |||
) | raises (TToiInvalidArgumentException) [inherited] |
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
type | The event type of the event to subscribe to. | |
listener | The JavaScript function that will receive events. |
TInvalidArgumentException | Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice. |
void ToiAssetManagerService::copyAsset | ( | in ToiOperationManager::TToiOperationId | operationId, | |
in TToiAssetId | sourceAssetId, | |||
in unsigned long | startOffset, | |||
in unsigned long | duration, | |||
in TToiAssetId | destinationAssetId | |||
) | raises (TToiInvalidArgumentException, TToiPermissionDeniedException) |
operationId | The operation identifier created by ToiOperationManager | |
sourceAssetId | The asset identifier for the source asset. | |
startOffset | Offset (in milliseconds) relative to the source asset beginning to start the copy operation from. | |
duration | The duration (in milliseconds) to be copied. | |
destinationAssetId | The asset identifier for the destination asset. |
TToiInvalidArgumentException | Raised if
| |
TToiPermissionDeniedException | Raised if the destination asset is locked. |
TToiAssetId ToiAssetManagerService::createAsset | ( | in TToiAssetType | assetType | ) | raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
Creates an asset. If the type is ASSET_PVR, the identifier of the asset can be used with a media recorder to save a media stream to disk.
assetType | The type of asset |
assetId | The identifier of the created asset. |
TToiInvalidArgumentException | Raised if the type is not supported. | |
TToiNotEnoughResourcesException | Raised if the asset could not be created due to missing system resources. |
TToiDirectoryId ToiAssetManagerService::createDirectory | ( | in TToiDirectoryId | parentId, | |
in string | title | |||
) | raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
Creates a new directory.
parentId | The identifier of the parent directory. Use ToiAssetManagerService::ROOT_DIRECTORY to create the top directories. | |
title | The title to use for the directory. |
dirId | The identifier of the created directory. |
TToiInvalidArgumentException | Raised if the title is invalid or already taken, or if the parent identifier is invalid. | |
TToiNotEnoughResourcesException | Raised if the directory could not be created due to missing system resources. |
void ToiAssetManagerService::createPropertyDefinition | ( | in TToiPropertyId | propertyId, | |
in TToiPropertyType | type, | |||
in boolean | hasMultipleValueSupport | |||
) | raises (TToiInvalidArgumentException) |
Creates a new property definition. This method is needed for creating properties that can have multiple values.
propertyId | The identifier of the new property, a unique name. | |
type | The property type. | |
hasMultipleValueSupport | Whether the property can have multiple values. |
TToiInvalidArgumentException | Raised if the name is already in use by a property. |
TToiPropertySequence ToiAssetManagerService::getAllProperties | ( | in TToiAssetId | assetId | ) | raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
Returns all metadata properties for an asset.
assetId | The asset identifier. |
properties | The id/value pairs of all the asset's properties. |
TToiInvalidArgumentException | Raised if the asset identifier is invalid. | |
TToiNoDataException | Raised if no data can be read for the asset. | |
TToiNotEnoughResourcesException | Raised if the needed system resources are not accessible. |
ToiMultipleResult ToiAssetManagerService::getAssetInfoResult | ( | in ToiOperationManager::TToiOperationId | operationId, | |
in unsigned long | maxCount | |||
) | raises (TToiInvalidArgumentException, TToiNoDataException) |
Used to get the query results once the applications recieve ToiOperationOperationResultEvent.
operationId | The operation identifier of ToiAssetManagerService::runQuery(). | |
maxCount | The maximum number of objects the user are interested in, 0 if as many as possible shall be returned. |
objects | The resulting asset information. | |
hasMore | When true, there are some assets info in the cache of asset manager. Additional call to this method required. |
TToiInvalidArgumentException | Raised if operation is unknown or does not support capability results. | |
TToiNoDataException | Raised if no result is available. |
ToiOperationManager ToiAssetManagerService::getAssetOperationManager | ( | ) |
Returns the operation manager that handles asynchronous operations for this asset manager. The procedure of executing asynchronous operations is generic and looks like this:
IToiOperationManager | ||
address | The address to the ToiOperationManager. |
TToiPropertyIdSequence ToiAssetManagerService::getDefinedProperties | ( | ) |
Returns the property identifiers for all defined properties also including all properties that are currently used in the database. This lists usually more properties than only those that have been created by ToiAssetManagerService::createPropertyDefinition().
properties | All defined property identifiers. |
TToiDirectoryIdSequence ToiAssetManagerService::getDirectories | ( | in TToiDirectoryId | dirId | ) | raises (TToiInvalidArgumentException) |
Returns all direct directory children of given directory.
dirId | The directory identifier. If it equals to ROOT all top level directory identifiers will be returned. |
childDirIds | The list of directory identifiers. |
TToiInvalidArgumentException | Raised if the directory identifier is invalid. |
ToiAssetManagerServiceDirectoryInfo ToiAssetManagerService::getDirectoryInfo | ( | in TToiDirectoryId | dirId | ) | raises (TToiInvalidArgumentException) |
Returns directory information.
dirId | The directory identifier. |
info | The directory and its properties. |
TToiInvalidArgumentException | Raised if the asset identifier is invalid. |
unsigned long ToiAssetManagerService::getLongResult | ( | in ToiOperationManager::TToiOperationId | operationId | ) | raises (TToiInvalidArgumentException, TToiNoDataException) |
Used to get the count result once the applications recieve ToiOperationOperationResultEvent.
operationId | The operation identifier. |
value | The resulting long value from the operation. |
TToiInvalidArgumentException | Raised if operation is unknown or does not have a long value as result. | |
TToiNoDataException | Raised if no result is available. |
TToiPropertySequence ToiAssetManagerService::getProperties | ( | in TToiAssetId | assetId, | |
in TToiPropertyIdSequence | requestedProperties | |||
) | raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
Returns metadata property values for an asset.
assetId | The asset identifier. | |
requestedProperties | The identifiers of the wanted properties. |
properties | The id/value pairs of the requested properties. |
TToiInvalidArgumentException | Raised if the asset identifier is invalid. | |
TToiNoDataException | Raised if no data can be read for the asset. | |
TToiNotEnoughResourcesException | Raised if the needed system resources are not accessible. |
ToiAssetManagerServicePropertyDefinition ToiAssetManagerService::getPropertyDefinition | ( | in TToiPropertyId | propertyId | ) | raises (TToiInvalidArgumentException) |
Returns the property definition for a given property identifier.
propertyId | The property identifier. |
definition | The property definition. |
TToiInvalidArgumentException | Raised if the property identifier is invalid. |
void ToiAssetManagerService::importAsset | ( | in ToiOperationManager::TToiOperationId | operationId, | |
in TToiAssetId | assetId, | |||
in string | uri, | |||
in TToiImportPolicy | importPolicy | |||
) | raises (TToiInvalidArgumentException, TToiNoDataException) |
Import an asset from an external source. This is an asynchronous operation and completion of the operation will not provide any result values, i.e. the result will always be ToiOperationManager::OP_RESULT_NONE.
operationId | The operation identifier created by ToiOperationManager. | |
assetId | The identifier of the asset. Currently, only assets of type ASSET_IMAGE are supported. | |
uri | URI to the source to be imported. Currently, only file:// URIs are supported. | |
importPolicy | Policy to be applied when importing source. For file URIs only IMPORT_POLICY_COPY and IMPORT_POLICY_MOVE are valid. |
TToiInvalidArgumentException | Raised if the asset type, uri, or import policy is invalid. | |
TToiNoDataException | Raised if there is a problem reading from uri or updating the new asset. |
void ToiAssetManagerService::linkAssets | ( | in TToiDirectoryId | dirId, | |
in TToiAssetIdSequence | assetIds | |||
) | raises (TToiInvalidArgumentException) |
Links some assets to a directory, i.e. makes the assets visible as a member of the directory.
dirId | The directory to link the assets to. | |
assetIds | The assets to link. |
TToiInvalidArgumentException | Raised if the directory identifier or one of the asset ids is invalid. |
void ToiAssetManagerService::moveDirectory | ( | in TToiDirectoryId | dirId, | |
in TToiDirectoryId | newParentId | |||
) | raises (TToiInvalidArgumentException) |
Moves the directory to a new parent directory.
dirId | The directory identifier. | |
newParentId | The new parent directory identifier. |
TToiInvalidArgumentException | Raised if either the directory identifier or the parent identifier is invalid. |
void ToiAssetManagerService::removeAsset | ( | in ToiOperationManager::TToiOperationId | operationId, | |
in TToiAssetId | assetId | |||
) | raises (TToiInvalidArgumentException, TToiNoDataException, TToiPermissionDeniedException) |
Removes an asset. An asset can only be erased if the asset is not locked for playback or recording. This is an asynchronous operation and completion of the operation will not provide any result values, i.e. the result will always be ToiOperationManager::OP_RESULT_NONE.
operationId | The operation identifier created by ToiOperationManager | |
assetId | The asset identifier. |
TToiInvalidArgumentException | Raised if the asset identifier is invalid. | |
TToiNoDataException | Raised if there is no data to remove. | |
TToiPermissionDeniedException | Raised if the asset is locked. |
void ToiAssetManagerService::removeDirectory | ( | in TToiDirectoryId | dirId, | |
in boolean | recursiveFlag, | |||
in boolean | removeAssetsFlag | |||
) | raises (TToiInvalidArgumentException, TToiPermissionDeniedException) |
Remove a directory. The directory can only be removed if it is empty and does not contain any assets or directories. If the recursive flag is set all assets and directories will also be removed.
dirId | The directory identifier. | |
recursiveFlag | If true all child directories are also removed. | |
removeAssetsFlag | If true all assets in the directories are also removed. This completely removes the asset and thus it will be removed from all directories it is linked to. |
TToiInvalidArgumentException | Raised if the directory identifier is invalid. | |
TToiPermissionDeniedException | Raised if the directory contains directories/assets and the corresponding override flag (recursive/remove) is not set. |
void ToiAssetManagerService::removeDirectoryProperties | ( | in TToiDirectoryId | dirId, | |
in TToiPropertyIdSequence | properties | |||
) | raises (TToiInvalidArgumentException) |
Unsets the properties for a directory.
dirId | The directory identifier. | |
properties | The list of properties. |
TToiInvalidArgumentException | Raised if the directory identifier is invalid. |
void ToiEventTarget::removeEventListener | ( | in long | type, | |
in ToiEventListener | listener | |||
) | raises (TToiInvalidArgumentException) [inherited] |
This method removes an event listener for a specific event.
type | The event type of the event to remove the listener from. | |
listener | The JavaScript function that was previously added as an event listener. |
TInvalidArgumentException | Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener had not previously been added. |
void ToiAssetManagerService::removeMultiValuedPropertyValue | ( | in TToiAssetId | id, | |
in ToiAssetManagerServiceProperty | property | |||
) | raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
Removes a value from a property that is multi-valued.
id | The asset identifier. | |
property | The id/value pair of the property from which the corresponding value should be removed. |
TToiInvalidArgumentException | Raised if the asset identifier is invalid, or if a property identifier is invalid. | |
TToiNoDataException | Raised if no data can be accessed for the asset. | |
TToiNotEnoughResourcesException | Raised if the needed system resources are not accessible. |
void ToiAssetManagerService::removeProperties | ( | in TToiAssetId | id, | |
in TToiPropertyIdSequence | properties | |||
) | raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
Removes metadata properties for an asset. All values are erased whether a property has a single or multiple values, i.e., the property is completely removed.
id | The asset identifier. | |
properties | The properties to unset. |
TToiInvalidArgumentException | Raised if the asset identifier is invalid, or if a property identifier is invalid. | |
TToiNoDataException | Raised if no data can be accessed for the asset. | |
TToiNotEnoughResourcesException | Raised if the needed system resources are not accessible. |
void ToiAssetManagerService::removePropertyDefinition | ( | in TToiPropertyId | propertyId | ) | raises (TToiInvalidArgumentException) |
Removes a user defined property, created using ToiAssetManagerService::createPropertyDefinition().
propertyId | The identifier of the property to remove. |
TToiInvalidArgumentException | Raised if the property identifier is invalid or not a user defined property. |
void ToiAssetManagerService::runCountQuery | ( | in ToiOperationManager::TToiOperationId | operationId, | |
in TToiQueryConditionSequence | queryConditions | |||
) | raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
Starts a query that finds the number of assets that match given conditions. This is an asynchronous operation. When application gets the ToiOperationOperationResultEvent with the operation result ToiAssetManagerService::OP_RESULT_LONG, then the application should get the result by calling the ToiAssetManagerService::getLongResult() function.
operationId | The operation identifier created by ToiOperationManager | |
queryConditions | The conditions that define the query to be executed. Only assets with matching properties will be counted. |
TToiInvalidArgumentException | Raised if any of the conditions are invalid, or raised if the operation identifier is illegal. | |
TToiNotEnoughResourcesException | Raised if it was not enough system resources to perform the query. |
void ToiAssetManagerService::runQuery | ( | in ToiOperationManager::TToiOperationId | operationId, | |
in TToiQueryConditionSequence | queryConditions, | |||
in TToiPropertyIdSequence | requestedProperties, | |||
in TToiSortConditionSequence | sortConditions | |||
) | raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
Starts a query that finds assets that match given conditions. This is an asynchronous operation. When the application receives a ToiOperationOperationResultEvent call with the operation result ToiAssetManagerService::OP_RESULT_ASSET_INFO, then the application should get the results by calling the ToiAssetManagerService::getAssetInfoResult() function. The resulting ToiAssetManagerServiceAssetInfo will only include property values for the requested properties.
operationId | The operation identifier created by ToiOperationManager | |
queryConditions | The conditions that define the query to be executed. Only assets with matching properties will be in the result. | |
requestedProperties | The properties that will be part of the result. | |
sortConditions | Defines the sorting order for the result. |
TToiInvalidArgumentException | Raised if any of the conditions are invalid, or raised if the operation identifier is illegal. | |
TToiNotEnoughResourcesException | Raised if it was not enough system resources to perform the query. |
void ToiAssetManagerService::runQueryForDirectory | ( | in ToiOperationManager::TToiOperationId | operationId, | |
in TToiDirectoryId | directoryId, | |||
in TToiQueryConditionSequence | queryConditions, | |||
in TToiPropertyIdSequence | requestedProperties, | |||
in TToiSortConditionSequence | sortConditions | |||
) | raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException) |
Starts a query that finds assets in the specified directory that match given conditions. This is an asynchronous operation. When the application receives a ToiOperationOperationResultEvent call with the operation result ToiAssetManagerService::OP_RESULT_ASSET_INFO, then the application should get the results by calling the ToiAssetManagerService::getAssetInfoResult() function. The resulting ToiAssetManagerServiceAssetInfo will only include property values for the requested properties.
operationId | The operation identifier created by ToiOperationManager | |
directoryId | The directory which assets will be matched. | |
queryConditions | The conditions that define the query to be executed. Only assets with matching properties will be in the result. | |
requestedProperties | The properties that will be part of the result. | |
sortConditions | Defines the sorting order for the result. |
TToiInvalidArgumentException | Raised if any of the conditions are invalid, or raised if the operation identifier is illegal. | |
TToiNotEnoughResourcesException | Raised if it was not enough system resources to perform the query. |
void ToiAssetManagerService::setDirectoryProperties | ( | in TToiDirectoryId | dirId, | |
in TToiPropertySequence | properties | |||
) | raises (TToiInvalidArgumentException) |
Sets the properties for a directory.
dirId | The directory identifier. | |
properties | The list of properties. |
TToiInvalidArgumentException | Raised if the directory identifier is invalid. |
void ToiAssetManagerService::setProperties | ( | in TToiAssetId | id, | |
in TToiPropertySequence | properties | |||
) | raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException) |
Sets metadata property values for an asset. For properties that supports multiple values, any values set with this method are added to existing values.
id | The asset identifier. | |
properties | The properties to set data for. |
TToiInvalidArgumentException | Raised if the asset identifier is invalid, or if a property identifier is invalid. | |
TToiNoDataException | Raised if no data can be read for the asset. | |
TToiNotEnoughResourcesException | Raised if the needed system resources are not accessible. |
void ToiAssetManagerService::unlinkAssets | ( | in TToiDirectoryId | dirId, | |
in TToiAssetIdSequence | assetIds | |||
) | raises (TToiInvalidArgumentException) |
Removes the links from some assets to a directory.
dirId | The directory to unlink the assets from. | |
assetIds | The assets to unlink. |
TToiInvalidArgumentException | Raised if the directory is identifier. |
Identifier for audio asset type, NOT YET SUPPORTED.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_AUDIO.
Identifier for image asset type
This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_IMAGE.
Identifier for recording asset type
This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_PVR.
Identifier for video (non-recording) asset type, NOT YET SUPPORTED.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_VIDEO.
Contains specified value or matching pattern
This constant can also be accessed from toi.consts.ToiAssetManagerService.CONTAINS.
Equal operation, ==
This constant can also be accessed from toi.consts.ToiAssetManagerService.EQUALS.
Greater operation, >
This constant can also be accessed from toi.consts.ToiAssetManagerService.GREATER.
Greater than or equal operation, >=
This constant can also be accessed from toi.consts.ToiAssetManagerService.GREATER_OR_EQUAL.
Import asset by copying the source. The source is kept.
This constant can also be accessed from toi.consts.ToiAssetManagerService.IMPORT_POLICY_COPY.
Import asset by moving the source. The source is deleted.
This constant can also be accessed from toi.consts.ToiAssetManagerService.IMPORT_POLICY_MOVE.
Asset has been damaged and could not be repaired. The asset can not be played.
This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_COULD_NOT_REPAIR.
Asset seems to be of an old version but could not be upgraded. The asset can not be played.
This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_COULD_NOT_UPGRADE.
Integrity is ok.
This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_OK.
Integrity is unknown.
This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_UNKNOWN.
Less operation, <
This constant can also be accessed from toi.consts.ToiAssetManagerService.LESS.
Less than or equal operation, <=
This constant can also be accessed from toi.consts.ToiAssetManagerService.LESS_OR_EQUAL.
Not equal operation, !=
This constant can also be accessed from toi.consts.ToiAssetManagerService.NOT_EQUAL.
const long ToiAssetManagerService::ON_ASSETS_ADDED = 300 |
This is an Event identifier for ToiAssetManagerAssetsAddedEvent.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSETS_ADDED.
const long ToiAssetManagerService::ON_ASSETS_CHANGED = 302 |
This is an Event identifier for ToiAssetManagerAssetsChangedEvent.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSETS_CHANGED.
const long ToiAssetManagerService::ON_ASSETS_REMOVED = 301 |
This is an Event identifier for ToiAssetManagerAssetsRemovedEvent.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSETS_REMOVED.
const long ToiAssetManagerService::ON_DIRECTORIES_ADDED = 303 |
This is an Event identifier for ToiAssetManagerDirectoriesAddedEvent.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_DIRECTORIES_ADDED.
const long ToiAssetManagerService::ON_DIRECTORIES_CHANGED = 305 |
This is an Event identifier for ToiAssetManagerDirectoriesChangedEvent.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_DIRECTORIES_CHANGED.
const long ToiAssetManagerService::ON_DIRECTORIES_REMOVED = 304 |
This is an Event identifier for ToiAssetManagerDirectoriesRemovedEvent.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_DIRECTORIES_REMOVED.
The asynchronous operation has asset info as result. See ToiAssetManagerService::getAssetInfoResult().
This constant can also be accessed from toi.consts.ToiAssetManagerService.OP_RESULT_ASSET_INFO.
The asynchronous operation has a long value as result. See ToiAssetManagerService::getLongResult().
This constant can also be accessed from toi.consts.ToiAssetManagerService.OP_RESULT_LONG.
const string ToiAssetManagerService::PROPERTY_INFO_CHANNELNAME = "info.channelname" |
Property name for the channel name of a recorded asset.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_CHANNELNAME.
const string ToiAssetManagerService::PROPERTY_INFO_CHILDREN = "info.children" |
Property name for a list of assets which will be removed automatically when the asset is removed. Relevant for all asset types.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_CHILDREN.
const string ToiAssetManagerService::PROPERTY_INFO_COVER = "info.cover" |
Property name for the cover image associated with an asset.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_COVER.
const string ToiAssetManagerService::PROPERTY_INFO_DATE = "info.date" |
Property name for the start time of an asset.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_DATE.
const string ToiAssetManagerService::PROPERTY_INFO_DESCRIPTION = "info.description" |
Property name for the description of an asset.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_DESCRIPTION.
const string ToiAssetManagerService::PROPERTY_INFO_LONGDESCRIPTION = "info.longdescription" |
Property name for an even more detailed description of an asset.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_LONGDESCRIPTION.
const string ToiAssetManagerService::PROPERTY_INFO_LOST_AND_FOUND = "info.lostandfound" |
Property name for the lost and found flag. If this flag is set the asset has been created from a lost asset by the platform. This can happen if the asset has been updated from a legacy version or if the database has been damaged. Relevant for all asset types.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_LOST_AND_FOUND.
const string ToiAssetManagerService::PROPERTY_INFO_MATURITYRATING = "info.maturityrating" |
Property name for the maturity rating of an asset.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_MATURITYRATING.
const string ToiAssetManagerService::PROPERTY_INFO_RECORDINGSTATUS = "info.recordingstatus" |
Property name for the status of a recorded asset. Recommended values are: recording|completed|failed
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_RECORDINGSTATUS.
const string ToiAssetManagerService::PROPERTY_INFO_SHARED = "info.shared" |
Property name for the flag indicating that the asset or directory shall be exposed and shared with other devices in the home network if DMS support is activated.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_SHARED.
const string ToiAssetManagerService::PROPERTY_INFO_TITLE = "info.title" |
Property name for the title of an asset.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_TITLE.
const string ToiAssetManagerService::PROPERTY_SYSTEM_DURATION = "system.duration" |
Property name for the time duration of an asset in seconds. Supported by all asset types except ASSET_IMAGE.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_DURATION.
const string ToiAssetManagerService::PROPERTY_SYSTEM_FILENAME = "system.filename" |
Property name for the file name for imported assets (e.g. images). Supported by all asset types execpt ASSET_PVR.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_FILENAME.
const string ToiAssetManagerService::PROPERTY_SYSTEM_FILESIZE = "system.filesize" |
Property name for the file size of an asset. Supported by all asset types.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_FILESIZE.
const string ToiAssetManagerService::PROPERTY_SYSTEM_INTEGRITY_STATUS = "system.integritystatus" |
Property name for the integrity status of an asset. Supported by all asset types. See ToiAssetManagerService::TToiAssetIntegrityStatus for possible values.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_INTEGRITY_STATUS.
const string ToiAssetManagerService::PROPERTY_SYSTEM_PLAYBACKURI = "system.playbackuri" |
Property name for the URI to use when starting playback of an asset. Supported by all asset types except ASSET_IMAGE.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_PLAYBACKURI.
const string ToiAssetManagerService::PROPERTY_SYSTEM_TYPE = "system.type" |
Property name for the type of an asset. Supported by all asset types. See ToiAssetManagerService::TToiAssetType for possible values.
This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_TYPE.
Identifier for the root directory.
This constant can also be accessed from toi.consts.ToiAssetManagerService.ROOT_DIRECTORY.
An asset identifier.
This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_ASSETLINK.
Value of true/false.
This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_BOOLEAN.
A positive integer value, seconds since the epoch.
This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_DATE.
A signed integer value.
This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_INTEGER.
Any string value.
This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_STRING.