package com.ssm.web;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.naming.InitialContext;

import com.ssm.model.system.SysDictionary;

public class Const {
	
	/**
	 * 存放字典表中的常量 key为SysDictionary.namespace
	 * 常量map
	 */
	public static Map<String, List<SysDictionary>> constMap = new HashMap<String, List<SysDictionary>>();
	
	public static InitialContext ctx = null;

	public static String SYSUSER_STATUS_ENABLED = "0";
	public static String SYSUSER_STATUS_DISABLED = "1";
	public static String SYSUSER_STATUS_DEL = "9";

	public static String COMMON_STATUS_ENABLED = "0";
	public static String COMMON_STATUS_DISABLED = "1";

	public static String SYSMENU_STATUS_ENABLED = "0";
	public static String SYSMENU_STATUS_DISABLED = "1";

	/**
	 * 通用权限
	 */
	public static final String SYSTEM_ROLE_LIMIT_PID = "COMMON_PID";
	public static final String SYSTEM_ROLE_LIMIT_MID = "COMMON_MID";

	/**
	 * user类别
	 */
	public static final String SYSUSER_ROLE_NORMAL = "normal";// 供应商普通用户
	public static final String SYSUSER_ROLE_SUPER = "super";// 供应商superadmin
	public static final String SYSUSER_ROLE_OCJ = "ocj";// 东方cj用户
	public static final String SYSUSER_ROLE_ADMIN = "admin";// 系统管理员

	
	/*用户登录时session 绑定sysUser的key*/
	public static final String USER_SESSION_KEY = "USER_SESSION_KEY"; 
	// 用户 重置 密码
	public static final String DEFAULT_USER_PASSWORD = "dgt.0000";

	//字典分组 名称
	public static final String NAMESPACE_RESUME_STATUS = "RESUME_STATUS";

	// return status for smart phone
	public static String RETURN_STAT_OK = "ok";
	public static String RETURN_STAT_FAIL = "fail";

	public static int CACHE_MONTH = 1 * 3600 * 24 * 31;
	public static int CACHE_WEEK = 1 * 3600 * 24 * 7;
	public static int CACHE_DAY = 1 * 3600 * 24;
	
	public static final String UPLOAD_RESUME_STORE_PATH = "C:\\upload\\resume"; 
	
}
