/**
 * License Agreement.
 *
 *  JBoss RichFaces - Ajax4jsf Component Library
 *
 * Copyright (C) 2007  Exadel, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation.
 *
 * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 */
package org.richfaces.realworld.service;

//TODO nick - review constants and remove old ones
//TODO nick - separate view and service layer constants
public class Constants {

	public static final String ERROR_ID = "mainform:error";
	public static final String CLEAR_ERROR_EVENT = "clearErrorEvent";
	public static final String ADD_ERROR_EVENT = "addErrorEvent";
	
	public static final String SLASH = "/";
	public static final String DOT = ".";
	
	public static final String ADD_IMAGE_EVENT = "addImage";
	public static final String JPEG = "jpeg";
	
	public static final String MAIN_OUTCOME = "main";

	public static final String REGISTER_LOGIN_NAME_ID = "register:loginName";
	public static final String REGISTER_CONFIRM_PASSWORD_ID = "register:confirmPassword";
	public static final String INDEX_OUTCOME = "index";
	public static final String ADMIN_ROLE = "admin";
	public static final String GUEST_ROLE = "guest";
	public static final String UPDATE_MAIN_AREA_EVENT = "updateMainArea";
	public static final String CLEAR_EDITOR_EVENT = "clearEditor";
	public static final int INITIAL_DELAY = 4000;
	public static final int DELAY = 3000;

	public static final String USER_EXIST_QUERY = "user-exist";
	public static final String USER_LOGIN_QUERY = "user-login";

	public static final String LOGIN_PARAMETER = "login";
	public static final String PASSWORD_PARAMETER = "password";
	public static final String USERNAME_PARAMETER = "username";

	private Constants(){
		
	}
	
}
