use of org.ovirt.engine.core.common.action.MacPoolParameters in project ovirt-engine by oVirt.
the class SharedMacPoolModel method onSave.
private void onSave() {
if (getProgress() != null || !validate()) {
return;
}
startProgress();
MacPool macPool = flush();
Frontend.getInstance().runAction(actionType, new MacPoolParameters(macPool), result -> {
stopProgress();
if (result.getReturnValue() != null && result.getReturnValue().getSucceeded()) {
onActionSucceeded((Guid) result.getReturnValue().getActionReturnValue());
}
});
}
use of org.ovirt.engine.core.common.action.MacPoolParameters in project ovirt-engine by oVirt.
the class BackendMacPoolsResource method add.
@Override
public Response add(MacPool macPool) {
validateParameters(macPool, "name");
final org.ovirt.engine.core.common.businessentities.MacPool entity = map(macPool);
return performCreate(ActionType.AddMacPool, new MacPoolParameters(entity), new QueryIdResolver<Guid>(QueryType.GetMacPoolById, IdQueryParameters.class));
}
Aggregations