提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.common.constant; |
懒 |
2 |
|
|
3 |
/** |
|
4 |
* 用户常量信息 |
|
5 |
* |
|
6 |
* @author jc |
|
7 |
*/ |
|
8 |
public class UserConstants |
|
9 |
{ |
|
10 |
/** |
|
11 |
* 平台内系统用户的唯一标志 |
|
12 |
*/ |
|
13 |
public static final String SYS_USER = "SYS_USER"; |
|
14 |
|
|
15 |
/** 正常状态 */ |
|
16 |
public static final String NORMAL = "0"; |
|
17 |
|
|
18 |
/** 异常状态 */ |
|
19 |
public static final String EXCEPTION = "1"; |
|
20 |
|
|
21 |
/** 用户封禁状态 */ |
|
22 |
public static final String USER_DISABLE = "1"; |
|
23 |
|
|
24 |
/** 角色封禁状态 */ |
|
25 |
public static final String ROLE_DISABLE = "1"; |
|
26 |
|
|
27 |
/** 部门正常状态 */ |
|
28 |
public static final String DEPT_NORMAL = "0"; |
|
29 |
|
|
30 |
/** 部门停用状态 */ |
|
31 |
public static final String DEPT_DISABLE = "1"; |
|
32 |
|
|
33 |
/** 字典正常状态 */ |
|
34 |
public static final String DICT_NORMAL = "0"; |
|
35 |
|
|
36 |
/** 是否为系统默认(是) */ |
|
37 |
public static final String YES = "Y"; |
|
38 |
|
|
39 |
/** 是否菜单外链(是) */ |
|
40 |
public static final String YES_FRAME = "0"; |
|
41 |
|
|
42 |
/** 是否菜单外链(否) */ |
|
43 |
public static final String NO_FRAME = "1"; |
|
44 |
|
|
45 |
/** 菜单类型(目录) */ |
|
46 |
public static final String TYPE_DIR = "M"; |
|
47 |
|
|
48 |
/** 菜单类型(菜单) */ |
|
49 |
public static final String TYPE_MENU = "C"; |
|
50 |
|
|
51 |
/** 菜单类型(按钮) */ |
|
52 |
public static final String TYPE_BUTTON = "F"; |
|
53 |
|
|
54 |
/** Layout组件标识 */ |
|
55 |
public final static String LAYOUT = "Layout"; |
|
56 |
|
|
57 |
/** ParentView组件标识 */ |
|
58 |
public final static String PARENT_VIEW = "ParentView"; |
|
59 |
|
|
60 |
/** InnerLink组件标识 */ |
|
61 |
public final static String INNER_LINK = "InnerLink"; |
|
62 |
|
|
63 |
/** 校验是否唯一的返回标识 */ |
|
64 |
public final static boolean UNIQUE = true; |
|
65 |
public final static boolean NOT_UNIQUE = false; |
|
66 |
|
|
67 |
/** |
|
68 |
* 用户名长度限制 |
|
69 |
*/ |
|
70 |
public static final int USERNAME_MIN_LENGTH = 2; |
|
71 |
public static final int USERNAME_MAX_LENGTH = 20; |
|
72 |
|
|
73 |
/** |
|
74 |
* 密码长度限制 |
|
75 |
*/ |
|
76 |
public static final int PASSWORD_MIN_LENGTH = 5; |
|
77 |
public static final int PASSWORD_MAX_LENGTH = 20; |
|
78 |
} |