OpenSim::Services::AssetService::AssetService Class Reference

Inheritance diagram for OpenSim::Services::AssetService::AssetService:

OpenSim::Services::AssetService::AssetServiceBase OpenSim::Services::Interfaces::IAssetService OpenSim::Services::Base::ServiceBase OpenSim::Services::HypergridService::HGAssetService

List of all members.

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


Constructor & Destructor Documentation

OpenSim::Services::AssetService::AssetService::AssetService ( IConfigSource  config  )  [inline]


Member Function Documentation

virtual AssetBase OpenSim::Services::AssetService::AssetService::Get ( string  id  )  [inline, virtual]

Get an asset synchronously.

Parameters:
id 
Returns:

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.

Parameters:
id Asset ID
Returns:
The fetched asset, or null if it did not exist in the local cache

Implements OpenSim::Services::Interfaces::IAssetService.

virtual AssetMetadata OpenSim::Services::AssetService::AssetService::GetMetadata ( string  id  )  [inline, virtual]

Get an asset's metadata.

Parameters:
id 
Returns:

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.

Parameters:
id 
Returns:
null if there is no such asset

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.

Parameters:
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
Returns:
True if the id was parseable, false otherwise

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.

Parameters:
asset 
Returns:

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!!

Parameters:
id 
data 
Returns:

Implements OpenSim::Services::Interfaces::IAssetService.

virtual bool OpenSim::Services::AssetService::AssetService::Delete ( string  id  )  [inline, virtual]

Delete an asset.

Parameters:
id 
Returns:

Implements OpenSim::Services::Interfaces::IAssetService.

Reimplemented in OpenSim::Services::HypergridService::HGAssetService.


Member Data Documentation


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

Generated on Sun Feb 12 01:00:59 2012 for OpenSim by  doxygen 1.5.6