Search in sources :

Example 16 with StoragePoolIsoMapId

use of org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId in project ovirt-engine by oVirt.

the class RemoveStorageDomainCommand method isDomainAttached.

protected boolean isDomainAttached(StorageDomain storageDomain) {
    if (storageDomain.getStoragePoolId() == null) {
        return false;
    }
    Guid storageDomainId = storageDomain.getId();
    Guid storagePoolId = storageDomain.getStoragePoolId();
    return storagePoolIsoMapDao.get(new StoragePoolIsoMapId(storageDomainId, storagePoolId)) != null;
}
Also used : StoragePoolIsoMapId(org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId) Guid(org.ovirt.engine.core.compat.Guid)

Aggregations

StoragePoolIsoMapId (org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId)16 Guid (org.ovirt.engine.core.compat.Guid)12 StoragePoolIsoMap (org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap)10 StorageDomain (org.ovirt.engine.core.common.businessentities.StorageDomain)5 StorageDomainStatic (org.ovirt.engine.core.common.businessentities.StorageDomainStatic)4 DiskImage (org.ovirt.engine.core.common.businessentities.storage.DiskImage)4 Pair (org.ovirt.engine.core.common.utils.Pair)4 StorageDomainValidator (org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 LinkedList (java.util.LinkedList)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 StorageDomainType (org.ovirt.engine.core.common.businessentities.StorageDomainType)2 VDS (org.ovirt.engine.core.common.businessentities.VDS)2 Event (org.ovirt.engine.core.common.eventqueue.Event)2 DisconnectStoragePoolVDSCommandParameters (org.ovirt.engine.core.common.vdscommands.DisconnectStoragePoolVDSCommandParameters)2 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)2 MessageFormat (java.text.MessageFormat)1 Arrays (java.util.Arrays)1