2 // Mainsoft.Web.Profile.WPProfileProvider
\r
5 // Ilya Kharmatsky (ilyak@mainsoft.com)
\r
9 // Permission is hereby granted, free of charge, to any person obtaining
\r
10 // a copy of this software and associated documentation files (the
\r
11 // "Software"), to deal in the Software without restriction, including
\r
12 // without limitation the rights to use, copy, modify, merge, publish,
\r
13 // distribute, sublicense, and/or sell copies of the Software, and to
\r
14 // permit persons to whom the Software is furnished to do so, subject to
\r
15 // the following conditions:
\r
17 // The above copyright notice and this permission notice shall be
\r
18 // included in all copies or substantial portions of the Software.
\r
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\r
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\r
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
\r
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
\r
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
\r
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
\r
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
32 using System.Collections;
\r
33 using System.Collections.Specialized;
\r
35 using System.Web.Profile;
\r
36 using System.Configuration;
\r
38 using Mainsoft.Web.Security;
\r
40 namespace Mainsoft.Web.Profile
\r
42 public class WPProfileProvider : ProfileProvider
\r
44 private static readonly string DESCRIPTION = "WebSphere Portal Profile Provider";
\r
45 private static readonly string NAME = "WPProfileProvider";
\r
47 private string _applicationName = String.Empty;
\r
49 public override void Initialize(string name, NameValueCollection config)
\r
51 base.Initialize(name, config);
\r
52 if(_applicationName == String.Empty && config != null)
\r
54 _applicationName = config["applicationName"];
\r
55 _applicationName = (_applicationName == null) ? String.Empty : _applicationName;
\r
59 public override string Description
\r
67 public override string Name
\r
75 public override string ApplicationName
\r
79 return _applicationName;
\r
83 _applicationName = value;
\r
87 public override SettingsPropertyValueCollection GetPropertyValues(SettingsContext context, SettingsPropertyCollection collection)
\r
89 throw new NotImplementedException("The method or operation is not implemented.");
\r
92 public override void SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection)
\r
94 throw new NotImplementedException("The method or operation is not implemented.");
\r
97 #region Not Implemented Methods
\r
100 public override int DeleteInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)
\r
102 throw new NotImplementedException("The method or operation is not implemented.");
\r
106 public override int DeleteProfiles(string[] usernames)
\r
108 throw new NotImplementedException("The method or operation is not implemented.");
\r
112 public override int DeleteProfiles(ProfileInfoCollection profiles)
\r
114 throw new NotImplementedException("The method or operation is not implemented.");
\r
118 public override ProfileInfoCollection FindInactiveProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords)
\r
120 throw new NotImplementedException("The method or operation is not implemented.");
\r
124 public override ProfileInfoCollection FindProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)
\r
126 throw new NotImplementedException("The method or operation is not implemented.");
\r
130 public override ProfileInfoCollection GetAllInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords)
\r
132 throw new NotImplementedException("The method or operation is not implemented.");
\r
136 public override ProfileInfoCollection GetAllProfiles(ProfileAuthenticationOption authenticationOption, int pageIndex, int pageSize, out int totalRecords)
\r
138 throw new NotImplementedException("The method or operation is not implemented.");
\r
142 public override int GetNumberOfInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)
\r
144 throw new NotImplementedException("The method or operation is not implemented.");
\r