
Public Member Functions | |
| AssetService (IConfigSource config) | |
| virtual AssetBase | Get (string id) |
| Get an asset synchronously. | |
| virtual AssetBase | GetCached (string id) |
| Synchronously fetches an asset from the local cache only. | |
| virtual AssetMetadata | GetMetadata (string id) |
| Get an asset's metadata. | |
| virtual byte[] | GetData (string id) |
| Get an asset's data, ignoring the metadata. | |
| virtual bool | Get (string id, Object sender, AssetRetrieved handler) |
| Get an asset synchronously or asynchronously (depending on whether it is locally cached) and fire a callback with the fetched asset. | |
| virtual string | Store (AssetBase asset) |
| Creates a new asset. | |
| bool | UpdateContent (string id, byte[] data) |
| Update an asset's content. | |
| virtual bool | Delete (string id) |
| Delete an asset. | |
Static Protected Attributes | |
| static AssetService | m_RootInstance |
| OpenSim::Services::AssetService::AssetService::AssetService | ( | IConfigSource | config | ) | [inline] |
| virtual AssetBase OpenSim::Services::AssetService::AssetService::Get | ( | string | id | ) | [inline, virtual] |
Get an asset synchronously.
| id |
Implements OpenSim::Services::Interfaces::IAssetService.
Reimplemented in OpenSim::Services::HypergridService::HGAssetService.
| virtual AssetBase OpenSim::Services::AssetService::AssetService::GetCached | ( | string | id | ) | [inline, virtual] |
Synchronously fetches an asset from the local cache only.
| id | Asset ID |
Implements OpenSim::Services::Interfaces::IAssetService.
| virtual AssetMetadata OpenSim::Services::AssetService::AssetService::GetMetadata | ( | string | id | ) | [inline, virtual] |
Get an asset's metadata.
| id |
Implements OpenSim::Services::Interfaces::IAssetService.
Reimplemented in OpenSim::Services::HypergridService::HGAssetService.
| virtual byte [] OpenSim::Services::AssetService::AssetService::GetData | ( | string | id | ) | [inline, virtual] |
Get an asset's data, ignoring the metadata.
| id |
Implements OpenSim::Services::Interfaces::IAssetService.
Reimplemented in OpenSim::Services::HypergridService::HGAssetService.
| virtual bool OpenSim::Services::AssetService::AssetService::Get | ( | string | id, | |
| Object | sender, | |||
| AssetRetrieved | handler | |||
| ) | [inline, virtual] |
Get an asset synchronously or asynchronously (depending on whether it is locally cached) and fire a callback with the fetched asset.
| id | The asset id | |
| sender | Represents the requester. Passed back via the handler | |
| handler | The handler to call back once the asset has been retrieved |
Implements OpenSim::Services::Interfaces::IAssetService.
| virtual string OpenSim::Services::AssetService::AssetService::Store | ( | AssetBase | asset | ) | [inline, virtual] |
Creates a new asset.
Returns a random ID if none is passed via the asset argument.
| asset |
Implements OpenSim::Services::Interfaces::IAssetService.
| bool OpenSim::Services::AssetService::AssetService::UpdateContent | ( | string | id, | |
| byte[] | data | |||
| ) | [inline] |
Update an asset's content.
Attachments and bare scripts need this!!
| id | ||
| data |
Implements OpenSim::Services::Interfaces::IAssetService.
| virtual bool OpenSim::Services::AssetService::AssetService::Delete | ( | string | id | ) | [inline, virtual] |
Delete an asset.
| id |
Implements OpenSim::Services::Interfaces::IAssetService.
Reimplemented in OpenSim::Services::HypergridService::HGAssetService.
AssetService OpenSim::Services::AssetService::AssetService::m_RootInstance [static, protected] |
1.5.6