diff options
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/IUserData.cs | 11 | ||||
-rw-r--r-- | OpenSim/Data/UserDataBase.cs | 6 |
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); |