use of org.ovirt.engine.core.common.action.StoragePoolParametersBase in project ovirt-engine by oVirt.
the class BackendDataCenterResource method remove.
@Override
public Response remove() {
get();
StoragePoolParametersBase params = new StoragePoolParametersBase(asGuid(id));
boolean force = ParametersHelper.getBooleanParameter(httpHeaders, uriInfo, FORCE, true, false);
if (force) {
params.setForceDelete(force);
}
return performAction(ActionType.RemoveStoragePool, params);
}
use of org.ovirt.engine.core.common.action.StoragePoolParametersBase in project ovirt-engine by oVirt.
the class AddDataCenterRM method rollback5.
private void rollback5() {
Enlistment enlistment = context.enlistment;
EnlistmentContext enlistmentContext = (EnlistmentContext) enlistment.getContext();
// Try to remove data center.
if (enlistmentContext.getDataCenterId() != null) {
Frontend.getInstance().runAction(ActionType.RemoveStoragePool, new StoragePoolParametersBase(enlistmentContext.getDataCenterId()));
}
// Call done, no matter whether the data center deletion was successful.
context.enlistment = null;
enlistment.done();
}
Aggregations