C# Class WhiteCore.Services.SQLServices.InventoryService.InventoryService

Inheritance: WhiteCore.Framework.Services.ConnectorBase, IInventoryService, IService
Mostrar archivo Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Property Type Description
_addInventoryItemQueue ListCombiningTimedSaving
_moveInventoryItemQueue ListCombiningTimedSaving
_tempItemCache InventoryItemBase>.Dictionary
m_AllowDelete bool
m_AssetService IAssetService
m_Database IInventoryData
m_LibraryService ILibraryService
m_UserAccountService IUserAccountService

Public Methods

Method Description
AddCacheItemAsync ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : void
AddItem ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, bool doParentFolderCheck ) : bool
AddItemAsync ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, Action success ) : void
CreateUserInventory ( UUID principalID, bool createDefaultItems ) : bool
CreateUserInventory ( UUID principalID, bool createDefaultItems, List &defaultItems ) : bool
DeleteUserInformation ( string name, object param ) : object
FinishedStartup ( ) : void
FixInventory ( IScene scene, string cmd ) : void
FolderExists ( UUID folderID ) : bool
FolderItemExists ( UUID folderID, UUID itemID ) : bool
GetActiveGestures ( UUID principalID ) : List
GetFolderItems ( UUID principalID, UUID folderID ) : List
GetInventorySkeleton ( UUID principalID ) : List
GetOSDItem ( UUID avatarID, UUID itemID ) : OSDArray
GetRootFolders ( UUID principalID ) : List
GetUserFolderID ( UUID principalID, string folderName ) : List
GiveInventoryFolderAsync ( UUID recipientId, UUID senderId, UUID folderId, UUID recipientParentFolderId, GiveFolderParam success ) : void

Give an entire inventory folder from one user to another. The entire contents (including all descendent folders) is given.

GiveInventoryItemAsync ( UUID recipient, UUID senderId, UUID itemId, UUID recipientFolderId, bool doOwnerCheck, GiveItemParam success ) : void

Give an inventory item from one user to another

Initialize ( IConfigSource config, IRegistryCore registry ) : void
InnerGiveInventoryItem ( UUID recipient, UUID senderId, WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, UUID recipientFolderId, bool doOwnerCheck, bool checkTransferPermission ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
ItemExists ( UUID itemID ) : bool
MoveItemsAsync ( UUID agentID, List items, NoParam success ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void

Protected Methods

Method Description
CreateFolder ( UUID principalID, UUID parentID, int type, string name ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
GetSystemFolders ( UUID principalID ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase[]
VerifyRootFolders ( IScene scene, string cmd ) : void

Private Methods

Method Description
AddFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase folder ) : bool
AddItem ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : bool
DeleteFolders ( UUID principalID, List folderIDs ) : bool
DeleteItems ( UUID principalID, List itemIDs ) : bool
ForcePurgeFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase folder ) : bool
GetFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase folder ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
GetFolderByOwnerAndName ( UUID folderOwner, string folderName ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
GetFolderContent ( UUID userID, UUID folderID ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryCollection
GetFolderFolders ( UUID principalID, UUID folderID ) : List
GetFolderForType ( UUID principalID, InventoryType invType, FolderType type ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
GetItem ( UUID userID, UUID inventoryID ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
GetItemAssetID ( UUID userID, UUID inventoryID ) : UUID
GetRootFolder ( UUID principalID ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
MoveFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase folder ) : bool
MoveItems ( UUID principalID, List items ) : bool
ParentIsLinkFolder ( UUID folderID ) : bool
ParentIsTrash ( UUID folderID ) : bool
PurgeFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase folder ) : bool
UpdateAssetIDForItem ( UUID itemID, UUID assetID ) : bool
UpdateFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase folder ) : bool
UpdateItem ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : bool

Method Details

AddCacheItemAsync() public method

public AddCacheItemAsync ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : void
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
return void

AddItem() public method

public AddItem ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, bool doParentFolderCheck ) : bool
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
doParentFolderCheck bool
return bool

AddItemAsync() public method

public AddItemAsync ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, Action success ) : void
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
success Action
return void

CreateFolder() protected method

protected CreateFolder ( UUID principalID, UUID parentID, int type, string name ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
principalID UUID
parentID UUID
type int
name string
return WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

CreateUserInventory() public method

public CreateUserInventory ( UUID principalID, bool createDefaultItems ) : bool
principalID UUID
createDefaultItems bool
return bool

CreateUserInventory() public method

public CreateUserInventory ( UUID principalID, bool createDefaultItems, List &defaultItems ) : bool
principalID UUID
createDefaultItems bool
defaultItems List
return bool

DeleteUserInformation() public method

public DeleteUserInformation ( string name, object param ) : object
name string
param object
return object

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

FixInventory() public method

public FixInventory ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

FolderExists() public method

public FolderExists ( UUID folderID ) : bool
folderID UUID
return bool

FolderItemExists() public method

public FolderItemExists ( UUID folderID, UUID itemID ) : bool
folderID UUID
itemID UUID
return bool

GetActiveGestures() public method

public GetActiveGestures ( UUID principalID ) : List
principalID UUID
return List

GetFolderItems() public method

public GetFolderItems ( UUID principalID, UUID folderID ) : List
principalID UUID
folderID UUID
return List

GetInventorySkeleton() public method

public GetInventorySkeleton ( UUID principalID ) : List
principalID UUID
return List

GetOSDItem() public method

public GetOSDItem ( UUID avatarID, UUID itemID ) : OSDArray
avatarID UUID
itemID UUID
return OSDArray

GetRootFolders() public method

public GetRootFolders ( UUID principalID ) : List
principalID UUID
return List

GetSystemFolders() protected method

protected GetSystemFolders ( UUID principalID ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase[]
principalID UUID
return WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase[]

GetUserFolderID() public method

public GetUserFolderID ( UUID principalID, string folderName ) : List
principalID UUID
folderName string
return List

GiveInventoryFolderAsync() public method

Give an entire inventory folder from one user to another. The entire contents (including all descendent folders) is given.
public GiveInventoryFolderAsync ( UUID recipientId, UUID senderId, UUID folderId, UUID recipientParentFolderId, GiveFolderParam success ) : void
recipientId UUID
senderId UUID ID of the sender of the item
folderId UUID
recipientParentFolderId UUID /// The id of the recipient folder in which the send folder should be placed. If UUID.Zero then the /// recipient folder is the root folder ///
success GiveFolderParam
return void

GiveInventoryItemAsync() public method

Give an inventory item from one user to another
public GiveInventoryItemAsync ( UUID recipient, UUID senderId, UUID itemId, UUID recipientFolderId, bool doOwnerCheck, GiveItemParam success ) : void
recipient UUID
senderId UUID ID of the sender of the item
itemId UUID
recipientFolderId UUID /// The id of the folder in which the copy item should go. If UUID.Zero then the item is placed in the most /// appropriate default folder. ///
doOwnerCheck bool This is for when the item is being given away publically, such as when it is posted on a group notice
success GiveItemParam
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

InnerGiveInventoryItem() public method

public InnerGiveInventoryItem ( UUID recipient, UUID senderId, WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, UUID recipientFolderId, bool doOwnerCheck, bool checkTransferPermission ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
recipient UUID
senderId UUID
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
recipientFolderId UUID
doOwnerCheck bool
checkTransferPermission bool
return WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

ItemExists() public method

public ItemExists ( UUID itemID ) : bool
itemID UUID
return bool

MoveItemsAsync() public method

public MoveItemsAsync ( UUID agentID, List items, NoParam success ) : void
agentID UUID
items List
success NoParam
return void

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

VerifyRootFolders() protected method

protected VerifyRootFolders ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

Property Details

_addInventoryItemQueue protected_oe property

protected ListCombiningTimedSaving _addInventoryItemQueue
return ListCombiningTimedSaving

_moveInventoryItemQueue protected_oe property

protected ListCombiningTimedSaving _moveInventoryItemQueue
return ListCombiningTimedSaving

_tempItemCache protected_oe property

protected Dictionary _tempItemCache
return InventoryItemBase>.Dictionary

m_AllowDelete protected_oe property

protected bool m_AllowDelete
return bool

m_AssetService protected_oe property

protected IAssetService m_AssetService
return IAssetService

m_Database protected_oe property

protected IInventoryData m_Database
return IInventoryData

m_LibraryService protected_oe property

protected ILibraryService m_LibraryService
return ILibraryService

m_UserAccountService protected_oe property

protected IUserAccountService m_UserAccountService
return IUserAccountService