maxon.DerivedAssetRepositoryDataInterface¶
Description¶
Methods Signature¶
|
Gets called when an asset has been erased. |
|
Gets called when an asset has been stored. |
|
Gets called when an asset has been updated. |
|
Gets called when the base of the asset repository has been changed. |
|
|
|
Gets called when meta data has been stored. |
Methods Definition¶
-
DerivedAssetRepositoryDataInterface.
HandleAssetErased
(asset)¶ Gets called when an asset has been erased.
- Parameters
asset (
maxon.AssetDescription
) – The description of the erased asset version.
-
DerivedAssetRepositoryDataInterface.
HandleAssetStored
(asset)¶ Gets called when an asset has been stored.
- Parameters
asset (
maxon.AssetDescription
) – The description of the new asset version.
-
DerivedAssetRepositoryDataInterface.
HandleAssetUpdated
(asset)¶ Gets called when an asset has been updated.
- Parameters
asset (
maxon.Asset
) – The updated asset.
-
DerivedAssetRepositoryDataInterface.
HandleBaseChanged
(repo, base, added)¶ Gets called when the base of the asset repository has been changed.
- Parameters
repo (
maxon.AssetRepositoryRef
) – The asset repository which owns the derived data.base (
maxon.AssetRepositoryRef
) – The base repository.added (bool) – True if base has been added, False if it has been removed.
-
DerivedAssetRepositoryDataInterface.
HandleDownloadStateChanged
(repository, finished)¶
-
DerivedAssetRepositoryDataInterface.
HandleMetaDataStored
(asset, metaId, kind, prevData, newData)¶ Gets called when meta data has been stored.
- Parameters
asset (
maxon.AssetDescription
) – The asset.metaId (
maxon.InternedId
) – The identifier of the stored meta data attribute.kind (
maxon.AssetMetaDataInterface.KIND
) – The meta data kind.prevData (
maxon.Data
) – The previous value of the attribute (may be empty).newData (
maxon.Data
) – The new value of the attribute.