地质所 沉降监测网建设项目
chenhuan
2024-05-16 98b1fc47a5c40422a7289c9ac10960f26f742d93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.javaweb.applicationEvent;
 
/**
 * Created by Administrator on 2018/11/20.
 * 自定义的系统事件
 */
public enum ApplicationEventDefined {
 
    ON_BEFORE_LOGIN("onBeforeLogin","用户登陆前"),
    ON_AFTER_LOGIN("onAfterLogin","用户登后"),
    ON_USER_CREATED("onUserCreated","用户创建完成"),
    ON_ROLE_CREATED("onRoleCreated","角色创建完成"),
    ON_UNIT_CREATED("onUnitCreated","机构创建完成"),
    ON_GROUP_CREATED("onGroupCreated","用户组创建完成"),
    ON_RESOURCE_CREATED("onResourceCreated","资源创建完成"),
    ON_SYSTEM_CONFIG_UPDATED("onSystemConfigUpdated","系统配置更新后"),
    ON_SCHEDULER_EXECUTED_BY_HAND("onSchedulerExecutedByHand","手工触发定时任务后"),
    ON_SCHEDULER_EXECUTED("onSchedulerExecuted","定时任务执行后");
    private String value;
    private String description;
    private ApplicationEventDefined(String value, String description){
        this.value=value;
        this.description=description;
    }
    public String getDescription(){
        return description;
    }
    public String getValue(){
        return value;
    }
    @Override
    public String toString() {
        return value;
    }
}