aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-06-09 01:27:02 +0000
committerAdam Frisby2007-06-09 01:27:02 +0000
commit0a600b2dbfc2abbce8e80c9158b9d77cef9ff598 (patch)
treedc0067cbb1a4cf5a1a1d85eecbbc4cd320dac72c
parent* Sugilite user server can now return user profile information by account nam... (diff)
downloadopensim-SC-0a600b2dbfc2abbce8e80c9158b9d77cef9ff598.zip
opensim-SC-0a600b2dbfc2abbce8e80c9158b9d77cef9ff598.tar.gz
opensim-SC-0a600b2dbfc2abbce8e80c9158b9d77cef9ff598.tar.bz2
opensim-SC-0a600b2dbfc2abbce8e80c9158b9d77cef9ff598.tar.xz
* Just for the heck of it - added a UUID based equivilent too.
Diffstat (limited to '')
-rw-r--r--OpenGridServices/OpenGridServices.UserServer/Main.cs3
-rw-r--r--OpenGridServices/OpenGridServices.UserServer/UserManager.cs12
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenGridServices/OpenGridServices.UserServer/Main.cs b/OpenGridServices/OpenGridServices.UserServer/Main.cs
index f2cefe5..1d7fda6 100644
--- a/OpenGridServices/OpenGridServices.UserServer/Main.cs
+++ b/OpenGridServices/OpenGridServices.UserServer/Main.cs
@@ -106,7 +106,10 @@ namespace OpenGridServices.UserServer
106 BaseHttpServer httpServer = new BaseHttpServer(8002); 106 BaseHttpServer httpServer = new BaseHttpServer(8002);
107 107
108 httpServer.AddXmlRPCHandler("login_to_simulator", m_userManager.XmlRpcLoginMethod); 108 httpServer.AddXmlRPCHandler("login_to_simulator", m_userManager.XmlRpcLoginMethod);
109
109 httpServer.AddRestHandler("GET", "/user/name/", m_userManager.RestGetUserMethodName); 110 httpServer.AddRestHandler("GET", "/user/name/", m_userManager.RestGetUserMethodName);
111 httpServer.AddRestHandler("GET", "/user/uuid/", m_userManager.RestGetUserMethodUUID);
112
110 httpServer.AddRestHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod); 113 httpServer.AddRestHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod);
111 114
112 httpServer.Start(); 115 httpServer.Start();
diff --git a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
index 773fa71..cde7d59 100644
--- a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
+++ b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
@@ -706,5 +706,17 @@ namespace OpenGridServices.UserServer
706 return ProfileToXml(userProfile); 706 return ProfileToXml(userProfile);
707 } 707 }
708 708
709 public string RestGetUserMethodUUID(string request, string path, string param)
710 {
711 UserProfileData userProfile = getUserProfile(new LLUUID(param));
712
713 if (userProfile == null)
714 {
715 return CreateUnknownUserErrorResponse();
716 }
717
718 return ProfileToXml(userProfile);
719 }
720
709 } 721 }
710} 722}