Search in sources :

Example 11 with PreparingEnlistment

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();
    }
}
Also used : PreparingEnlistment(org.ovirt.engine.ui.uicompat.PreparingEnlistment) ActionReturnValue(org.ovirt.engine.core.common.action.ActionReturnValue)

Aggregations

PreparingEnlistment (org.ovirt.engine.ui.uicompat.PreparingEnlistment)11 ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)10 StorageDomainManagementParameter (org.ovirt.engine.core.common.action.StorageDomainManagementParameter)2 StorageServerConnectionParametersBase (org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase)2 StorageDomainStatic (org.ovirt.engine.core.common.businessentities.StorageDomainStatic)2 StorageServerConnections (org.ovirt.engine.core.common.businessentities.StorageServerConnections)2 VDS (org.ovirt.engine.core.common.businessentities.VDS)2 Timer (com.google.gwt.user.client.Timer)1 ActionType (org.ovirt.engine.core.common.action.ActionType)1 ChangeVDSClusterParameters (org.ovirt.engine.core.common.action.ChangeVDSClusterParameters)1 ClusterOperationParameters (org.ovirt.engine.core.common.action.ClusterOperationParameters)1 ManagementNetworkOnClusterOperationParameters (org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters)1 StoragePoolManagementParameter (org.ovirt.engine.core.common.action.StoragePoolManagementParameter)1 VdsActionParameters (org.ovirt.engine.core.common.action.VdsActionParameters)1 Cluster (org.ovirt.engine.core.common.businessentities.Cluster)1 StorageDomainType (org.ovirt.engine.core.common.businessentities.StorageDomainType)1 StoragePool (org.ovirt.engine.core.common.businessentities.StoragePool)1 VDSStatus (org.ovirt.engine.core.common.businessentities.VDSStatus)1 StorageType (org.ovirt.engine.core.common.businessentities.storage.StorageType)1 Version (org.ovirt.engine.core.compat.Version)1