diff options
author | Justin Clarke Casey | 2008-05-03 18:57:02 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-03 18:57:02 +0000 |
commit | 10875427058e68784ca6f5538a00a0cafd46a72b (patch) | |
tree | 51d7be53b9bc64eb86bf1720513661933ea0a5ba /OpenSim/Framework/Communications/InventoryServiceBase.cs | |
parent | * Refactor: remove redundant userId parameter from UpdateItem() and DeleteItem() (diff) | |
download | opensim-SC-10875427058e68784ca6f5538a00a0cafd46a72b.zip opensim-SC-10875427058e68784ca6f5538a00a0cafd46a72b.tar.gz opensim-SC-10875427058e68784ca6f5538a00a0cafd46a72b.tar.bz2 opensim-SC-10875427058e68784ca6f5538a00a0cafd46a72b.tar.xz |
* Refactor: Move bulk of CreateFolder from UserProfileCacheService into CachedUserInfo
* Remove unused/superseded methods from GridInventoryService
Diffstat (limited to 'OpenSim/Framework/Communications/InventoryServiceBase.cs')
-rw-r--r-- | OpenSim/Framework/Communications/InventoryServiceBase.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 1601963..e81d8c4 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs | |||
@@ -28,11 +28,16 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Threading; | ||
32 | |||
31 | using libsecondlife; | 33 | using libsecondlife; |
32 | using log4net; | 34 | using log4net; |
33 | 35 | ||
34 | namespace OpenSim.Framework.Communications | 36 | namespace OpenSim.Framework.Communications |
35 | { | 37 | { |
38 | /// <summary> | ||
39 | /// Abstract base class used by local and grid implementations of an inventory service. | ||
40 | /// </summary> | ||
36 | public abstract class InventoryServiceBase : IInventoryServices | 41 | public abstract class InventoryServiceBase : IInventoryServices |
37 | { | 42 | { |
38 | private static readonly ILog m_log | 43 | private static readonly ILog m_log |
@@ -178,10 +183,11 @@ namespace OpenSim.Framework.Communications | |||
178 | 183 | ||
179 | #endregion | 184 | #endregion |
180 | 185 | ||
186 | // See IInventoryServices | ||
181 | public bool AddFolder(InventoryFolderBase folder) | 187 | public bool AddFolder(InventoryFolderBase folder) |
182 | { | 188 | { |
183 | m_log.DebugFormat( | 189 | m_log.DebugFormat( |
184 | "[AGENT INVENTORY]: Adding folder {0} {1} to folder {2}", folder.Name, folder.ID, folder.ParentID); | 190 | "[AGENT INVENTORY]: Adding folder {0} {1} to folder {2}", folder.Name, folder.ID, folder.ParentID); |
185 | 191 | ||
186 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) | 192 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) |
187 | { | 193 | { |
@@ -192,6 +198,7 @@ namespace OpenSim.Framework.Communications | |||
192 | return true; | 198 | return true; |
193 | } | 199 | } |
194 | 200 | ||
201 | // See IInventoryServices | ||
195 | public bool MoveFolder(InventoryFolderBase folder) | 202 | public bool MoveFolder(InventoryFolderBase folder) |
196 | { | 203 | { |
197 | m_log.DebugFormat( | 204 | m_log.DebugFormat( |
@@ -206,6 +213,7 @@ namespace OpenSim.Framework.Communications | |||
206 | return true; | 213 | return true; |
207 | } | 214 | } |
208 | 215 | ||
216 | // See IInventoryServices | ||
209 | public bool AddItem(InventoryItemBase item) | 217 | public bool AddItem(InventoryItemBase item) |
210 | { | 218 | { |
211 | m_log.DebugFormat( | 219 | m_log.DebugFormat( |
@@ -220,6 +228,7 @@ namespace OpenSim.Framework.Communications | |||
220 | return true; | 228 | return true; |
221 | } | 229 | } |
222 | 230 | ||
231 | // See IInventoryServices | ||
223 | public bool UpdateItem(InventoryItemBase item) | 232 | public bool UpdateItem(InventoryItemBase item) |
224 | { | 233 | { |
225 | m_log.InfoFormat( | 234 | m_log.InfoFormat( |
@@ -234,6 +243,7 @@ namespace OpenSim.Framework.Communications | |||
234 | return true; | 243 | return true; |
235 | } | 244 | } |
236 | 245 | ||
246 | // See IInventoryServices | ||
237 | public bool DeleteItem(InventoryItemBase item) | 247 | public bool DeleteItem(InventoryItemBase item) |
238 | { | 248 | { |
239 | m_log.InfoFormat( | 249 | m_log.InfoFormat( |