/********************************************************************
 * Copyright © 2005 VHA. All rights reserved
 ********************************************************************/
package gov.va.med.esr.ui.person.action;

/**
 * @author Muddaiah Ranga
 * @version 3.0
 */
public interface MergeConstants
{
    // General Constants
    public static final String COMMA = ",";
    public static final String DELIMITER = ";";
    public static final String PRIMARY = "P";
    public static final String DEPRECATED = "D";
    public static final String EQUALS = "=";
    public static final String UNDERSCORE = "_";
    public static final String CHECKED = "checked";
    public static final String RADIO = "radio";
    public static final String CHECKBOX = "checkbox";
    public static final String EXP_COL_ID = "ExpColId";
    public static final String ENTITY_KEY_SORT_PROPERTY = "entityKey.keyValueAsString";
    public static final String ERROR_SELECTION_REQUIRED_KEY =
        "errors.person.mergeSelectionRequired";
    public static final String DIGIT_REGEX = "([0-9]*)";

    // Request and Session Keys
    public static final String SELECTED_PARAM_MAP_SESSION_KEY = "selectedParameterMap";
    public static final String PERSON_MERGE_INFO_MAP_SESSION_KEY = "personMergeInfoMap";
    public static final String PERSON_MERGE_INFO_SESSION_KEY = "personMergeInfo";
    public static final String PRIMARY_MERGE_PERSON_SESSION_KEY = "primaryMergePerson";
    public static final String DEPRECATED_MERGE_PERSON_SESSION_KEY = "deprecatedMergePerson";
    public static final String TAB_NAME_REQUEST_KEY = "tabName";

    // Person Merge Info Map Keys
    public static final String PERSON_MERGE_INFO_KEY = "person_personMergeInfo";
    public static final String PERSON_USER_SELECTIONS_KEY = "person_userSelections";
    public static final String PERSON_EXP_COL_FIELDNAMES_EXT_KEY = "_expColFieldnames";

    // Struts Forwards
    // Note that the tab forwards must follow the convention of "display" + the tab names listed
    // below (TABS) with the first letter capitalized.
    // See PersonMergeDetailAction.mergeRecordsNow for this usage.
    public static final String FORWARD_DISPLAY_ELIGIBILITY = "displayEligibility";
    public static final String FORWARD_DISPLAY_DEMOGRAPHICS = "displayDemographics";
    public static final String FORWARD_DISPLAY_MILITARY_SERVICE = "displayMilitaryService";
    public static final String FORWARD_DISPLAY_FINANCIALS = "displayFinancials";
    public static final String FORWARD_DISPLAY_FACILITY = "displayFacility";
    public static final String FORWARD_PERSON_MERGE_WORKLIST = "personMergeWorklist";

    // The tab names
    public static final String[] TABS = {"eligibility", "demographics", "militaryService", "financials", "facility"};
    
    public static final String SET_NESTED_PROP_ERR_FOR_EMP = "Null property value for 'employment'";
}
