Daniel Erez has uploaded a new change for review. Change subject: webadmin: AddDataCenter - remove commented out code ......................................................................
webadmin: AddDataCenter - remove commented out code Removed commented out code in AddDataCenterRM Change-Id: I328e46ead1b72a5f5475278a560d1e95b6c163e4 Signed-off-by: Daniel Erez <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java 1 file changed, 0 insertions(+), 95 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/17133/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java index 038d15e..b32ea69 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java @@ -298,101 +298,6 @@ enlistment.Done(); } - // @Override - // public void Prepare(PreparingEnlistment enlistment) - // { - // ConfigureLocalStorageModel model = (ConfigureLocalStorageModel) getModel().getWindow(); - // if (!model.getDontCreateDataCenter()) - // { - // DataCenterModel m = model.getDataCenter(); - // String name = (String) m.getName().getEntity(); - // // Try to find existing data center with the specified name. - // storage_pool dataCenter = DataProvider.GetDataCenterByName(name); - // if (dataCenter != null) - // { - // getData().setDataCenterId(dataCenter.getId()); - // enlistment.Prepared(); - // } - // - // else - // { - // dataCenter = new storage_pool(); - // dataCenter.setName(name); - // dataCenter.setdescription((String) m.getDescription().getEntity()); - // dataCenter.setstorage_pool_type((StorageType) m.getStorageTypeList().getSelectedItem()); - // dataCenter.setcompatibility_version((Version) m.getVersion().getSelectedItem()); - // - // VdcReturnValueBase returnValue = - // Frontend.RunAction(VdcActionType.AddEmptyStoragePool, - // new StoragePoolManagementParameter(dataCenter)); - // - // if (returnValue != null && returnValue.getSucceeded()) - // { - // getData().setDataCenterId((Guid) returnValue.getActionReturnValue()); - // enlistment.Prepared(); - // } else - // { - // enlistment.ForceRollback(); - // } - // } - // } - // else - // { - // enlistment.Prepared(); - // } - // } - - // @Override - // public void Rollback(Enlistment enlistment) - // { - // if (getModel() == null || getModel().getSelectedItem() == null) - // { - // return; - // } - // VDS host = (VDS) getModel().getSelectedItem(); - // // perform rollback only when the host is in maintenance - // if (host.getstatus() != VDSStatus.Maintenance) - // { - // return; - // } - // - // storage_pool dataCenter = DataProvider.GetDataCenterById(getData().getDataCenterId()); - // - // // perform rollback only when the Data Center is un uninitialized - // if (dataCenter.getstatus() != StoragePoolStatus.Uninitialized) - // { - // return; - // } - // - // if (getData().getOldClusterId() != null - // && !host.getvds_group_id().getValue().equals(getData().getOldClusterId().getValue())) - // { - // // Switch host back to previous cluster. - // VdcReturnValueBase returnValue = - // Frontend.RunAction(VdcActionType.ChangeVDSCluster, - // new ChangeVDSClusterParameters(getData().getOldClusterId(), host.getvds_id())); - // - // if (returnValue != null && returnValue.getSucceeded()) - // { - // // Remove cluster. - // if (getData().getClusterId() != null) - // { - // Frontend.RunAction(VdcActionType.RemoveVdsGroup, - // new VdsGroupParametersBase(getData().getClusterId())); - // } - // - // // Remove data center. - // if (getData().getDataCenterId() != null) - // { - // Frontend.RunAction(VdcActionType.RemoveStoragePool, - // new StoragePoolParametersBase(getData().getDataCenterId())); - // } - // } - // } - // - // enlistment.Done(); - // } - private final Context context = new Context(); public final class Context { -- To view, visit http://gerrit.ovirt.org/17133 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I328e46ead1b72a5f5475278a560d1e95b6c163e4 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Daniel Erez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
