C# Класс WhiteCore.Services.SQLServices.InventoryService.InventoryService

Наследование: WhiteCore.Framework.Services.ConnectorBase, IInventoryService, IService
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_addInventoryItemQueue ListCombiningTimedSaving
_moveInventoryItemQueue ListCombiningTimedSaving
_tempItemCache InventoryItemBase>.Dictionary
m_AllowDelete bool
m_AssetService IAssetService
m_Database IInventoryData
m_LibraryService ILibraryService
m_UserAccountService IUserAccountService

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddCacheItemAsync() публичный Метод

public AddCacheItemAsync ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : void
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
Результат void

AddItem() публичный Метод

public AddItem ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, bool doParentFolderCheck ) : bool
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
doParentFolderCheck bool
Результат bool

AddItemAsync() публичный Метод

public AddItemAsync ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item, Action success ) : void
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
success Action
Результат void

CreateFolder() защищенный Метод

protected CreateFolder ( UUID principalID, UUID parentID, int type, string name ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
principalID UUID
parentID UUID
type int
name string
Результат WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

CreateUserInventory() публичный Метод

public CreateUserInventory ( UUID principalID, bool createDefaultItems ) : bool
principalID UUID
createDefaultItems bool
Результат bool

CreateUserInventory() публичный Метод

public CreateUserInventory ( UUID principalID, bool createDefaultItems, List &defaultItems ) : bool
principalID UUID
createDefaultItems bool
defaultItems List
Результат bool

DeleteUserInformation() публичный Метод

public DeleteUserInformation ( string name, object param ) : object
name string
param object
Результат object

FinishedStartup() публичный Метод

public FinishedStartup ( ) : void
Результат void

FixInventory() публичный Метод

public FixInventory ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

FolderExists() публичный Метод

public FolderExists ( UUID folderID ) : bool
folderID UUID
Результат bool

FolderItemExists() публичный Метод

public FolderItemExists ( UUID folderID, UUID itemID ) : bool
folderID UUID
itemID UUID
Результат bool

GetActiveGestures() публичный Метод

public GetActiveGestures ( UUID principalID ) : List
principalID UUID
Результат List

GetFolderItems() публичный Метод

public GetFolderItems ( UUID principalID, UUID folderID ) : List
principalID UUID
folderID UUID
Результат List

GetInventorySkeleton() публичный Метод

public GetInventorySkeleton ( UUID principalID ) : List
principalID UUID
Результат List

GetOSDItem() публичный Метод

public GetOSDItem ( UUID avatarID, UUID itemID ) : OSDArray
avatarID UUID
itemID UUID
Результат OSDArray

GetRootFolders() публичный Метод

public GetRootFolders ( UUID principalID ) : List
principalID UUID
Результат List

GetSystemFolders() защищенный Метод

protected GetSystemFolders ( UUID principalID ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase[]
principalID UUID
Результат WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase[]

GetUserFolderID() публичный Метод

public GetUserFolderID ( UUID principalID, string folderName ) : List
principalID UUID
folderName string
Результат List

GiveInventoryFolderAsync() публичный Метод

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
Результат void

GiveInventoryItemAsync() публичный Метод

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
Результат void

Initialize() публичный Метод

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Результат void

InnerGiveInventoryItem() публичный Метод

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
Результат WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

ItemExists() публичный Метод

public ItemExists ( UUID itemID ) : bool
itemID UUID
Результат bool

MoveItemsAsync() публичный Метод

public MoveItemsAsync ( UUID agentID, List items, NoParam success ) : void
agentID UUID
items List
success NoParam
Результат void

Start() публичный Метод

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Результат void

VerifyRootFolders() защищенный Метод

protected VerifyRootFolders ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

Описание свойств

_addInventoryItemQueue защищенное свойство

protected ListCombiningTimedSaving _addInventoryItemQueue
Результат ListCombiningTimedSaving

_moveInventoryItemQueue защищенное свойство

protected ListCombiningTimedSaving _moveInventoryItemQueue
Результат ListCombiningTimedSaving

_tempItemCache защищенное свойство

protected Dictionary _tempItemCache
Результат InventoryItemBase>.Dictionary

m_AllowDelete защищенное свойство

protected bool m_AllowDelete
Результат bool

m_AssetService защищенное свойство

protected IAssetService m_AssetService
Результат IAssetService

m_Database защищенное свойство

protected IInventoryData m_Database
Результат IInventoryData

m_LibraryService защищенное свойство

protected ILibraryService m_LibraryService
Результат ILibraryService

m_UserAccountService защищенное свойство

protected IUserAccountService m_UserAccountService
Результат IUserAccountService