aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-12 22:41:57 +0000
committerJustin Clarke Casey2008-02-12 22:41:57 +0000
commit2018cf312bd51350f1f71a8ff1c710d0085a6358 (patch)
tree1ebc025710d1a7644f67e1192e42a5277eeb5b43 /OpenSim/Framework/Communications/Cache
parent* Add missing locking to mysql inventory plugin (diff)
downloadopensim-SC_OLD-2018cf312bd51350f1f71a8ff1c710d0085a6358.zip
opensim-SC_OLD-2018cf312bd51350f1f71a8ff1c710d0085a6358.tar.gz
opensim-SC_OLD-2018cf312bd51350f1f71a8ff1c710d0085a6358.tar.bz2
opensim-SC_OLD-2018cf312bd51350f1f71a8ff1c710d0085a6358.tar.xz
Refactor: factor a method out of AgentAssetTransactionsManager
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r--OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs15
1 files changed, 2 insertions, 13 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs b/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs
index 70471cc..c9c35d2 100644
--- a/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs
+++ b/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs
@@ -81,28 +81,17 @@ namespace OpenSim.Framework.Communications.Cache
81 /// Get the collection of asset transactions for the given user. 81 /// Get the collection of asset transactions for the given user.
82 /// </summary> 82 /// </summary>
83 /// <param name="userID"></param> 83 /// <param name="userID"></param>
84 /// <returns></returns> 84 /// <returns>null if this agent does not have an asset transactions collection</returns>
85 public AgentAssetTransactions GetUserTransactions(LLUUID userID) 85 public AgentAssetTransactions GetUserTransactions(LLUUID userID)
86 { 86 {
87 if (AgentTransactions.ContainsKey(userID)) 87 if (AgentTransactions.ContainsKey(userID))
88 { 88 {
89 return AgentTransactions[userID]; 89 return AgentTransactions[userID];
90 } 90 }
91
91 return null; 92 return null;
92 } 93 }
93 94
94 public void HandleInventoryFromTransaction(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID,
95 uint callbackID, string description, string name, sbyte invType,
96 sbyte type, byte wearableType, uint nextOwnerMask)
97 {
98 AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId);
99 if (transactions != null)
100 {
101 transactions.RequestCreateInventoryItem(remoteClient, transactionID, folderID, callbackID, description,
102 name, invType, type, wearableType, nextOwnerMask);
103 }
104 }
105
106 public void HandleUDPUploadRequest(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type, 95 public void HandleUDPUploadRequest(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type,
107 byte[] data, bool storeLocal, bool tempFile) 96 byte[] data, bool storeLocal, bool tempFile)
108 { 97 {