aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs60
1 files changed, 30 insertions, 30 deletions
diff --git a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
index b624b15..12a07eb 100644
--- a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
+++ b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
@@ -116,19 +116,19 @@ namespace OpenSim.Framework.Communications.Cache
116 int assetType, int invType, LLUUID parentFolderID) 116 int assetType, int invType, LLUUID parentFolderID)
117 { 117 {
118 InventoryItemBase item = new InventoryItemBase(); 118 InventoryItemBase item = new InventoryItemBase();
119 item.avatarID = libOwner; 119 item.Owner = libOwner;
120 item.creatorsID = libOwner; 120 item.Creator = libOwner;
121 item.inventoryID = inventoryID; 121 item.ID = inventoryID;
122 item.assetID = assetID; 122 item.AssetID = assetID;
123 item.inventoryDescription = description; 123 item.Description = description;
124 item.inventoryName = name; 124 item.Name = name;
125 item.assetType = assetType; 125 item.AssetType = assetType;
126 item.invType = invType; 126 item.InvType = invType;
127 item.parentFolderID = parentFolderID; 127 item.Folder = parentFolderID;
128 item.inventoryBasePermissions = 0x7FFFFFFF; 128 item.BasePermissions = 0x7FFFFFFF;
129 item.inventoryEveryOnePermissions = 0x7FFFFFFF; 129 item.EveryOnePermissions = 0x7FFFFFFF;
130 item.inventoryCurrentPermissions = 0x7FFFFFFF; 130 item.CurrentPermissions = 0x7FFFFFFF;
131 item.inventoryNextPermissions = 0x7FFFFFFF; 131 item.NextPermissions = 0x7FFFFFFF;
132 return item; 132 return item;
133 } 133 }
134 134
@@ -204,31 +204,31 @@ namespace OpenSim.Framework.Communications.Cache
204 private void ReadItemFromConfig(IConfig config) 204 private void ReadItemFromConfig(IConfig config)
205 { 205 {
206 InventoryItemBase item = new InventoryItemBase(); 206 InventoryItemBase item = new InventoryItemBase();
207 item.avatarID = libOwner; 207 item.Owner = libOwner;
208 item.creatorsID = libOwner; 208 item.Creator = libOwner;
209 item.inventoryID = new LLUUID(config.GetString("inventoryID", folderID.ToString())); 209 item.ID = new LLUUID(config.GetString("inventoryID", folderID.ToString()));
210 item.assetID = new LLUUID(config.GetString("assetID", LLUUID.Random().ToString())); 210 item.AssetID = new LLUUID(config.GetString("assetID", LLUUID.Random().ToString()));
211 item.parentFolderID = new LLUUID(config.GetString("folderID", folderID.ToString())); 211 item.Folder = new LLUUID(config.GetString("folderID", folderID.ToString()));
212 item.inventoryDescription = config.GetString("description", System.String.Empty); 212 item.Description = config.GetString("description", System.String.Empty);
213 item.inventoryName = config.GetString("name", System.String.Empty); 213 item.Name = config.GetString("name", System.String.Empty);
214 item.assetType = config.GetInt("assetType", 0); 214 item.AssetType = config.GetInt("assetType", 0);
215 item.invType = config.GetInt("inventoryType", 0); 215 item.InvType = config.GetInt("inventoryType", 0);
216 item.inventoryCurrentPermissions = (uint)config.GetLong("currentPermissions", 0x7FFFFFFF); 216 item.CurrentPermissions = (uint)config.GetLong("currentPermissions", 0x7FFFFFFF);
217 item.inventoryNextPermissions = (uint)config.GetLong("nextPermissions", 0x7FFFFFFF); 217 item.NextPermissions = (uint)config.GetLong("nextPermissions", 0x7FFFFFFF);
218 item.inventoryEveryOnePermissions = (uint)config.GetLong("everyonePermissions", 0x7FFFFFFF); 218 item.EveryOnePermissions = (uint)config.GetLong("everyonePermissions", 0x7FFFFFFF);
219 item.inventoryBasePermissions = (uint)config.GetLong("basePermissions", 0x7FFFFFFF); 219 item.BasePermissions = (uint)config.GetLong("basePermissions", 0x7FFFFFFF);
220 220
221 if (libraryFolders.ContainsKey(item.parentFolderID)) 221 if (libraryFolders.ContainsKey(item.Folder))
222 { 222 {
223 InventoryFolderImpl parentFolder = libraryFolders[item.parentFolderID]; 223 InventoryFolderImpl parentFolder = libraryFolders[item.Folder];
224 224
225 parentFolder.Items.Add(item.inventoryID, item); 225 parentFolder.Items.Add(item.ID, item);
226 } 226 }
227 else 227 else
228 { 228 {
229 m_log.WarnFormat( 229 m_log.WarnFormat(
230 "[LIBRARY INVENTORY]: Couldn't add item {0} ({1}) since parent folder with ID {2} does not exist!", 230 "[LIBRARY INVENTORY]: Couldn't add item {0} ({1}) since parent folder with ID {2} does not exist!",
231 item.inventoryName, item.inventoryID, item.parentFolderID); 231 item.Name, item.ID, item.Folder);
232 } 232 }
233 } 233 }
234 234