From 5ee75998ce4d941efd937848d28f3a4dac6ba6cc Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 7 Apr 2008 23:27:05 +0000 Subject: more refactoring, this time on InventoryFolderBase * wrap attributes in properties * clean up names a little bit * clean up name styles --- OpenSim/Grid/InventoryServer/GridInventoryService.cs | 14 +++++++------- OpenSim/Grid/InventoryServer/InventoryManager.cs | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'OpenSim/Grid/InventoryServer') diff --git a/OpenSim/Grid/InventoryServer/GridInventoryService.cs b/OpenSim/Grid/InventoryServer/GridInventoryService.cs index 92d82ab..46fbd3d 100644 --- a/OpenSim/Grid/InventoryServer/GridInventoryService.cs +++ b/OpenSim/Grid/InventoryServer/GridInventoryService.cs @@ -51,7 +51,7 @@ namespace OpenSim.Grid.InventoryServer foreach (InventoryFolderBase folder in allFolders) { - List items = RequestFolderItems(folder.folderID); + List items = RequestFolderItems(folder.ID); if (items != null) { allItems.InsertRange(0, items); @@ -79,7 +79,7 @@ namespace OpenSim.Grid.InventoryServer allFolders.InsertRange(0, folders); foreach (InventoryFolderBase subfolder in folders) { - List subFolders = GetAllFolders(subfolder.folderID); + List subFolders = GetAllFolders(subfolder.ID); if (subFolders != null) { allFolders.InsertRange(0, subFolders); @@ -166,10 +166,10 @@ namespace OpenSim.Grid.InventoryServer // Right now, this actions act more like an update/insert combination than a simple create. m_log.Info( "[AGENT INVENTORY]: " + - "Updating in " + folder.parentID.ToString() - + ", folder " + folder.name); + "Updating in " + folder.ParentID.ToString() + + ", folder " + folder.Name); - AddNewInventoryFolder(folder.agentID, folder); + AddNewInventoryFolder(folder.AgentID, folder); return true; } @@ -177,8 +177,8 @@ namespace OpenSim.Grid.InventoryServer { m_log.Info( "[AGENT INVENTORY]: " + - "Moving folder " + folder.folderID - + " to " + folder.parentID.ToString()); + "Moving folder " + folder.ID + + " to " + folder.ParentID.ToString()); MoveExistingInventoryFolder(folder); return true; diff --git a/OpenSim/Grid/InventoryServer/InventoryManager.cs b/OpenSim/Grid/InventoryServer/InventoryManager.cs index bbfaeed..aad02c3 100644 --- a/OpenSim/Grid/InventoryServer/InventoryManager.cs +++ b/OpenSim/Grid/InventoryServer/InventoryManager.cs @@ -104,25 +104,25 @@ namespace OpenSim.Grid.InventoryServer bool modified = false; // ensure we have a valid folder id - if (f.folderID == LLUUID.Zero) + if (f.ID == LLUUID.Zero) { - f.folderID = LLUUID.Random(); + f.ID = LLUUID.Random(); modified = true; } // ensure we have valid agent id - if (f.agentID == LLUUID.Zero) + if (f.AgentID == LLUUID.Zero) { if (parent != null) - f.agentID = parent.agentID; + f.AgentID = parent.AgentID; else - f.agentID = f.folderID; + f.AgentID = f.ID; modified = true; } - if (f.parentID == LLUUID.Zero && parent != null) + if (f.ParentID == LLUUID.Zero && parent != null) { - f.parentID = parent.folderID; + f.ParentID = parent.ID; modified = true; } -- cgit v1.1