diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Interfaces/IAttachmentsService.cs | 17 | ||||
-rw-r--r-- | OpenSim/Services/Interfaces/IGridService.cs | 14 | ||||
-rw-r--r-- | OpenSim/Services/Interfaces/ISimulationService.cs | 8 | ||||
-rw-r--r-- | OpenSim/Services/Interfaces/IUserAccountService.cs | 5 |
4 files changed, 42 insertions, 2 deletions
diff --git a/OpenSim/Services/Interfaces/IAttachmentsService.cs b/OpenSim/Services/Interfaces/IAttachmentsService.cs new file mode 100644 index 0000000..bdde369 --- /dev/null +++ b/OpenSim/Services/Interfaces/IAttachmentsService.cs | |||
@@ -0,0 +1,17 @@ | |||
1 | //////////////////////////////////////////////////////////////// | ||
2 | // | ||
3 | // (c) 2009, 2010 Careminster Limited and Melanie Thielker | ||
4 | // | ||
5 | // All rights reserved | ||
6 | // | ||
7 | using System; | ||
8 | using Nini.Config; | ||
9 | |||
10 | namespace OpenSim.Services.Interfaces | ||
11 | { | ||
12 | public interface IAttachmentsService | ||
13 | { | ||
14 | string Get(string id); | ||
15 | void Store(string id, string data); | ||
16 | } | ||
17 | } | ||
diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index 41dd20c..a084309 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs | |||
@@ -306,9 +306,13 @@ namespace OpenSim.Services.Interfaces | |||
306 | } | 306 | } |
307 | catch (SocketException e) | 307 | catch (SocketException e) |
308 | { | 308 | { |
309 | throw new Exception( | 309 | /*throw new Exception( |
310 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + | 310 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + |
311 | e + "' attached to this exception", e); | 311 | e + "' attached to this exception", e);*/ |
312 | // Don't throw a fatal exception here, instead, return Null and handle it in the caller. | ||
313 | // Reason is, on systems such as OSgrid it has occured that known hostnames stop | ||
314 | // resolving and thus make surrounding regions crash out with this exception. | ||
315 | return null; | ||
312 | } | 316 | } |
313 | 317 | ||
314 | return new IPEndPoint(ia, m_internalEndPoint.Port); | 318 | return new IPEndPoint(ia, m_internalEndPoint.Port); |
@@ -366,6 +370,12 @@ namespace OpenSim.Services.Interfaces | |||
366 | if (kvp.ContainsKey("regionName")) | 370 | if (kvp.ContainsKey("regionName")) |
367 | RegionName = (string)kvp["regionName"]; | 371 | RegionName = (string)kvp["regionName"]; |
368 | 372 | ||
373 | if (kvp.ContainsKey("access")) | ||
374 | { | ||
375 | byte access = Convert.ToByte((string)kvp["access"]); | ||
376 | Maturity = (int)Util.ConvertAccessLevelToMaturity(access); | ||
377 | } | ||
378 | |||
369 | if (kvp.ContainsKey("serverIP")) | 379 | if (kvp.ContainsKey("serverIP")) |
370 | { | 380 | { |
371 | //int port = 0; | 381 | //int port = 0; |
diff --git a/OpenSim/Services/Interfaces/ISimulationService.cs b/OpenSim/Services/Interfaces/ISimulationService.cs index 5f9ce6d..ae6bd72 100644 --- a/OpenSim/Services/Interfaces/ISimulationService.cs +++ b/OpenSim/Services/Interfaces/ISimulationService.cs | |||
@@ -80,6 +80,14 @@ namespace OpenSim.Services.Interfaces | |||
80 | bool ReleaseAgent(UUID originRegion, UUID id, string uri); | 80 | bool ReleaseAgent(UUID originRegion, UUID id, string uri); |
81 | 81 | ||
82 | /// <summary> | 82 | /// <summary> |
83 | /// Close child agent. | ||
84 | /// </summary> | ||
85 | /// <param name="regionHandle"></param> | ||
86 | /// <param name="id"></param> | ||
87 | /// <returns></returns> | ||
88 | bool CloseChildAgent(GridRegion destination, UUID id); | ||
89 | |||
90 | /// <summary> | ||
83 | /// Close agent. | 91 | /// Close agent. |
84 | /// </summary> | 92 | /// </summary> |
85 | /// <param name="regionHandle"></param> | 93 | /// <param name="regionHandle"></param> |
diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs index cadf297..d132a4d 100644 --- a/OpenSim/Services/Interfaces/IUserAccountService.cs +++ b/OpenSim/Services/Interfaces/IUserAccountService.cs | |||
@@ -74,6 +74,7 @@ namespace OpenSim.Services.Interfaces | |||
74 | public int UserLevel; | 74 | public int UserLevel; |
75 | public int UserFlags; | 75 | public int UserFlags; |
76 | public string UserTitle; | 76 | public string UserTitle; |
77 | public string UserCountry; | ||
77 | 78 | ||
78 | public Dictionary<string, object> ServiceURLs; | 79 | public Dictionary<string, object> ServiceURLs; |
79 | 80 | ||
@@ -102,6 +103,8 @@ namespace OpenSim.Services.Interfaces | |||
102 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); | 103 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); |
103 | if (kvp.ContainsKey("UserTitle")) | 104 | if (kvp.ContainsKey("UserTitle")) |
104 | UserTitle = kvp["UserTitle"].ToString(); | 105 | UserTitle = kvp["UserTitle"].ToString(); |
106 | if (kvp.ContainsKey("UserCountry")) | ||
107 | UserCountry = kvp["UserCountry"].ToString(); | ||
105 | 108 | ||
106 | if (kvp.ContainsKey("Created")) | 109 | if (kvp.ContainsKey("Created")) |
107 | Created = Convert.ToInt32(kvp["Created"].ToString()); | 110 | Created = Convert.ToInt32(kvp["Created"].ToString()); |
@@ -135,6 +138,7 @@ namespace OpenSim.Services.Interfaces | |||
135 | result["UserLevel"] = UserLevel.ToString(); | 138 | result["UserLevel"] = UserLevel.ToString(); |
136 | result["UserFlags"] = UserFlags.ToString(); | 139 | result["UserFlags"] = UserFlags.ToString(); |
137 | result["UserTitle"] = UserTitle; | 140 | result["UserTitle"] = UserTitle; |
141 | result["UserCountry"] = UserCountry; | ||
138 | 142 | ||
139 | string str = string.Empty; | 143 | string str = string.Empty; |
140 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) | 144 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) |
@@ -161,6 +165,7 @@ namespace OpenSim.Services.Interfaces | |||
161 | /// <param name="query"></param> | 165 | /// <param name="query"></param> |
162 | /// <returns></returns> | 166 | /// <returns></returns> |
163 | List<UserAccount> GetUserAccounts(UUID scopeID, string query); | 167 | List<UserAccount> GetUserAccounts(UUID scopeID, string query); |
168 | List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where); | ||
164 | 169 | ||
165 | /// <summary> | 170 | /// <summary> |
166 | /// Store the data given, wich replaces the stored data, therefore must be complete. | 171 | /// Store the data given, wich replaces the stored data, therefore must be complete. |