EventStatus.java 701 Bytes
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fi.insomnia.bortal.enums;

/**
 * 
 * @author tuukka
 */
public enum EventStatus {
    INACTIVE, // Not yet public
    TICKET_SALES, // Site is public with ticket sales
    PRE_EVENT, // Upcoming event...
    RUNNING, // Ongoing event
    SPLITTED, // Detached: The event has a copy of it's database. SPLITTED event
    // cannot be modified.
    ARCHIVED; // Past events are archived

    public static EventStatus getEventStatusEnum(String name) {
        return EventStatus.valueOf(name);
    }

    public static EventStatus getDefaultEventStatusEnum() {
        return INACTIVE;
    }
}