Search in sources :

Example 1 with ImagesActionsParametersBase

use of org.ovirt.engine.core.common.action.ImagesActionsParametersBase in project ovirt-engine by oVirt.

the class CreateSnapshotDiskCommand method buildCreateSnapshotParameters.

private ImagesActionsParametersBase buildCreateSnapshotParameters(DiskImage image) {
    ImagesActionsParametersBase result = new ImagesActionsParametersBase(image.getImageId());
    result.setDescription(getParameters().getDescription());
    result.setSessionId(getParameters().getSessionId());
    result.setQuotaId(image.getQuotaId());
    result.setDiskProfileId(image.getDiskProfileId());
    result.setVmSnapshotId(getParameters().getNewActiveSnapshotId());
    result.setEntityInfo(getParameters().getEntityInfo());
    result.setParentCommand(getActionType());
    result.setParentParameters(getParameters());
    result.setDestinationImageId(getParameters().getDiskToImageIds().get(image.getId()));
    if (getParameters().getDiskIdsToIgnoreInChecks().contains(image.getId())) {
        result.setLeaveLocked(true);
    }
    return result;
}
Also used : ImagesActionsParametersBase(org.ovirt.engine.core.common.action.ImagesActionsParametersBase)

Aggregations

ImagesActionsParametersBase (org.ovirt.engine.core.common.action.ImagesActionsParametersBase)1