use of org.ovirt.engine.ui.uicompat.PreparingEnlistment in project ovirt-engine by oVirt.
the class AddDataCenterRM method prepare3.
private void prepare3() {
PreparingEnlistment enlistment = (PreparingEnlistment) context.enlistment;
EnlistmentContext enlistmentContext = (EnlistmentContext) enlistment.getContext();
ActionReturnValue returnValue = context.addDataCenterReturnValue;
context.enlistment = null;
if (returnValue != null && returnValue.getSucceeded()) {
enlistmentContext.setDataCenterId((Guid) returnValue.getActionReturnValue());
enlistment.prepared();
} else {
enlistment.forceRollback();
}
}
Aggregations