Search in sources :

Example 6 with ImageStorageDomainMapId

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

the class RemoveImageCommand method removeImageMapping.

private void removeImageMapping() {
    TransactionSupport.executeInNewTransaction(() -> {
        imageStorageDomainMapDao.remove(new ImageStorageDomainMapId(getParameters().getImageId(), getParameters().getStorageDomainId()));
        imageDao.updateStatusOfImagesByImageGroupId(getRelevantDiskImage().getId(), getRelevantDiskImage().getImageStatus());
        return null;
    });
}
Also used : ImageStorageDomainMapId(org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMapId)

Aggregations

ImageStorageDomainMapId (org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMapId)6 DiskImage (org.ovirt.engine.core.common.businessentities.storage.DiskImage)3 ImageStorageDomainMap (org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMap)3 Collection (java.util.Collection)1 Test (org.junit.Test)1 ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)1 ImagesContainterParametersBase (org.ovirt.engine.core.common.action.ImagesContainterParametersBase)1 VmDeviceId (org.ovirt.engine.core.common.businessentities.VmDeviceId)1 Guid (org.ovirt.engine.core.compat.Guid)1