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

public enum StorageDomainType {

    Master,
    Data,
    ISO,
    ImportExport,
    Image,
    Unknown;

    public int getValue() {
        return this.ordinal();
    }

    public static StorageDomainType forValue(int value) {
        return values()[value];
    }

    public boolean isDataDomain() {
        return (this == Data || this == Master);
    }

    public boolean isIsoOrImportExportDomain() {
        return (this == ISO || this == ImportExport);
    }

    public boolean isInternalDomain() {
        return isDataDomain() || isIsoOrImportExportDomain();
    }
}

@@ -142,16 +142,28 @@
  Image,%0A
+    Volume,%0A
     Unkn

add Volume to StorageDomainType enum