/**
 * Copyright (c) 2005-2012 https://github.com/zhangkaitao
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.huntering.common.plugin.entity;

/**
 * <p>实体实现该接口，表示需要进行状态管理
 */
public interface Stateable<T extends Enum<? extends Stateable.Status>> {

    public void setStatus(T status);

    public T getStatus();


    /**
     * 标识接口，所有状态实现，需要实现该状态接口
     */
    public static interface Status {
    }

    /**
     * 审核状态
     */
    public static enum RegisterStatus implements Status {
        waiting("等待审核"), fail("审核失败"), success("审核成功");
        private final String info;

        private RegisterStatus(String info) {
            this.info = info;
        }

        public String getInfo() {
            return info;
        }
    }

    /**
     * 是否显示
     */
    public static enum ShowStatus implements Status {
        hide("不显示"), show("显示");
        private final String info;

        private ShowStatus(String info) {
            this.info = info;
        }

        public String getInfo() {
            return info;
        }
    }
    
    public static enum AuditStatus implements Status {
    	ACTIVE,
		DELETED,
		DISABLED
    }

    public static enum MessageType implements Status {
    	RESUME,
		ACTIVITY
    }
    
    public static enum PeopleRole implements Status {
    	INTERVIEWER,
		INTERVIEE,
		PARTICIPANT
    }
}

@@ -1350,17 +1350,20 @@
 VIEWER,%0A
-%09
+    
 %09INTERVI
@@ -1363,16 +1363,18 @@
 INTERVIE
+WE
 E,%0A%09%09PAR

Modify the people role enum