package de.ids_mannheim.korap.constant;

/**
 * Defines some predefined roles used in the system.
 * 
 * @author margaretha
 *
 */
public enum PredefinedRole {
    USER_GROUP_ADMIN_READ, 
    USER_GROUP_ADMIN_WRITE, 
    USER_GROUP_ADMIN_DELETE, 
    
    USER_GROUP_MEMBER_DELETE, 
    
    QUERY_ADMIN_READ,
    QUERY_ADMIN_WRITE,
    QUERY_ADMIN_DELETE,
    
    QUERY_MEMBER_READ;

//    USER_GROUP_ADMIN(1), USER_GROUP_MEMBER(2), VC_ACCESS_ADMIN(
//            3), VC_ACCESS_MEMBER(
//                    4), QUERY_ACCESS_ADMIN(5), QUERY_ACCESS_MEMBER(6);
//
//    private int id;
//    private String name;
//
//    PredefinedRole (int i) {
//        this.id = i;
//        this.name = name().toLowerCase().replace("_", " ");
//    }
//
//    public int getId () {
//        return id;
//    }

    
    private String value;

    PredefinedRole () {
        this.value = name().toLowerCase().replace("_", " ");
    }
    
    

    @Override
    public String toString () {
        return this.value;
    }
}
