View Javadoc

    1   package org.apache.turbine.modules.navigations;
    2
    3
    4   /*
    5    * Licensed to the Apache Software Foundation (ASF) under one
    6    * or more contributor license agreements.  See the NOTICE file
    7    * distributed with this work for additional information
    8    * regarding copyright ownership.  The ASF licenses this file
    9    * to you under the Apache License, Version 2.0 (the
    10   * "License"); you may not use this file except in compliance
    11   * with the License.  You may obtain a copy of the License at
    12   *
    13   *   http://www.apache.org/licenses/LICENSE-2.0
    14   *
    15   * Unless required by applicable law or agreed to in writing,
    16   * software distributed under the License is distributed on an
    17   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    18   * KIND, either express or implied.  See the License for the
    19   * specific language governing permissions and limitations
    20   * under the License.
    21   */
    22
    23
    24  import org.apache.turbine.pipeline.PipelineData;
    25  import org.apache.turbine.util.RunData;
    26  import org.apache.velocity.context.Context;
    27
    28  /**
    29   * Support Turbine 2 navigation modules
    30   *
    31   * @author <a href="mailto:tv@apache.org">Thomas Vandahl</a>
    32   * @deprecated Use VelocityNavigation directly
    33   */
    34  @Deprecated
    35  public class LegacyVelocityNavigation
    36          extends VelocityNavigation
    37  {
    38      /**
    39       * Velocity Navigations extending this class should override this
    40       * method to perform any particular business logic and add
    41       * information to the context.
    42       *
    43       * @param data Turbine information.
    44       * @param context Context for web pages.
    45       * @exception Exception, a generic exception.
    46       */
    47      protected void doBuildTemplate(RunData data, Context context)
    48              throws Exception
    49      {
    50          // empty
    51      }
    52
    53      /**
    54       * Adapter method
    55       */
    56      @Override
    57      protected void doBuildTemplate(PipelineData pipelineData, Context context) throws Exception
    58      {
    59          doBuildTemplate(getRunData(pipelineData), context);
    60      }
    61  }