OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
OpenSim.Services.Interfaces.IAssetService Interface Reference
Inheritance diagram for OpenSim.Services.Interfaces.IAssetService:
Inheritance graph
[legend]

Public Member Functions

AssetBase Get (string id)
 Get an asset synchronously. More...
 
AssetMetadata GetMetadata (string id)
 Get an asset's metadata More...
 
byte[] GetData (string id)
 Get an asset's data, ignoring the metadata. More...
 
AssetBase GetCached (string id)
 Synchronously fetches an asset from the local cache only. More...
 
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 More...
 
bool[] AssetsExist (string[] ids)
 Check if assets exist in the database. More...
 
string Store (AssetBase asset)
 Creates a new asset More...
 
bool UpdateContent (string id, byte[] data)
 Update an asset's content More...
 
bool Delete (string id)
 Delete an asset More...
 

Detailed Description

Definition at line 35 of file IAssetService.cs.

Member Function Documentation

bool [] OpenSim.Services.Interfaces.IAssetService.AssetsExist ( string[]  ids)
bool OpenSim.Services.Interfaces.IAssetService.Delete ( string  id)
AssetBase OpenSim.Services.Interfaces.IAssetService.Get ( string  id)
bool OpenSim.Services.Interfaces.IAssetService.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

Parameters
idThe asset id
senderRepresents the requester. Passed back via the handler
handlerThe handler to call back once the asset has been retrieved. This will be called back with a null AssetBase if the asset could not be found for some reason (e.g. if it does not exist, if a remote asset service was not contactable, if it is not in the database, etc.).
Returns
True if the id was parseable, false otherwise

Implemented in OpenSim.Services.FSAssetService.FSAssetConnector, OpenSim.Services.Connectors.AssetServicesConnector, OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset.HGAssetBroker, OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset.LocalAssetServicesConnector, OpenSim.Services.Connectors.SimianGrid.SimianAssetServiceConnector, OpenSim.Services.AssetService.XAssetService, OpenSim.Services.Connectors.HGAssetServiceConnector, and OpenSim.Services.AssetService.AssetService.

AssetBase OpenSim.Services.Interfaces.IAssetService.GetCached ( string  id)
byte [] OpenSim.Services.Interfaces.IAssetService.GetData ( string  id)
AssetMetadata OpenSim.Services.Interfaces.IAssetService.GetMetadata ( string  id)
string OpenSim.Services.Interfaces.IAssetService.Store ( AssetBase  asset)
bool OpenSim.Services.Interfaces.IAssetService.UpdateContent ( string  id,
byte[]  data 
)

The documentation for this interface was generated from the following file: