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

Inheritance: WhiteCore.Framework.Services.ConnectorBase, IInventoryService, IService
Afficher le fichier Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Свойство Type Description
_addInventoryItemQueue ListCombiningTimedSaving
_moveInventoryItemQueue ListCombiningTimedSaving
_tempItemCache InventoryItemBase>.Dictionary
m_AllowDelete bool
m_AssetService IAssetService
m_Database IInventoryData
m_LibraryService ILibraryService
m_UserAccountService IUserAccountService

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AddCacheItemAsync ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : void
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
Résultat void

AddItem() public méthode

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

AddItemAsync() public méthode

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

CreateFolder() protected méthode

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

CreateUserInventory() public méthode

public CreateUserInventory ( UUID principalID, bool createDefaultItems ) : bool
principalID UUID
createDefaultItems bool
Résultat bool

CreateUserInventory() public méthode

public CreateUserInventory ( UUID principalID, bool createDefaultItems, List &defaultItems ) : bool
principalID UUID
createDefaultItems bool
defaultItems List
Résultat bool

DeleteUserInformation() public méthode

public DeleteUserInformation ( string name, object param ) : object
name string
param object
Résultat object

FinishedStartup() public méthode

public FinishedStartup ( ) : void
Résultat void

FixInventory() public méthode

public FixInventory ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

FolderExists() public méthode

public FolderExists ( UUID folderID ) : bool
folderID UUID
Résultat bool

FolderItemExists() public méthode

public FolderItemExists ( UUID folderID, UUID itemID ) : bool
folderID UUID
itemID UUID
Résultat bool

GetActiveGestures() public méthode

public GetActiveGestures ( UUID principalID ) : List
principalID UUID
Résultat List

GetFolderItems() public méthode

public GetFolderItems ( UUID principalID, UUID folderID ) : List
principalID UUID
folderID UUID
Résultat List

GetInventorySkeleton() public méthode

public GetInventorySkeleton ( UUID principalID ) : List
principalID UUID
Résultat List

GetOSDItem() public méthode

public GetOSDItem ( UUID avatarID, UUID itemID ) : OSDArray
avatarID UUID
itemID UUID
Résultat OSDArray

GetRootFolders() public méthode

public GetRootFolders ( UUID principalID ) : List
principalID UUID
Résultat List

GetSystemFolders() protected méthode

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

GetUserFolderID() public méthode

public GetUserFolderID ( UUID principalID, string folderName ) : List
principalID UUID
folderName string
Résultat List

GiveInventoryFolderAsync() public méthode

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
Résultat void

GiveInventoryItemAsync() public méthode

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
Résultat void

Initialize() public méthode

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

InnerGiveInventoryItem() public méthode

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
Résultat WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

ItemExists() public méthode

public ItemExists ( UUID itemID ) : bool
itemID UUID
Résultat bool

MoveItemsAsync() public méthode

public MoveItemsAsync ( UUID agentID, List items, NoParam success ) : void
agentID UUID
items List
success NoParam
Résultat void

Start() public méthode

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

VerifyRootFolders() protected méthode

protected VerifyRootFolders ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

Property Details

_addInventoryItemQueue protected_oe property

protected ListCombiningTimedSaving _addInventoryItemQueue
Résultat ListCombiningTimedSaving

_moveInventoryItemQueue protected_oe property

protected ListCombiningTimedSaving _moveInventoryItemQueue
Résultat ListCombiningTimedSaving

_tempItemCache protected_oe property

protected Dictionary _tempItemCache
Résultat InventoryItemBase>.Dictionary

m_AllowDelete protected_oe property

protected bool m_AllowDelete
Résultat bool

m_AssetService protected_oe property

protected IAssetService m_AssetService
Résultat IAssetService

m_Database protected_oe property

protected IInventoryData m_Database
Résultat IInventoryData

m_LibraryService protected_oe property

protected ILibraryService m_LibraryService
Résultat ILibraryService

m_UserAccountService protected_oe property

protected IUserAccountService m_UserAccountService
Résultat IUserAccountService