use of org.ovirt.engine.core.common.action.LibvirtSecretParameters in project ovirt-engine by oVirt.
the class ProviderSecretListModel method onRemoveSecret.
private void onRemoveSecret() {
ConfirmationModel model = (ConfirmationModel) getConfirmWindow();
if (model.getProgress() != null) {
return;
}
ArrayList<ActionParametersBase> parameters = new ArrayList<>();
for (LibvirtSecret libvirtSecret : getSelectedItems()) {
LibvirtSecretParameters param = new LibvirtSecretParameters(libvirtSecret);
parameters.add(param);
}
Frontend.getInstance().runMultipleAction(ActionType.RemoveLibvirtSecret, parameters, result -> cancel());
}
use of org.ovirt.engine.core.common.action.LibvirtSecretParameters in project ovirt-engine by oVirt.
the class BackendOpenStackVolumeAuthenticationKeyResource method remove.
@Override
public Response remove() {
LibvirtSecret libvirtSecret = map(get(), null);
LibvirtSecretParameters parameters = new LibvirtSecretParameters(libvirtSecret);
return performAction(ActionType.RemoveLibvirtSecret, parameters);
}
use of org.ovirt.engine.core.common.action.LibvirtSecretParameters in project ovirt-engine by oVirt.
the class LibvirtSecretModel method onSave.
private void onSave() {
if (!validate()) {
return;
}
ActionType actionType = isNew() ? ActionType.AddLibvirtSecret : ActionType.UpdateLibvirtSecret;
flush();
Frontend.getInstance().runAction(actionType, new LibvirtSecretParameters(getEntity()), result -> {
ActionReturnValue res = result.getReturnValue();
if (res.getSucceeded()) {
getCancelCommand().execute();
}
}, this);
}
Aggregations