package org.ovirt.engine.core.bll.storage;

import org.ovirt.engine.core.bll.QueriesCommandBase;
import org.ovirt.engine.core.common.queries.StoragePoolQueryParametersBase;
import org.ovirt.engine.core.dal.dbbroker.DbFacade;

public class GetStorageDomainsByStoragePoolIdQuery<P extends StoragePoolQueryParametersBase>
        extends QueriesCommandBase<P> {
    public GetStorageDomainsByStoragePoolIdQuery(P parameters) {
        super(parameters);
    }

    @Override
    protected void executeQueryCommand() {
        getQueryReturnValue().setReturnValue(DbFacade.getInstance().
                getStorageDomainDAO().getAllForStoragePool(getParameters().getStoragePoolId(),
                        getUserID(),
                        getParameters().isFiltered()));
    }
}

@@ -169,60 +169,8 @@
 ase;
-%0Aimport org.ovirt.engine.core.dal.dbbroker.DbFacade;
 %0A%0Apu
@@ -505,16 +505,19 @@
 lue(
+get
 DbFacade
 .get
@@ -516,20 +516,8 @@
 cade
-.getInstance
 ().%0A

clean GetStorageDomainsByStoragePoolIdQuery