Amazon VERSION 2.0V1 Guía de usuario Pagina 206

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 264
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 205
206
The transaction is final only after the endTransaction( commit ) operation.
A transaction must have a commit method and a cancel method. The cancel method can be used to rollback.
NOTE: Implementing plug-in support for Transactions is optional.
Creating an Asset Plug-in
A Python Asset plug-in is created by making a new Python file in an AssetPlugins sub-directory of a folder in a
KATANA_RESOURCES directory.
NOTE: Asset management plug-ins can also be written in C++. See The C++ API for more on this.
Core Methods
The core methods for an Asset plug-in are:
Handling Asset IDs
buildAssetId()
Serialize asset fields into an Asset ID.
getAssetFields()
Deserialize an Asset ID into asset fields.
isAssetId()
Check if a string is an Asset ID.
Publishing an Asset
createAssetAndPath()
Create an entry for a new asset and optionally pre-publish it. This could have very little in it if your asset
management system does most of its work post creation in postCreateAsset.
postCreateAsset()
Publish the new asset. This could have very little in it if your asset management system does most of its work
immediately when the resource is allocated in createAssetAndPath.
Retrieving an Asset
resolveAsset()
27 ASSET MANAGEMENT SYSTEM PLUG-IN API | CREATING AN ASSET PLUG-IN
Vista de pagina 205
1 2 ... 201 202 203 204 205 206 207 208 209 210 211 ... 263 264

Comentarios a estos manuales

Sin comentarios