NullInventoryData.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. using System;
  2. using System.Collections.Generic;
  3. using OpenMetaverse;
  4. using OpenSim.Framework;
  5. namespace OpenSim.Data.Null
  6. {
  7. /// <summary>
  8. /// This class is completely null.
  9. /// </summary>
  10. public class NullInventoryData : IInventoryDataPlugin
  11. {
  12. public string Version { get { return "1.0.0.0"; } }
  13. public void Initialise()
  14. {
  15. }
  16. public void Dispose()
  17. {
  18. // Do nothing.
  19. }
  20. public string Name
  21. {
  22. get { return "Null Inventory Data Interface"; }
  23. }
  24. public void Initialise(string connect)
  25. {
  26. }
  27. /// <summary>
  28. /// Returns all descendent folders of this folder. Does not return the parent folder itself.
  29. /// </summary>
  30. /// <param name="parentID">The folder to get subfolders for</param>
  31. /// <returns>A list of inventory folders</returns>
  32. public List<InventoryFolderBase> getFolderHierarchy(UUID parentID)
  33. {
  34. return new List<InventoryFolderBase>();
  35. }
  36. /// <summary>
  37. /// Returns a list of inventory items contained within the specified folder
  38. /// </summary>
  39. /// <param name="folderID">The UUID of the target folder</param>
  40. /// <returns>A List of InventoryItemBase items</returns>
  41. public List<InventoryItemBase> getInventoryInFolder(UUID folderID)
  42. {
  43. return new List<InventoryItemBase>();
  44. }
  45. /// <summary>
  46. /// Returns a list of the root folders within a users inventory
  47. /// </summary>
  48. /// <param name="user">The user whos inventory is to be searched</param>
  49. /// <returns>A list of folder objects</returns>
  50. public List<InventoryFolderBase> getUserRootFolders(UUID user)
  51. {
  52. return new List<InventoryFolderBase>();
  53. }
  54. /// <summary>
  55. /// Returns the users inventory root folder.
  56. /// </summary>
  57. /// <param name="user">The UUID of the user who is having inventory being returned</param>
  58. /// <returns>Root inventory folder, null if no root inventory folder was found</returns>
  59. public InventoryFolderBase getUserRootFolder(UUID user)
  60. {
  61. return null;
  62. }
  63. /// <summary>
  64. /// Returns a list of inventory folders contained in the folder 'parentID'
  65. /// </summary>
  66. /// <param name="parentID">The folder to get subfolders for</param>
  67. /// <returns>A list of inventory folders</returns>
  68. public List<InventoryFolderBase> getInventoryFolders(UUID parentID)
  69. {
  70. return new List<InventoryFolderBase>();
  71. }
  72. /// <summary>
  73. /// Returns an inventory item by its UUID
  74. /// </summary>
  75. /// <param name="item">The UUID of the item to be returned</param>
  76. /// <returns>A class containing item information</returns>
  77. public InventoryItemBase getInventoryItem(UUID item)
  78. {
  79. return null;
  80. }
  81. /// <summary>
  82. /// Returns a specified inventory folder by its UUID
  83. /// </summary>
  84. /// <param name="folder">The UUID of the folder to be returned</param>
  85. /// <returns>A class containing folder information</returns>
  86. public InventoryFolderBase getInventoryFolder(UUID folder)
  87. {
  88. return null;
  89. }
  90. /// <summary>
  91. /// Creates a new inventory item based on item
  92. /// </summary>
  93. /// <param name="item">The item to be created</param>
  94. public void addInventoryItem(InventoryItemBase item)
  95. {
  96. }
  97. /// <summary>
  98. /// Updates an inventory item with item (updates based on ID)
  99. /// </summary>
  100. /// <param name="item">The updated item</param>
  101. public void updateInventoryItem(InventoryItemBase item)
  102. {
  103. }
  104. /// <summary>
  105. ///
  106. /// </summary>
  107. /// <param name="item"></param>
  108. public void deleteInventoryItem(UUID item)
  109. {
  110. }
  111. /// <summary>
  112. ///
  113. /// </summary>
  114. /// <param name="item"></param>
  115. public InventoryItemBase queryInventoryItem(UUID item)
  116. {
  117. return null;
  118. }
  119. /// <summary>
  120. ///
  121. /// </summary>
  122. /// <param name="item"></param>
  123. public InventoryFolderBase queryInventoryFolder(UUID folder)
  124. {
  125. return null;
  126. }
  127. /// <summary>
  128. /// Adds a new folder specified by folder
  129. /// </summary>
  130. /// <param name="folder">The inventory folder</param>
  131. public void addInventoryFolder(InventoryFolderBase folder)
  132. {
  133. }
  134. /// <summary>
  135. /// Updates a folder based on its ID with folder
  136. /// </summary>
  137. /// <param name="folder">The inventory folder</param>
  138. public void updateInventoryFolder(InventoryFolderBase folder)
  139. {
  140. }
  141. /// <summary>
  142. /// Updates a folder based on its ID with folder
  143. /// </summary>
  144. /// <param name="folder">The inventory folder</param>
  145. public void moveInventoryFolder(InventoryFolderBase folder)
  146. {
  147. }
  148. /// <summary>
  149. /// Deletes a folder. Thie will delete both the folder itself and its contents (items and descendent folders)
  150. /// </summary>
  151. /// <param name="folder">The id of the folder</param>
  152. public void deleteInventoryFolder(UUID folder)
  153. {
  154. }
  155. /// <summary>
  156. /// Returns all activated gesture-items in the inventory of the specified avatar.
  157. /// </summary>
  158. /// <param name="avatarID">
  159. /// The <see cref="UUID"/> of the avatar
  160. /// </param>
  161. /// <returns>
  162. /// The list of gestures (<see cref="InventoryItemBase"/>s)
  163. /// </returns>
  164. public List<InventoryItemBase> fetchActiveGestures(UUID avatarID)
  165. {
  166. return new List<InventoryItemBase>();
  167. }
  168. }
  169. }