OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Tests.Common.TestInventoryDataPlugin Class Reference

In memory inventory data plugin for test purposes. Could be another dll when properly filled out and when the mono addin plugin system starts co-operating with the unit test system. Currently no locking since unit tests are single threaded. More...

Inheritance diagram for OpenSim.Tests.Common.TestInventoryDataPlugin:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Tests.Common.TestInventoryDataPlugin:
Collaboration graph
[legend]

Public Member Functions

void Initialise ()
 Default-initialises the plugin More...
 
void Initialise (string connect)
 Initialises the interface More...
 
void Dispose ()
 
List< InventoryFolderBasegetFolderHierarchy (UUID parentID)
 Returns all descendent folders of this folder. Does not return the parent folder itself. More...
 
List< InventoryItemBasegetInventoryInFolder (UUID folderID)
 Returns a list of inventory items contained within the specified folder More...
 
List< InventoryFolderBasegetUserRootFolders (UUID user)
 Returns a list of the root folders within a users inventory More...
 
InventoryFolderBase getUserRootFolder (UUID user)
 Returns the users inventory root folder. More...
 
List< InventoryFolderBasegetInventoryFolders (UUID parentID)
 Returns a list of inventory folders contained in the folder 'parentID' More...
 
InventoryFolderBase getInventoryFolder (UUID folderId)
 Returns a specified inventory folder by its UUID More...
 
InventoryFolderBase queryInventoryFolder (UUID folderID)
 
void addInventoryFolder (InventoryFolderBase folder)
 Adds a new folder specified by folder More...
 
void updateInventoryFolder (InventoryFolderBase folder)
 Updates a folder based on its ID with folder More...
 
void moveInventoryFolder (InventoryFolderBase folder)
 Updates a folder based on its ID with folder More...
 
void deleteInventoryFolder (UUID folderId)
 Deletes a folder. Thie will delete both the folder itself and its contents (items and descendent folders) More...
 
void addInventoryItem (InventoryItemBase item)
 Creates a new inventory item based on item More...
 
void updateInventoryItem (InventoryItemBase item)
 Updates an inventory item with item (updates based on ID) More...
 
void deleteInventoryItem (UUID itemId)
 
InventoryItemBase getInventoryItem (UUID itemId)
 Returns an inventory item by its UUID More...
 
InventoryItemBase queryInventoryItem (UUID item)
 
List< InventoryItemBasefetchActiveGestures (UUID avatarID)
 Returns all activated gesture-items in the inventory of the specified avatar. More...
 

Properties

string Version [get]
 
string Name [get]
 
- Properties inherited from OpenSim.Framework.IPlugin
string Version [get]
 Returns the plugin version More...
 
string Name [get]
 Returns the plugin name More...
 

Detailed Description

In memory inventory data plugin for test purposes. Could be another dll when properly filled out and when the mono addin plugin system starts co-operating with the unit test system. Currently no locking since unit tests are single threaded.

Definition at line 43 of file TestInventoryDataPlugin.cs.

Member Function Documentation

void OpenSim.Tests.Common.TestInventoryDataPlugin.addInventoryFolder ( InventoryFolderBase  folder)
inline

Adds a new folder specified by folder

Parameters
folderThe inventory folder

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 153 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.addInventoryItem ( InventoryItemBase  item)
inline

Creates a new inventory item based on item

Parameters
itemThe item to be created

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 186 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.deleteInventoryFolder ( UUID  folder)
inline

Deletes a folder. Thie will delete both the folder itself and its contents (items and descendent folders)

Parameters
folderThe id of the folder

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 180 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.deleteInventoryItem ( UUID  item)
inline

Parameters
item

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 198 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.Dispose ( )
inline

Definition at line 67 of file TestInventoryDataPlugin.cs.

List<InventoryItemBase> OpenSim.Tests.Common.TestInventoryDataPlugin.fetchActiveGestures ( UUID  avatarID)
inline

Returns all activated gesture-items in the inventory of the specified avatar.

Parameters
avatarIDThe UUID of the avatar
Returns
The list of gestures (InventoryItemBases)

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 217 of file TestInventoryDataPlugin.cs.

List<InventoryFolderBase> OpenSim.Tests.Common.TestInventoryDataPlugin.getFolderHierarchy ( UUID  parentID)
inline

Returns all descendent folders of this folder. Does not return the parent folder itself.

Parameters
parentIDThe folder to get subfolders for
Returns
A list of inventory folders

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 69 of file TestInventoryDataPlugin.cs.

InventoryFolderBase OpenSim.Tests.Common.TestInventoryDataPlugin.getInventoryFolder ( UUID  folder)
inline

Returns a specified inventory folder by its UUID

Parameters
folderThe UUID of the folder to be returned
Returns
A class containing folder information

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 140 of file TestInventoryDataPlugin.cs.

List<InventoryFolderBase> OpenSim.Tests.Common.TestInventoryDataPlugin.getInventoryFolders ( UUID  parentID)
inline

Returns a list of inventory folders contained in the folder 'parentID'

Parameters
parentIDThe folder to get subfolders for
Returns
A list of inventory folders

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 117 of file TestInventoryDataPlugin.cs.

List<InventoryItemBase> OpenSim.Tests.Common.TestInventoryDataPlugin.getInventoryInFolder ( UUID  folderID)
inline

Returns a list of inventory items contained within the specified folder

Parameters
folderIDThe UUID of the target folder
Returns
A List of InventoryItemBase items

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 85 of file TestInventoryDataPlugin.cs.

InventoryItemBase OpenSim.Tests.Common.TestInventoryDataPlugin.getInventoryItem ( UUID  item)
inline

Returns an inventory item by its UUID

Parameters
itemThe UUID of the item to be returned
Returns
A class containing item information

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 204 of file TestInventoryDataPlugin.cs.

InventoryFolderBase OpenSim.Tests.Common.TestInventoryDataPlugin.getUserRootFolder ( UUID  user)
inline

Returns the users inventory root folder.

Parameters
userThe UUID of the user who is having inventory being returned
Returns
Root inventory folder, null if no root inventory folder was found

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 107 of file TestInventoryDataPlugin.cs.

List<InventoryFolderBase> OpenSim.Tests.Common.TestInventoryDataPlugin.getUserRootFolders ( UUID  user)
inline

Returns a list of the root folders within a users inventory

Parameters
userThe user whos inventory is to be searched
Returns
A list of folder objects

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 105 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.Initialise ( )
inline

Default-initialises the plugin

Implements OpenSim.Framework.IPlugin.

Definition at line 65 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.Initialise ( string  connect)
inline

Initialises the interface

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 66 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.moveInventoryFolder ( InventoryFolderBase  folder)
inline

Updates a folder based on its ID with folder

Parameters
folderThe inventory folder

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 174 of file TestInventoryDataPlugin.cs.

InventoryFolderBase OpenSim.Tests.Common.TestInventoryDataPlugin.queryInventoryFolder ( UUID  folder)
inline

Parameters
item

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 148 of file TestInventoryDataPlugin.cs.

InventoryItemBase OpenSim.Tests.Common.TestInventoryDataPlugin.queryInventoryItem ( UUID  item)
inline

Parameters
item

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 212 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.updateInventoryFolder ( InventoryFolderBase  folder)
inline

Updates a folder based on its ID with folder

Parameters
folderThe inventory folder

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 169 of file TestInventoryDataPlugin.cs.

void OpenSim.Tests.Common.TestInventoryDataPlugin.updateInventoryItem ( InventoryItemBase  item)
inline

Updates an inventory item with item (updates based on ID)

Parameters
itemThe updated item

Implements OpenSim.Data.IInventoryDataPlugin.

Definition at line 196 of file TestInventoryDataPlugin.cs.

Property Documentation

string OpenSim.Tests.Common.TestInventoryDataPlugin.Name
get

Definition at line 63 of file TestInventoryDataPlugin.cs.

string OpenSim.Tests.Common.TestInventoryDataPlugin.Version
get

Definition at line 62 of file TestInventoryDataPlugin.cs.


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