//
// Authors:
// Ben Maurer (bmaurer@users.sourceforge.net)
+// Sanjay Gupta (gsanjay@novell.com)
+// Lluis Sanchez Gual (lluis@novell.com)
//
// (C) 2003 Ben Maurer
+// (C) 2004 Novell, Inc. (http://www.novell.com)
//
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using System.Collections;
using System.Collections.Specialized;
using System.Text;
+using System.Web.UI;
-namespace System.Web.UI.WebControls {
- public class SiteMapDataSourceView : HierarchicalDataSourceView {
- public SiteMapDataSourceView (SiteMapNode node) : this (new SiteMapNodeCollection (node)) {}
- public SiteMapDataSourceView (SiteMapNodeCollection collection)
+namespace System.Web.UI.WebControls
+{
+ public class SiteMapDataSourceView : DataSourceView
+ {
+ SiteMapNodeCollection collection;
+
+ public SiteMapDataSourceView (SiteMapDataSource owner, string viewName, SiteMapNode node)
+ : this (owner, viewName, new SiteMapNodeCollection (node))
+ {
+ }
+
+ public SiteMapDataSourceView (SiteMapDataSource owner, string viewName, SiteMapNodeCollection collection)
+ : base (owner, viewName)
{
this.collection = collection;
}
- public override IHierarchicalEnumerable GetHierarchicalList ()
+
+ public IEnumerable Select (DataSourceSelectArguments arguments)
{
+ return ExecuteSelect (arguments);
+ }
+
+ protected internal override IEnumerable ExecuteSelect (DataSourceSelectArguments arguments)
+ {
+ arguments.RaiseUnsupportedCapabilitiesError (this);
return collection;
}
-
- SiteMapNodeCollection collection;
+
+ protected override void OnDataSourceViewChanged (EventArgs e)
+ {
+ base.OnDataSourceViewChanged (e);
+ }
+
}
}
-#endif