aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorTom2011-01-26 16:25:08 -0800
committerTom2011-01-26 16:25:08 -0800
commit6b27587bc7631d6fd083f3b4f752d9ddcfda4830 (patch)
tree743dd62eb392e4ec95b76c92918289995c15fa5d /OpenSim/Services
parentAdd userFlags check to isBanned. This checks bans against DenyAnonymous and D... (diff)
downloadopensim-SC-6b27587bc7631d6fd083f3b4f752d9ddcfda4830.zip
opensim-SC-6b27587bc7631d6fd083f3b4f752d9ddcfda4830.tar.gz
opensim-SC-6b27587bc7631d6fd083f3b4f752d9ddcfda4830.tar.bz2
opensim-SC-6b27587bc7631d6fd083f3b4f752d9ddcfda4830.tar.xz
Add a "useCached" parameter to GetUserAccount. Add a function to Scene to get the user flags. It has to be here due to access restrictions :/
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs5
-rw-r--r--OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs5
-rw-r--r--OpenSim/Services/HypergridService/UserAccountCache.cs5
-rw-r--r--OpenSim/Services/Interfaces/IUserAccountService.cs1
-rw-r--r--OpenSim/Services/UserAccountService/UserAccountService.cs5
5 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
index 801b424..fe4e2bf 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
@@ -131,6 +131,11 @@ namespace OpenSim.Services.Connectors.SimianGrid
131 131
132 public UserAccount GetUserAccount(UUID scopeID, UUID userID) 132 public UserAccount GetUserAccount(UUID scopeID, UUID userID)
133 { 133 {
134 return GetUserAccount(scopeID, userID, true);
135 }
136
137 public UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache)
138 {
134 // Cache check 139 // Cache check
135 UserAccount account; 140 UserAccount account;
136 if (m_accountCache.TryGetValue(userID, out account)) 141 if (m_accountCache.TryGetValue(userID, out account))
diff --git a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
index 205a4aa..c21b250 100644
--- a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
+++ b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
@@ -113,6 +113,11 @@ namespace OpenSim.Services.Connectors
113 113
114 public virtual UserAccount GetUserAccount(UUID scopeID, UUID userID) 114 public virtual UserAccount GetUserAccount(UUID scopeID, UUID userID)
115 { 115 {
116 return GetUserAccount(scopeID, userID, true);
117 }
118
119 public virtual UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache)
120 {
116 //m_log.DebugFormat("[ACCOUNTS CONNECTOR]: GetUserAccount {0}", userID); 121 //m_log.DebugFormat("[ACCOUNTS CONNECTOR]: GetUserAccount {0}", userID);
117 Dictionary<string, object> sendData = new Dictionary<string, object>(); 122 Dictionary<string, object> sendData = new Dictionary<string, object>();
118 //sendData["SCOPEID"] = scopeID.ToString(); 123 //sendData["SCOPEID"] = scopeID.ToString();
diff --git a/OpenSim/Services/HypergridService/UserAccountCache.cs b/OpenSim/Services/HypergridService/UserAccountCache.cs
index e0a3e61..bbc531e 100644
--- a/OpenSim/Services/HypergridService/UserAccountCache.cs
+++ b/OpenSim/Services/HypergridService/UserAccountCache.cs
@@ -80,6 +80,11 @@ namespace OpenSim.Services.HypergridService
80 return GetUser(userID.ToString()); 80 return GetUser(userID.ToString());
81 } 81 }
82 82
83 public UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache)
84 {
85 return GetUser(userID.ToString());
86 }
87
83 public UserAccount GetUserAccount(UUID scopeID, string FirstName, string LastName) 88 public UserAccount GetUserAccount(UUID scopeID, string FirstName, string LastName)
84 { 89 {
85 return null; 90 return null;
diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs
index a91aa0f..21be98c 100644
--- a/OpenSim/Services/Interfaces/IUserAccountService.cs
+++ b/OpenSim/Services/Interfaces/IUserAccountService.cs
@@ -143,6 +143,7 @@ namespace OpenSim.Services.Interfaces
143 143
144 public interface IUserAccountService 144 public interface IUserAccountService
145 { 145 {
146 UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache);
146 UserAccount GetUserAccount(UUID scopeID, UUID userID); 147 UserAccount GetUserAccount(UUID scopeID, UUID userID);
147 UserAccount GetUserAccount(UUID scopeID, string FirstName, string LastName); 148 UserAccount GetUserAccount(UUID scopeID, string FirstName, string LastName);
148 UserAccount GetUserAccount(UUID scopeID, string Email); 149 UserAccount GetUserAccount(UUID scopeID, string Email);
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs
index cbd6f35..b914668 100644
--- a/OpenSim/Services/UserAccountService/UserAccountService.cs
+++ b/OpenSim/Services/UserAccountService/UserAccountService.cs
@@ -208,6 +208,11 @@ namespace OpenSim.Services.UserAccountService
208 208
209 public UserAccount GetUserAccount(UUID scopeID, UUID principalID) 209 public UserAccount GetUserAccount(UUID scopeID, UUID principalID)
210 { 210 {
211 return GetUserAccount(scopeID, principalID, true);
212 }
213
214 public UserAccount GetUserAccount(UUID scopeID, UUID principalID, bool useCache)
215 {
211 UserAccountData[] d; 216 UserAccountData[] d;
212 217
213 if (scopeID != UUID.Zero) 218 if (scopeID != UUID.Zero)