package org.appfuse;
/**
 * Constant values for use in Servlets and JSPs.
 *
 * <p>
 * <a href="Constants.java.html"><i>View Source</i></a>
 * </p>
 *
 * @author <a href="mailto:[email protected]">Matt Raible</a>
 * @version $Revision: 1.1 $ $Date: 2004/03/31 13:04:33 $
 */
public final class Constants {
    /**
     * The application scoped attribute for persistence engine and class that
     * implements it
     */
    public static final String DAO_TYPE = "daoType";
    public static final String DAO_TYPE_HIBERNATE = "hibernate";

    /**
     * JNDI Name of Mail Session.  As configured in the appserver.
     */
    public static final String JNDI_MAIL = "mail/Session";

    /**
     * Default from address for e-mail messages. You should change
     * this to an e-mail address that your users can reply to.
     */
    public static final String DEFAULT_FROM = "[email protected]";

    /** Application scoped attribute for authentication url */
    public static final String AUTH_URL = "authURL";

    /** Application scoped attributes for SSL Switching */
    public static final String HTTP_PORT = "httpPort";
    public static final String HTTPS_PORT = "httpsPort";

    /** The application scoped attribute for indicating a secure login */
    public static final String SECURE_LOGIN = "secureLogin";

    /** The encryption algorithm key to be used for passwords */
    public static final String ENC_ALGORITHM = "algorithm";

    /** A flag to indicate if passwords should be encrypted */
    public static final String ENCRYPT_PASSWORD = "encryptPassword";

    /** File separator from System properties */
    public static final String FILE_SEP = System.getProperty("file.separator");

    /** User home from System properties */
    public static final String USER_HOME =
        System.getProperty("user.home") + FILE_SEP;

    /**
     * The session scope attribute under which the User object for the
     * currently logged in user is stored.
     */
    public static final String USER_KEY = "currentUserForm";

    /**
     * The request scope attribute under which an editable user form is stored
     */
    public static final String USER_EDIT_KEY = "userFormEx";

    /**
     * The request scope attribute that holds the user list
     */
    public static final String USER_LIST = "userList";

    /**
     * The request scope attribute for storing a resume
     */
    public static final String RESUME_KEY = "resumeForm";

    /**
     * The request scope attribute for storing an list of a user's resumes
     */
    public static final String USER_RESUMES = "userResumes";

    /**
     * The request scope attribute under which a template form is stored
     */
    public static final String TEMPLATE_KEY = "templateForm";
    
    /**
     * The request scope attribute under which a resume skill form is stored
     */
    public static final String RESUME_SKILL_KEY = "resumeSkillForm";
    
    /**
     * The request scope attribute that holds the resume skill list
     */
    public static final String RESUME_SKILLS = "resumeSkillList";

    /**
     * The request scope attribute under which a education form is stored
     */
    public static final String EDUCATION_KEY = "educationForm";
    
    /**
     * The request scope attribute that holds the schools list
     */
    public static final String SCHOOLS = "schools";
    
    /**
     * The request scope attribute under which a resume skill form is stored
     */
    public static final String EXPERIENCE_KEY = "experienceForm";
    
    /**
     * The request scope attribute that holds the experiences list
     */
    public static final String EXPERIENCES = "experiences";
    
    /**
     * The request scope attribute under which a reference form is stored
     */
    public static final String REFERENCE_KEY = "referenceForm";
    
    /**
     * The request scope attribute that holds the references list
     */
    public static final String REFERENCES = "references";
    
    /**
     * The request scope attribute under which a membership form is stored
     */
    public static final String MEMBERSHIP_KEY = "membershipForm";
    
    /**
     * The request scope attribute that holds the resume skill list
     */
    public static final String MEMBERSHIPS = "memberships";

    /**
     * The application scope attribute that holds the values for the
     * salaryTypes list (used in a drop-down).
     */
    public static final String SALARY_TYPES_LIST = "salaryTypes";

    /**
     * The application scope attribute that holds the values for the
     * templates list (used in a drop-down).
     */
    public static final String TEMPLATE_LIST = "templateList";

    /**
     * The application scope attribute that holds the values for the
     * work status list (used as radio buttons).
     */
    public static final String WORK_STATUS_LIST = "workStatuses";

    /**
     * The application scope attribute that holds the values for the
     * degrees drop-down.
     */
    public static final String DEGREES = "degreeList";

    /**
     * The request scope attribute for indicating a newly-registered user
     */
    public static final String REGISTERED = "registered";

    /**
     * The name of the Administrator role, as specified in web.xml
     */
    public static final String ADMIN_ROLE = "admin";
    
    /**
     * The name of the User role, as specified in web.xml
     */
    public static final String USER_ROLE = "user";

    /**
     * The name of the user's role list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String USER_ROLES = "userRoles";

    /**
     * The name of the available roles list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String AVAILABLE_ROLES = "availableRoles";

    /**
     * Name of cookie for "Remember Me" functionality.
     */
    public static final String LOGIN_COOKIE = "sessionId";

    /**
     * The name of the configuration hashmap stored in application scope.
     */
    public static final String CONFIG = "appConfig";
}