    001package org.apache.turbine.modules.navigations;
    002
    003
    004/*
    005 * Licensed to the Apache Software Foundation (ASF) under one
    006 * or more contributor license agreements.  See the NOTICE file
    007 * distributed with this work for additional information
    008 * regarding copyright ownership.  The ASF licenses this file
    009 * to you under the Apache License, Version 2.0 (the
    010 * "License"); you may not use this file except in compliance
    011 * with the License.  You may obtain a copy of the License at
    012 *
    013 *   http://www.apache.org/licenses/LICENSE-2.0
    014 *
    015 * Unless required by applicable law or agreed to in writing,
    016 * software distributed under the License is distributed on an
    017 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    018 * KIND, either express or implied.  See the License for the
    019 * specific language governing permissions and limitations
    020 * under the License.
    021 */
    022
    023
    024import org.apache.turbine.pipeline.PipelineData;
    025import org.apache.turbine.util.RunData;
    026import org.apache.velocity.context.Context;
    027
    028/**
    029 * Support Turbine 2 navigation modules
    030 *
    031 * @author <a href="mailto:tv@apache.org">Thomas Vandahl</a>
    032 * @deprecated Use VelocityNavigation directly
    033 */
    034@Deprecated
    035public class LegacyVelocityNavigation
    036        extends VelocityNavigation
    037{
    038    /**
    039     * Velocity Navigations extending this class should override this
    040     * method to perform any particular business logic and add
    041     * information to the context.
    042     *
    043     * @param data Turbine information.
    044     * @param context Context for web pages.
    045     * @exception Exception, a generic exception.
    046     */
    047    protected void doBuildTemplate(RunData data, Context context)
    048            throws Exception
    049    {
    050        // empty
    051    }
    052
    053    /**
    054     * Adapter method
    055     */
    056    @Override
    057    protected void doBuildTemplate(PipelineData pipelineData, Context context) throws Exception
    058    {
    059        doBuildTemplate(getRunData(pipelineData), context);
    060    }
    061}