diff options
-rw-r--r-- | OpenGridServices/OpenGridServices.UserServer/Main.cs | 3 | ||||
-rw-r--r-- | OpenGridServices/OpenGridServices.UserServer/UserManager.cs | 12 |
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 | } |