/* ===================================================================
 * WebConstants.java
 * 
 * Created Aug 10, 2004 10:58:25 AM
 * 
 * Copyright (c) 2004 Matt Magoffin (spamsqr@msqr.us)
 * 
 * This program is free software; you can redistribute it and/or 
 * modify it under the terms of the GNU General Public License as 
 * published by the Free Software Foundation; either version 2 of 
 * the License, or (at your option) any later version.
 * 
 * This program 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 
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License 
 * along with this program; if not, write to the Free Software 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 
 * 02111-1307 USA
 * ===================================================================
 * $Id: WebConstants.java 4 2009-05-01 03:27:53Z msqr $
 * ===================================================================
 */

package magoffin.matt.ieat.web;

import magoffin.matt.xweb.util.XwebConstants;

/**
 * Constants to share in the servlet world.
 * 
 * @author Matt Magoffin (spamsqr@msqr.us)
 * @version $Revision: 4 $ $Date: 2009-05-01 15:27:53 +1200 (Fri, 01 May 2009) $
 */
public final class WebConstants extends XwebConstants {

	/** Key to ignore errors .*/
	public static final String IGNORE_ERRORS = "magoffin.matt.ieat.IGNORE_ERRORS";

	/** The request key to trigger the URL to be saved. */
	public static final String REQ_KEY_SAVE_SAVED_URL = "magoffin.matt.ieat.URLsave";

	/** The request parameter for an Ingredient ID. */
	public static final String REQ_PARAM_INGREDIENT_ID = "ingredientId";
	
	/** The request parameter for a Recipe ID. */
	public static final String REQ_PARAM_RECIPE_ID = "recipeId";
	
	/** The request parameter for a Meal ID. */
	public static final String REQ_PARAM_MEAL_ID = "mealId";
	
	/** The request parameter for a User ID. */
	public static final String REQ_PARAM_USER_ID = "userId";
	
	/** The session key for the user session data. */
	public static final String SES_KEY_USER_SESSION_DATA = "magoffin.matt.ieat.USD";
	
	/** The setting key for the setup complete flag. */
	public static final String SETTING_KEY_SETUP_COMPLETE = "setup.complete";
	
	/** The setting key for the setup: require admin flag. */
	public static final String SETTING_KEY_SETUP_REQUIRE_ADMIN = "setup.requireadmin";
	
	/** The setting key for the "admin exists" flag. */
	public static final String SETTING_KEY_ADMIN_USER_EXISTS = "setup.adminexists";
	
}
