C# Class OpenSim.Services.Connectors.SimianGrid.SimianInventoryServiceConnector

Connects avatar inventories to the SimianGrid backend
Inheritance: IInventoryService, IService
ファイルを表示 Open project: openmetaversefoundation/fortis-opensim Class Usage Examples

Public Methods

Method Description
AddFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool

Add a new folder to the user's inventory

AddItem ( OpenSim.Framework.InventoryItemBase item ) : bool

Add a new item to the user's inventory

AddRegion ( Scene scene ) : void
Close ( ) : void
CreateUserInventory ( UUID userID ) : bool

Create the entire inventory for a given user

DeleteFolders ( UUID userID, List folderIDs ) : bool

Delete an item from the user's inventory

DeleteItems ( UUID userID, List itemIDs ) : bool

Delete an item from the user's inventory

GetActiveGestures ( UUID userID ) : List

Get the active gestures of the agent.

GetAssetPermissions ( UUID userID, UUID assetID ) : int

Get the union of permissions of all inventory items that hold the given assetID.

GetFolder ( OpenSim.Framework.InventoryFolderBase folder ) : OpenSim.Framework.InventoryFolderBase

Get a folder, given by its UUID

GetFolderContent ( UUID userID, UUID folderID ) : OpenSim.Framework.InventoryCollection

Gets everything (folders and items) inside a folder

GetFolderForType ( UUID userID, AssetType type ) : OpenSim.Framework.InventoryFolderBase

Gets the user folder for the given folder-type

GetFolderItems ( UUID userID, UUID folderID ) : List

Gets the items inside a folder

GetInventorySkeleton ( UUID userID ) : List

Gets the skeleton of the inventory -- folders only

GetItem ( OpenSim.Framework.InventoryItemBase item ) : OpenSim.Framework.InventoryItemBase

Get an item, given by its UUID

GetRootFolder ( UUID userID ) : OpenSim.Framework.InventoryFolderBase

Retrieve the root inventory folder for the given user.

HasInventoryForUser ( UUID userID ) : bool

Does the given user have an inventory structure?

Initialise ( IConfigSource source ) : void
MoveFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool

Move an inventory folder to a new location

MoveItems ( UUID ownerID, List items ) : bool
PostInitialise ( ) : void
PurgeFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool

Purge an inventory folder of all its items and subfolders.

RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
SimianInventoryServiceConnector ( ) : System
SimianInventoryServiceConnector ( IConfigSource source ) : System
SimianInventoryServiceConnector ( string url ) : System
UpdateFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool

Update a folder in the user's inventory

UpdateItem ( OpenSim.Framework.InventoryItemBase item ) : bool

Update an item in the user's inventory

Private Methods

Method Description
CommonInit ( IConfigSource source ) : void
FetchGestures ( UUID userID ) : OSDArray
GetFoldersFromResponse ( OSDArray items, UUID baseFolder, bool includeBaseFolder ) : List
GetItemsFromResponse ( OSDArray items ) : List
GetUserInventory ( UUID userID ) : OpenSim.Framework.InventoryCollection
GetUserInventory ( UUID userID, InventoryReceiptCallback callback ) : void
MoveItems ( UUID ownerID, List items, UUID destFolderID ) : bool
SaveGestures ( UUID userID, OSDArray gestures ) : void
UpdateGesture ( UUID userID, UUID itemID, bool enabled ) : void

Method Details

AddFolder() public method

Add a new folder to the user's inventory
public AddFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool
folder OpenSim.Framework.InventoryFolderBase
return bool

AddItem() public method

Add a new item to the user's inventory
public AddItem ( OpenSim.Framework.InventoryItemBase item ) : bool
item OpenSim.Framework.InventoryItemBase
return bool

AddRegion() public method

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

Close() public method

public Close ( ) : void
return void

CreateUserInventory() public method

Create the entire inventory for a given user
public CreateUserInventory ( UUID userID ) : bool
userID UUID
return bool

DeleteFolders() public method

Delete an item from the user's inventory
public DeleteFolders ( UUID userID, List folderIDs ) : bool
userID UUID
folderIDs List
return bool

DeleteItems() public method

Delete an item from the user's inventory
public DeleteItems ( UUID userID, List itemIDs ) : bool
userID UUID
itemIDs List
return bool

GetActiveGestures() public method

Get the active gestures of the agent.
public GetActiveGestures ( UUID userID ) : List
userID UUID
return List

GetAssetPermissions() public method

Get the union of permissions of all inventory items that hold the given assetID.
public GetAssetPermissions ( UUID userID, UUID assetID ) : int
userID UUID
assetID UUID
return int

GetFolder() public method

Get a folder, given by its UUID
public GetFolder ( OpenSim.Framework.InventoryFolderBase folder ) : OpenSim.Framework.InventoryFolderBase
folder OpenSim.Framework.InventoryFolderBase
return OpenSim.Framework.InventoryFolderBase

GetFolderContent() public method

Gets everything (folders and items) inside a folder
public GetFolderContent ( UUID userID, UUID folderID ) : OpenSim.Framework.InventoryCollection
userID UUID
folderID UUID
return OpenSim.Framework.InventoryCollection

GetFolderForType() public method

Gets the user folder for the given folder-type
public GetFolderForType ( UUID userID, AssetType type ) : OpenSim.Framework.InventoryFolderBase
userID UUID
type AssetType
return OpenSim.Framework.InventoryFolderBase

GetFolderItems() public method

Gets the items inside a folder
public GetFolderItems ( UUID userID, UUID folderID ) : List
userID UUID
folderID UUID
return List

GetInventorySkeleton() public method

Gets the skeleton of the inventory -- folders only
public GetInventorySkeleton ( UUID userID ) : List
userID UUID
return List

GetItem() public method

Get an item, given by its UUID
public GetItem ( OpenSim.Framework.InventoryItemBase item ) : OpenSim.Framework.InventoryItemBase
item OpenSim.Framework.InventoryItemBase
return OpenSim.Framework.InventoryItemBase

GetRootFolder() public method

Retrieve the root inventory folder for the given user.
public GetRootFolder ( UUID userID ) : OpenSim.Framework.InventoryFolderBase
userID UUID
return OpenSim.Framework.InventoryFolderBase

HasInventoryForUser() public method

Does the given user have an inventory structure?
public HasInventoryForUser ( UUID userID ) : bool
userID UUID
return bool

Initialise() public method

public Initialise ( IConfigSource source ) : void
source IConfigSource
return void

MoveFolder() public method

Move an inventory folder to a new location
public MoveFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool
folder OpenSim.Framework.InventoryFolderBase A folder containing the details of the new location
return bool

MoveItems() public method

public MoveItems ( UUID ownerID, List items ) : bool
ownerID UUID
items List
return bool

PostInitialise() public method

public PostInitialise ( ) : void
return void

PurgeFolder() public method

Purge an inventory folder of all its items and subfolders.
public PurgeFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool
folder OpenSim.Framework.InventoryFolderBase
return bool

RegionLoaded() public method

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

RemoveRegion() public method

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

SimianInventoryServiceConnector() public method

public SimianInventoryServiceConnector ( ) : System
return System

SimianInventoryServiceConnector() public method

public SimianInventoryServiceConnector ( IConfigSource source ) : System
source IConfigSource
return System

SimianInventoryServiceConnector() public method

public SimianInventoryServiceConnector ( string url ) : System
url string
return System

UpdateFolder() public method

Update a folder in the user's inventory
public UpdateFolder ( OpenSim.Framework.InventoryFolderBase folder ) : bool
folder OpenSim.Framework.InventoryFolderBase
return bool

UpdateItem() public method

Update an item in the user's inventory
public UpdateItem ( OpenSim.Framework.InventoryItemBase item ) : bool
item OpenSim.Framework.InventoryItemBase
return bool