package org.ovirt.engine.core.common.businessentities;

import java.util.HashMap;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = "QuotaEnforcmentTypeEnum")
public enum QuotaEnforcmentTypeEnum {
    DISABLED(0),
    SOFT_ENFORCEMENT(1),
    HARD_ENFORCEMENT(2);

    private final int enforcementType;
    private static java.util.HashMap<Integer, QuotaEnforcmentTypeEnum> mappings =
            new HashMap<Integer, QuotaEnforcmentTypeEnum>();

    static {
        for (QuotaEnforcmentTypeEnum component : values()) {
            mappings.put(component.getValue(), component);
        }
    }

    public int getValue() {
        return enforcementType;
    }

    public static QuotaEnforcmentTypeEnum forValue(int value) {
        return mappings.get(value);
    }

    private QuotaEnforcmentTypeEnum(int enforcementType) {
        this.enforcementType = enforcementType;
    }

    public int getQuotaEnforcementType() {
        return this.enforcementType;
    }
}

Add quota enforcement type enum.
ovirt-engine: Add quota enforcement type enum.

In the next patch I added the quota enforcement type enum.
The quota Enforcement type enum, should indicate if the storage pool is
enforcing the quota limitation or not.

Acked by:Omer Frenkel  <ofrenkel@redhat.com>

Change-Id: I39c78f64da8cee2ec8cedb1976aeae73d95276de
