/**
 * Copyright (c) 2006 Red Hat, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * Component of: Red Hat Application Server
 * 
 * Initial Developers: Greg Lapouchnian
 *                     Patrick Smith
 *
 */

package olstore.controller;

import java.util.Collection;

/**
 * A helper class for the Order status update form to wrap the
 * collection of orders.
 */
public class OrderFormHelper {
    
    // The collection of orders.
    private Collection ordersList;
    
    /**
     * Create a new helper with a list.
     * @param ordersList the list of orders.
     */
    public OrderFormHelper(Collection ordersList) {
        this.ordersList = ordersList;
    }

    /**
     * Sets the list of orders to the supplied param.
     * @param ordersList the new list of orders.
     */
    public void setOrdersList(Collection ordersList) {
        this.ordersList = ordersList;
    }

    /**
     * Returns the list of orders.
     * @return the list of orders.
     */
    public Collection getOrdersList() {
        return this.ordersList;
    }

}
