Search in sources :

Example 1 with MacPoolParameters

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());
        }
    });
}
Also used : MacPool(org.ovirt.engine.core.common.businessentities.MacPool) MacPoolParameters(org.ovirt.engine.core.common.action.MacPoolParameters)

Example 2 with MacPoolParameters

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));
}
Also used : IdQueryParameters(org.ovirt.engine.core.common.queries.IdQueryParameters) MacPoolParameters(org.ovirt.engine.core.common.action.MacPoolParameters) Guid(org.ovirt.engine.core.compat.Guid)

Aggregations

MacPoolParameters (org.ovirt.engine.core.common.action.MacPoolParameters)2 MacPool (org.ovirt.engine.core.common.businessentities.MacPool)1 IdQueryParameters (org.ovirt.engine.core.common.queries.IdQueryParameters)1 Guid (org.ovirt.engine.core.compat.Guid)1