UserStatus.java 813 Bytes
Newer Older
eddie.woo's avatar
eddie.woo committed
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 36 37 38
package pwc.taxtech.atms.common;

/** @see PwC.Tax.Tech.CIT.Globals\Utils\Constant.cs*/
public enum UserStatus {
    // public static readonly int Active = 1;
    // public static readonly int InActive = 0;
    // public static readonly int Disabled = -1;
    // public static readonly int Locked = -2;
    /***/
    Active(1),
    /***/
    InActive(0),
    /***/
    Disabled(-1),
    /***/
    Locked(-2),
    /***/
    ;

    private Integer value;

    UserStatus(Integer value) {
        this.value = value;
    }

    public Integer value() {
        return value;
    }

    public static UserStatus valueOf(Integer value) {
        for (UserStatus item : UserStatus.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }
}