Changed to use Authenticate asp.net event instead of Authorize
[castle.git] / MonoRail / Castle.MonoRail.Framework.Views.NVelocity / JSGeneration / JSCollectionGeneratorDuck.cs
blob61c2b3d6af1c4f1c9dfaaf4ba06f2d88e24df347
1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 using NVelocity;
17 namespace Castle.MonoRail.Framework.Views.NVelocity.JSGeneration
19 using System;
20 using Castle.MonoRail.Framework.Helpers;
21 using Castle.MonoRail.Framework.Internal;
23 /// <summary>
24 /// Pendent
25 /// </summary>
26 public class JSCollectionGeneratorDuck : JSCollectionGeneratorBase, IDuck
28 public JSCollectionGeneratorDuck(IJSCollectionGenerator generator) : base(generator)
32 #region IDuck
34 /// <summary>
35 /// Defines the behavior when a property is read
36 /// </summary>
37 /// <param name="propName">Property name.</param>
38 /// <returns>value back to the template</returns>
39 public object GetInvoke(string propName)
41 InternalGet(propName);
42 return this;
45 /// <summary>
46 /// Defines the behavior when a property is written
47 /// </summary>
48 /// <param name="propName">Property name.</param>
49 /// <param name="value">The value to assign.</param>
50 public void SetInvoke(string propName, object value)
52 throw new NotImplementedException();
55 /// <summary>
56 /// Invokes the specified method.
57 /// </summary>
58 /// <param name="method">The method name.</param>
59 /// <param name="args">The method arguments.</param>
60 /// <returns>value back to the template</returns>
61 public object Invoke(string method, params object[] args)
63 return InternalInvoke(method, args);
66 #endregion