fixed tests
[mono.git] / mcs / class / Mainsoft.Web / Mainsoft.Web.J2EE.WAS / Mainsoft.Web.Profile / WPProfileProvider.cs
1 //\r
2 // Mainsoft.Web.Profile.WPProfileProvider\r
3 //\r
4 // Authors:\r
5 //      Ilya Kharmatsky (ilyak@mainsoft.com)\r
6 //\r
7 // (C) 2007 Mainsoft\r
8 //\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
16 // \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
19 // \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
27 //\r
28 \r
29 #if NET_2_0\r
30 \r
31 using System;\r
32 using System.Collections;\r
33 using System.Collections.Specialized;\r
34 using System.Text;\r
35 using System.Web.Profile;\r
36 using System.Configuration;\r
37 \r
38 using Mainsoft.Web.Security;\r
39 \r
40 namespace Mainsoft.Web.Profile\r
41 {\r
42     public class WPProfileProvider : ProfileProvider\r
43     {\r
44         private static readonly string DESCRIPTION = "WebSphere Portal Profile Provider";\r
45         private static readonly string NAME = "WPProfileProvider";\r
46 \r
47         private string _applicationName = String.Empty;\r
48 \r
49         public override void Initialize(string name, NameValueCollection config)\r
50         {\r
51             base.Initialize(name, config);\r
52             if(_applicationName == String.Empty && config != null)\r
53             {\r
54                 _applicationName = config["applicationName"];\r
55                 _applicationName = (_applicationName == null) ? String.Empty : _applicationName;\r
56             }\r
57         }\r
58 \r
59         public override string Description\r
60         {\r
61             get\r
62             {\r
63                 return DESCRIPTION;\r
64             }\r
65         }\r
66 \r
67         public override string Name\r
68         {\r
69             get\r
70             {\r
71                 return NAME;\r
72             }\r
73         }\r
74 \r
75         public override string ApplicationName\r
76         {\r
77             get\r
78             {\r
79                 return _applicationName;\r
80             }\r
81             set\r
82             {\r
83                 _applicationName = value;\r
84             }\r
85         }\r
86 \r
87         public override SettingsPropertyValueCollection GetPropertyValues(SettingsContext context, SettingsPropertyCollection collection)\r
88         {\r
89             throw new NotImplementedException("The method or operation is not implemented.");\r
90         }\r
91 \r
92         public override void SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection)\r
93         {\r
94             throw new NotImplementedException("The method or operation is not implemented.");\r
95         }\r
96 \r
97         #region Not Implemented Methods\r
98 \r
99         [MonoTODO]\r
100         public override int DeleteInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)\r
101         {\r
102             throw new NotImplementedException("The method or operation is not implemented.");\r
103         }\r
104 \r
105         [MonoTODO]\r
106         public override int DeleteProfiles(string[] usernames)\r
107         {\r
108             throw new NotImplementedException("The method or operation is not implemented.");\r
109         }\r
110 \r
111         [MonoTODO]\r
112         public override int DeleteProfiles(ProfileInfoCollection profiles)\r
113         {\r
114             throw new NotImplementedException("The method or operation is not implemented.");\r
115         }\r
116 \r
117         [MonoTODO]\r
118         public override ProfileInfoCollection FindInactiveProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords)\r
119         {\r
120             throw new NotImplementedException("The method or operation is not implemented.");\r
121         }\r
122 \r
123         [MonoTODO]\r
124         public override ProfileInfoCollection FindProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)\r
125         {\r
126             throw new NotImplementedException("The method or operation is not implemented.");\r
127         }\r
128 \r
129         [MonoTODO]\r
130         public override ProfileInfoCollection GetAllInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords)\r
131         {\r
132             throw new NotImplementedException("The method or operation is not implemented.");\r
133         }\r
134 \r
135         [MonoTODO]\r
136         public override ProfileInfoCollection GetAllProfiles(ProfileAuthenticationOption authenticationOption, int pageIndex, int pageSize, out int totalRecords)\r
137         {\r
138             throw new NotImplementedException("The method or operation is not implemented.");\r
139         }\r
140 \r
141         [MonoTODO]\r
142         public override int GetNumberOfInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)\r
143         {\r
144             throw new NotImplementedException("The method or operation is not implemented.");\r
145         }\r
146         #endregion\r
147     }\r
148 }\r
149 \r
150 #endif