aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.UserServer/UserManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenGridServices.UserServer/UserManager.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices.UserServer/UserManager.cs
index b93c26f..c1e442f 100644
--- a/OpenGridServices.UserServer/UserManager.cs
+++ b/OpenGridServices.UserServer/UserManager.cs
@@ -52,6 +52,11 @@ namespace OpenGridServices.UserServer
52 pluginAssembly = null; 52 pluginAssembly = null;
53 } 53 }
54 54
55 /// <summary>
56 /// Loads a user profile from a database by UUID
57 /// </summary>
58 /// <param name="uuid">The target UUID</param>
59 /// <returns>A user profile</returns>
55 public UserProfileData getUserProfile(LLUUID uuid) 60 public UserProfileData getUserProfile(LLUUID uuid)
56 { 61 {
57 foreach (KeyValuePair<string, IUserData> plugin in _plugins) 62 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
@@ -71,6 +76,12 @@ namespace OpenGridServices.UserServer
71 return null; 76 return null;
72 } 77 }
73 78
79
80 /// <summary>
81 /// Loads a user profile by name
82 /// </summary>
83 /// <param name="name">The target name</param>
84 /// <returns>A user profile</returns>
74 public UserProfileData getUserProfile(string name) 85 public UserProfileData getUserProfile(string name)
75 { 86 {
76 foreach (KeyValuePair<string, IUserData> plugin in _plugins) 87 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
@@ -90,6 +101,12 @@ namespace OpenGridServices.UserServer
90 return null; 101 return null;
91 } 102 }
92 103
104 /// <summary>
105 /// Loads a user profile by name
106 /// </summary>
107 /// <param name="fname">First name</param>
108 /// <param name="lname">Last name</param>
109 /// <returns>A user profile</returns>
93 public UserProfileData getUserProfile(string fname, string lname) 110 public UserProfileData getUserProfile(string fname, string lname)
94 { 111 {
95 foreach (KeyValuePair<string, IUserData> plugin in _plugins) 112 foreach (KeyValuePair<string, IUserData> plugin in _plugins)