aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-04-23 18:57:39 +0000
committerJustin Clarke Casey2009-04-23 18:57:39 +0000
commit0d51c22620315f125ddbd3fe501eb93f318038d8 (patch)
tree31cf4ba3cc962497c0589dc12eb5642240670d13 /OpenSim/Data
parent* Add user data plugin to store temporary profiles (which are distinct from c... (diff)
downloadopensim-SC_OLD-0d51c22620315f125ddbd3fe501eb93f318038d8.zip
opensim-SC_OLD-0d51c22620315f125ddbd3fe501eb93f318038d8.tar.gz
opensim-SC_OLD-0d51c22620315f125ddbd3fe501eb93f318038d8.tar.bz2
opensim-SC_OLD-0d51c22620315f125ddbd3fe501eb93f318038d8.tar.xz
* Allow interested user data plugins to store temporary user profiles
* Database and the OGS1 plugins are not interested and hence ignore these calls
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/IUserData.cs11
-rw-r--r--OpenSim/Data/UserDataBase.cs6
2 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Data/IUserData.cs b/OpenSim/Data/IUserData.cs
index d3631d5..79ba27b 100644
--- a/OpenSim/Data/IUserData.cs
+++ b/OpenSim/Data/IUserData.cs
@@ -101,8 +101,15 @@ namespace OpenSim.Data
101 /// <param name="user">UserProfile to add</param> 101 /// <param name="user">UserProfile to add</param>
102 void AddNewUserProfile(UserProfileData user); 102 void AddNewUserProfile(UserProfileData user);
103 103
104 /// <summary></summary> 104 /// <summary>
105 /// Updates an existing user profile 105 /// Adds a temporary user profile. A temporary userprofile is one that should exist only for the lifetime of
106 /// the process.
107 /// </summary>
108 /// <param name="userProfile"></param>
109 void AddTemporaryUserProfile(UserProfileData userProfile);
110
111 /// <summary>
112 /// Updates an existing user profile
106 /// </summary> 113 /// </summary>
107 /// <param name="user">UserProfile to update</param> 114 /// <param name="user">UserProfile to update</param>
108 bool UpdateUserProfile(UserProfileData user); 115 bool UpdateUserProfile(UserProfileData user);
diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs
index 167a837..5ee5096 100644
--- a/OpenSim/Data/UserDataBase.cs
+++ b/OpenSim/Data/UserDataBase.cs
@@ -46,6 +46,12 @@ namespace OpenSim.Data
46 public UserProfileData GetUserByUri(Uri uri) { return null; } 46 public UserProfileData GetUserByUri(Uri uri) { return null; }
47 public abstract void StoreWebLoginKey(UUID agentID, UUID webLoginKey); 47 public abstract void StoreWebLoginKey(UUID agentID, UUID webLoginKey);
48 public abstract void AddNewUserProfile(UserProfileData user); 48 public abstract void AddNewUserProfile(UserProfileData user);
49
50 public virtual void AddTemporaryUserProfile(UserProfileData userProfile)
51 {
52 // Deliberately blank - database plugins shouldn't store temporary profiles.
53 }
54
49 public abstract bool UpdateUserProfile(UserProfileData user); 55 public abstract bool UpdateUserProfile(UserProfileData user);
50 public abstract void AddNewUserAgent(UserAgentData agent); 56 public abstract void AddNewUserAgent(UserAgentData agent);
51 public abstract void AddNewUserFriend(UUID friendlistowner, UUID friend, uint perms); 57 public abstract void AddNewUserFriend(UUID friendlistowner, UUID friend, uint perms);