OpenSim::Services::Connectors::AssetServicesConnector Class Reference

Inheritance diagram for OpenSim::Services::Connectors::AssetServicesConnector:

OpenSim::Services::Interfaces::IAssetService OpenSim::Region::CoreModules::ServiceConnectorsOut::Asset::RemoteAssetServicesConnector

List of all members.

Public Member Functions

 AssetServicesConnector ()
 AssetServicesConnector (string serverURI)
 AssetServicesConnector (IConfigSource source)
virtual void Initialise (IConfigSource source)
AssetBase Get (string id)
 Get an asset synchronously.
AssetBase GetCached (string id)
 Synchronously fetches an asset from the local cache only.
AssetMetadata GetMetadata (string id)
 Get an asset's metadata.
byte[] GetData (string id)
 Get an asset's data, ignoring the metadata.
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.
string Store (AssetBase asset)
 Creates a new asset.
bool UpdateContent (string id, byte[] data)
 Update an asset's content.
bool Delete (string id)
 Delete an asset.

Protected Member Functions

void SetCache (IImprovedAssetCache cache)


Constructor & Destructor Documentation

OpenSim::Services::Connectors::AssetServicesConnector::AssetServicesConnector (  )  [inline]

OpenSim::Services::Connectors::AssetServicesConnector::AssetServicesConnector ( string  serverURI  )  [inline]

OpenSim::Services::Connectors::AssetServicesConnector::AssetServicesConnector ( IConfigSource  source  )  [inline]


Member Function Documentation

virtual void OpenSim::Services::Connectors::AssetServicesConnector::Initialise ( IConfigSource  source  )  [inline, virtual]

void OpenSim::Services::Connectors::AssetServicesConnector::SetCache ( IImprovedAssetCache  cache  )  [inline, protected]

AssetBase OpenSim::Services::Connectors::AssetServicesConnector::Get ( string  id  )  [inline]

Get an asset synchronously.

Parameters:
id 
Returns:

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

AssetBase OpenSim::Services::Connectors::AssetServicesConnector::GetCached ( string  id  )  [inline]

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.

AssetMetadata OpenSim::Services::Connectors::AssetServicesConnector::GetMetadata ( string  id  )  [inline]

Get an asset's metadata.

Parameters:
id 
Returns:

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

byte [] OpenSim::Services::Connectors::AssetServicesConnector::GetData ( string  id  )  [inline]

Get an asset's data, ignoring the metadata.

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

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

bool OpenSim::Services::Connectors::AssetServicesConnector::Get ( string  id,
Object  sender,
AssetRetrieved  handler 
) [inline]

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.

string OpenSim::Services::Connectors::AssetServicesConnector::Store ( AssetBase  asset  )  [inline]

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::Connectors::AssetServicesConnector::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.

bool OpenSim::Services::Connectors::AssetServicesConnector::Delete ( string  id  )  [inline]

Delete an asset.

Parameters:
id 
Returns:

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


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