diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs b/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs index 49589fd..e1e1838 100644 --- a/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs +++ b/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs | |||
@@ -65,7 +65,7 @@ namespace OpenSim.Region.CoreModules.Framework.Library | |||
65 | { | 65 | { |
66 | InventoryFolderImpl folder = null; | 66 | InventoryFolderImpl folder = null; |
67 | InventoryCollection inv = new InventoryCollection(); | 67 | InventoryCollection inv = new InventoryCollection(); |
68 | inv.UserID = m_Library.Owner; | 68 | inv.OwnerID = m_Library.Owner; |
69 | 69 | ||
70 | if (folderID != m_Library.ID) | 70 | if (folderID != m_Library.ID) |
71 | { | 71 | { |
@@ -87,6 +87,34 @@ namespace OpenSim.Region.CoreModules.Framework.Library | |||
87 | return inv; | 87 | return inv; |
88 | } | 88 | } |
89 | 89 | ||
90 | public virtual InventoryCollection[] GetMultipleFoldersContent(UUID principalID, UUID[] folderIDs) | ||
91 | { | ||
92 | InventoryCollection[] invColl = new InventoryCollection[folderIDs.Length]; | ||
93 | int i = 0; | ||
94 | foreach (UUID fid in folderIDs) | ||
95 | { | ||
96 | invColl[i++] = GetFolderContent(principalID, fid); | ||
97 | } | ||
98 | |||
99 | return invColl; | ||
100 | } | ||
101 | |||
102 | public virtual InventoryItemBase[] GetMultipleItems(UUID principalID, UUID[] itemIDs) | ||
103 | { | ||
104 | InventoryItemBase[] itemColl = new InventoryItemBase[itemIDs.Length]; | ||
105 | int i = 0; | ||
106 | InventoryItemBase item = new InventoryItemBase(); | ||
107 | item.Owner = principalID; | ||
108 | foreach (UUID fid in itemIDs) | ||
109 | { | ||
110 | item.ID = fid; | ||
111 | itemColl[i++] = GetItem(item); | ||
112 | } | ||
113 | |||
114 | return itemColl; | ||
115 | } | ||
116 | |||
117 | |||
90 | /// <summary> | 118 | /// <summary> |
91 | /// Add a new folder to the user's inventory | 119 | /// Add a new folder to the user's inventory |
92 | /// </summary> | 120 | /// </summary> |
@@ -142,28 +170,12 @@ namespace OpenSim.Region.CoreModules.Framework.Library | |||
142 | public List<InventoryFolderBase> GetInventorySkeleton(UUID userId) { return null; } | 170 | public List<InventoryFolderBase> GetInventorySkeleton(UUID userId) { return null; } |
143 | 171 | ||
144 | /// <summary> | 172 | /// <summary> |
145 | /// Synchronous inventory fetch. | ||
146 | /// </summary> | ||
147 | /// <param name="userID"></param> | ||
148 | /// <returns></returns> | ||
149 | public InventoryCollection GetUserInventory(UUID userID) { return null; } | ||
150 | |||
151 | /// <summary> | ||
152 | /// Request the inventory for a user. This is an asynchronous operation that will call the callback when the | ||
153 | /// inventory has been received | ||
154 | /// </summary> | ||
155 | /// <param name="userID"></param> | ||
156 | /// <param name="callback"></param> | ||
157 | public void GetUserInventory(UUID userID, InventoryReceiptCallback callback) { } | ||
158 | |||
159 | |||
160 | /// <summary> | ||
161 | /// Gets the user folder for the given folder-type | 173 | /// Gets the user folder for the given folder-type |
162 | /// </summary> | 174 | /// </summary> |
163 | /// <param name="userID"></param> | 175 | /// <param name="userID"></param> |
164 | /// <param name="type"></param> | 176 | /// <param name="type"></param> |
165 | /// <returns></returns> | 177 | /// <returns></returns> |
166 | public InventoryFolderBase GetFolderForType(UUID userID, AssetType type) { return null; } | 178 | public InventoryFolderBase GetFolderForType(UUID userID, FolderType type) { return null; } |
167 | 179 | ||
168 | 180 | ||
169 | /// <summary> | 181 | /// <summary> |