+2006-03-10 Chris Toshok <toshok@ximian.com>
+
+ * StaticSiteMapProvider.cs (UrlToNode): this entire file is #if
+ NET_2_0, no need to embed another #if NET_2_0.
+
+ * SiteMapProvider.cs (AddNode): throw NotImplementedException.
+ (FindSiteMapNode): with null context, return null. don't throw
+ ArgumentNullException.
+ (RemoveNode): throw NotImplementedException.
+ (IsAccessibleToUser): check arguments to make test pass. still
+ lacking the method's actual functionality.
+ (ResourceKey): add missing property.
+
2006-03-10 Chris Toshok <toshok@ximian.com>
* HttpRequest.cs (CheckString): add back in the check for \xff1c
internal protected virtual void AddNode (SiteMapNode node, SiteMapNode parentNode)
{
- if (node == null)
- throw new ArgumentNullException ("node");
+ throw new NotImplementedException ();
}
public virtual SiteMapNode FindSiteMapNode (HttpContext context)
{
if (context == null)
- throw new ArgumentNullException ("context");
+ return null;
SiteMapNode ret = this.FindSiteMapNode (context.Request.RawUrl);
if (ret == null)
public abstract SiteMapNodeCollection GetChildNodes (SiteMapNode node);
- public abstract SiteMapNode GetParentNode (SiteMapNode node);
-
public virtual SiteMapNode GetCurrentNodeAndHintAncestorNodes (int upLevel)
{
if (upLevel < -1) throw new ArgumentOutOfRangeException ("upLevel");
return CurrentNode;
}
+
+ public abstract SiteMapNode GetParentNode (SiteMapNode node);
public virtual SiteMapNode GetParentNodeRelativeToCurrentNodeAndHintDownFromParent (int walkupLevels, int relativeDepthFromWalkup)
{
protected virtual void RemoveNode (SiteMapNode node)
{
- if (node == null)
- throw new ArgumentNullException("node");
+ throw new NotImplementedException ();
}
public override void Initialize (string name, NameValueCollection attributes)
[MonoTODO]
public virtual bool IsAccessibleToUser (HttpContext context, SiteMapNode node)
{
+ if (context == null) throw new ArgumentNullException ("context");
+ if (node == null) throw new ArgumentNullException ("node");
+
return true;
}
get { return securityTrimming; }
}
+ string resourceKey;
+ public string ResourceKey {
+ get { return resourceKey; }
+ set { resourceKey = value; }
+ }
+
public virtual SiteMapNode RootNode {
get {
SiteMapNode node = GetRootNodeCore ();
return null;
}
}
-
+
public event SiteMapResolveEventHandler SiteMapResolve;
}
}