package org.ovirt.engine.core.bll;

import org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters;
import org.ovirt.engine.core.dal.dbbroker.DbFacade;

public class GetVmTemplatesWithPermittedActionQuery<P extends GetEntitiesWithPermittedActionParameters>
        extends QueriesCommandBase<P> {

    public GetVmTemplatesWithPermittedActionQuery(P parameters) {
        super(parameters);
    }

    @Override
    protected void executeQueryCommand() {
        P params = getParameters();
        setReturnValue(DbFacade.getInstance().getVmTemplateDAO().
                getTemplatesWithPermittedAction(getUserID(), params.getActionGroup()));
    }
}

@@ -118,60 +118,8 @@
 ers;
-%0Aimport org.ovirt.engine.core.dal.dbbroker.DbFacade;
 %0A%0Apu
@@ -481,16 +481,19 @@
 lue(
+get
 DbFacade
 .get
@@ -492,20 +492,8 @@
 cade
-.getInstance
 ().g

Clean GetVmTemplatesWithPermittedActionQuery