OpenSim
|
A de-duplicating asset service. More...
Public Member Functions | |
XAssetService (IConfigSource config) | |
XAssetService (IConfigSource config, string configName) | |
virtual AssetBase | Get (string id) |
Get an asset synchronously. More... | |
virtual AssetBase | GetCached (string id) |
Synchronously fetches an asset from the local cache only. More... | |
virtual AssetMetadata | GetMetadata (string id) |
Get an asset's metadata More... | |
virtual byte[] | GetData (string id) |
Get an asset's data, ignoring the metadata. More... | |
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 More... | |
virtual bool[] | AssetsExist (string[] ids) |
Check if assets exist in the database. More... | |
virtual string | Store (AssetBase asset) |
Creates a new asset More... | |
bool | UpdateContent (string id, byte[] data) |
Update an asset's content More... | |
virtual bool | Delete (string id) |
Delete an asset More... | |
Public Member Functions inherited from OpenSim.Services.AssetService.XAssetServiceBase | |
XAssetServiceBase (IConfigSource config, string configName) | |
Public Member Functions inherited from OpenSim.Services.Base.ServiceBase | |
T | LoadPlugin< T > (string dllName) |
T | LoadPlugin< T > (string dllName, Object[] args) |
T | LoadPlugin< T > (string dllName, string className, Object[] args) |
ServiceBase (IConfigSource config) | |
Static Protected Attributes | |
static XAssetService | m_RootInstance |
Additional Inherited Members | |
Protected Attributes inherited from OpenSim.Services.AssetService.XAssetServiceBase | |
IXAssetDataPlugin | m_Database |
IAssetLoader | m_AssetLoader |
IAssetService | m_ChainedAssetService |
Properties inherited from OpenSim.Services.AssetService.XAssetServiceBase | |
bool | HasChainedAssetService [get] |
A de-duplicating asset service.
Definition at line 45 of file XAssetService.cs.
|
inline |
Definition at line 51 of file XAssetService.cs.
|
inline |
Definition at line 53 of file XAssetService.cs.
|
inlinevirtual |
Check if assets exist in the database.
ids | The assets' IDs |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 180 of file XAssetService.cs.
|
inlinevirtual |
Delete an asset
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 209 of file XAssetService.cs.
|
inlinevirtual |
Get an asset synchronously.
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 94 of file XAssetService.cs.
|
inlinevirtual |
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. 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.). |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 162 of file XAssetService.cs.
|
inlinevirtual |
Synchronously fetches an asset from the local cache only.
id | Asset ID |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 133 of file XAssetService.cs.
|
inlinevirtual |
Get an asset's data, ignoring the metadata.
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 150 of file XAssetService.cs.
|
inlinevirtual |
Get an asset's metadata
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 138 of file XAssetService.cs.
|
inlinevirtual |
Creates a new asset
Returns a random ID if none is passed via the asset argument.
asset |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 186 of file XAssetService.cs.
|
inline |
Update an asset's content
Attachments and bare scripts need this!!
id | |
data |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 204 of file XAssetService.cs.
|
staticprotected |
Definition at line 49 of file XAssetService.cs.