diff options
author | Brian McBee | 2007-12-11 03:51:32 +0000 |
---|---|---|
committer | Brian McBee | 2007-12-11 03:51:32 +0000 |
commit | 16903ec488f53fe1bab6b4c4408dde31d03367ff (patch) | |
tree | de93756adda1b308fcb9606cc703bf90e11ff112 /OpenSim/Framework/Communications | |
parent | refactor SunModule a bit to make more sensible (diff) | |
download | opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.zip opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.gz opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.bz2 opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.xz |
Implementing updateinventoryfolder: Should now be able to rename folders in inventory
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 70aec47..32d941c 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |||
@@ -127,6 +127,26 @@ namespace OpenSim.Framework.Communications.Cache | |||
127 | } | 127 | } |
128 | } | 128 | } |
129 | 129 | ||
130 | public void HandleUpdateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort type, string name, LLUUID parentID) | ||
131 | { | ||
132 | CachedUserInfo userProfile; | ||
133 | |||
134 | if (m_userProfiles.TryGetValue(remoteClient.AgentId, out userProfile)) | ||
135 | { | ||
136 | if (userProfile.RootFolder != null) | ||
137 | { | ||
138 | InventoryFolderBase baseFolder = new InventoryFolderBase(); | ||
139 | baseFolder.agentID = remoteClient.AgentId; | ||
140 | baseFolder.folderID = folderID; | ||
141 | baseFolder.name = name; | ||
142 | baseFolder.parentID = parentID; | ||
143 | baseFolder.type = (short)type; | ||
144 | baseFolder.version = userProfile.RootFolder.version; | ||
145 | m_parent.InventoryService.AddNewInventoryFolder(remoteClient.AgentId, baseFolder); | ||
146 | } | ||
147 | } | ||
148 | } | ||
149 | |||
130 | /// <summary> | 150 | /// <summary> |
131 | /// Tell the client about the various child items and folders contained in the requested folder. | 151 | /// Tell the client about the various child items and folders contained in the requested folder. |
132 | /// </summary> | 152 | /// </summary> |