auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void getAllAttachableDisks ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ; } } ; org.ovirt.engine.core.common.queries.GetAllAttachableDisks params = new org.ovirt.engine.core.common.queries.GetAllAttachableDisks ( storagePoolId ) ; params.setVmId ( vmId ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllAttachableDisks , params , aQuery ) ; }

Target:
public static void getLunsByVgId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String vgId , org.ovirt.engine.core.compat.Guid vdsId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.LUNs > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.LUNs > ( ) ; } } ; org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters params = new org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters ( vgId , vdsId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetLunsByVgId , params , aQuery ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getMemoryBalloonDeviceEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > graphicsDevices = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; java.util.Collection < org.ovirt.engine.core.common.businessentities.GraphicsType > graphicsTypesCollection = new java.util.HashSet < org.ovirt.engine.core.common.businessentities.GraphicsType > ( ) ; for ( org.ovirt.engine.core.common.businessentities.GraphicsDevice graphicsDevice : graphicsDevices ) { graphicsTypesCollection.add ( graphicsDevice.getGraphicsType ( ) ) ; } initDisplayTypes ( instanceType.getDefaultDisplayType ( ) , UnitVmModel.GraphicsTypes.fromGraphicsTypes ( graphicsTypesCollection ) ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.GraphicsConsole console ) { org.ovirt.engine.core.common.businessentities.GraphicsDevice device = getMapper ( org.ovirt.engine.api.model.GraphicsConsole.class , org.ovirt.engine.core.common.businessentities.GraphicsDevice.class ) . map ( console , null ) ; device.setVmId ( guid ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase res = doCreateEntity ( ActionType.AddGraphicsAndVideoDevices , createAddGraphicsDeviceParams ( device ) ) ; if ( ( res != null ) && ( res.getSucceeded ( ) ) ) { return org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.find ( console , this :: list ) ; } throw new javax.ws.rs.WebApplicationException ( javax.ws.rs.core.Response.status ( Response.Status.NOT_FOUND ) . build ( ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.GraphicsConsole console ) { org.ovirt.engine.core.common.businessentities.GraphicsDevice device = getMapper ( org.ovirt.engine.api.model.GraphicsConsole.class , org.ovirt.engine.core.common.businessentities.GraphicsDevice.class ) . map ( console , null ) ; device.setVmId ( guid ) ; org.ovirt.engine.core.common.action.ActionReturnValue res = doCreateEntity ( ActionType.AddGraphicsAndVideoDevices , createAddGraphicsDeviceParams ( device ) ) ; if ( ( res != null ) && ( res.getSucceeded ( ) ) ) { return org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.find ( console , this :: list ) ; } throw new javax.ws.rs.WebApplicationException ( javax.ws.rs.core.Response.status ( Response.Status.NOT_FOUND ) . build ( ) ) ; }
Source:
public void oSType_SelectedItemChanged ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = getModel ( ) . getTemplate ( ) . getSelectedItem ( ) ; java.lang.Integer osType = getModel ( ) . getOSType ( ) . getSelectedItem ( ) ; if ( ( template != null ) && ( osType != null ) ) { updateVirtioScsiEnabled ( template.getId ( ) , osType ) ; } }

Target:
public void vmTypeChanged ( org.ovirt.engine.core.common.businessentities.VmType vmType ) { deactivateInstanceTypeManager ( ) ; if ( getModel ( ) . getProvisioning ( ) . getIsAvailable ( ) ) { getModel ( ) . getProvisioning ( ) . setEntity ( ( vmType == ( org.ovirt.engine.core.common.businessentities.VmType.Server ) ) ) ; } super . vmTypeChanged ( vmType ) ; activateInstanceTypeManager ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createNewVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithNoCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "Default" ) ; group.setId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID1 ) ; group.setArchitecture ( ArchitectureType.undefined ) ; return group ; }
Source:
protected org.ovirt.engine.core.compat.Guid findImageForSameDrive ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType ) { return findImageForSameDrive ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getVmDao ( ) . getVmsListForDisk ( getImage ( ) . getId ( ) , false ) . get ( 0 ) . getId ( ) , snapshotType ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid findImageForSameDrive ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType ) { return findImageForSameDrive ( snapshotDao.getId ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getVmDao ( ) . getVmsListForDisk ( getImage ( ) . getId ( ) , false ) . get ( 0 ) . getId ( ) , snapshotType ) ) ; }
Source:
public void getDataCenterList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ; } return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( "DataCenter: sortby name" , org.ovirt.engine.core.common.interfaces.SearchType.StoragePool ) , aQuery ) ; }

Target:
public void getClusterListByName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String name ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ; } return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( "Cluster: name=" + name ) + " sortby name" ) , org.ovirt.engine.core.common.interfaces.SearchType.Cluster ) , aQuery ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getBroker ( ) . glusterHookAdd ( org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getGlusterCommand ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getHookStage ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getHookName ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getHookContent ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getChecksum ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getEnabled ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getBroker ( ) . glusterHookAdd ( org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getGlusterCommand ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getHookStage ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getHookName ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getHookContent ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getChecksum ( ) , org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.getParameters ( ) . getEnabled ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.AddGlusterHookVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
private void removeMemoryVolumes ( ) { java.util.Set < java.lang.String > memoryStates = org.ovirt.engine.core.bll.memory.MemoryUtils.getMemoryVolumesFromSnapshots ( org.ovirt.engine.core.bll.RemoveVmCommand.getDbFacade ( ) . getSnapshotDao ( ) . getAll ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ) ; for ( java.lang.String memoryState : memoryStates ) { org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = runInternalAction ( VdcActionType.RemoveMemoryVolumes , new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) , org.ovirt.engine.core.bll.RemoveVmCommand.cloneContextAndDetachFromParent ( ) ) ; if ( ! ( retVal.getSucceeded ( ) ) ) { log.errorFormat ( "Failed to remove memory volumes whie removing vm {0} (volumes: {1})" , org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) , memoryState ) ; } } }

Target:
private void removeMemoryVolumes ( ) { java.util.Set < java.lang.String > memoryStates = org.ovirt.engine.core.bll.memory.MemoryUtils.getMemoryVolumesFromSnapshots ( org.ovirt.engine.core.bll.RemoveVmCommand.getDbFacade ( ) . getSnapshotDao ( ) . getAll ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ) ; for ( java.lang.String memoryState : memoryStates ) { org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = runInternalAction ( VdcActionType.RemoveMemoryVolumes , new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) , org.ovirt.engine.core.bll.RemoveVmCommand.cloneContextAndDetachFromParent ( ) ) ; if ( ! ( retVal.getSucceeded ( ) ) ) { log.error ( "Failed to remove memory volumes while removing vm '{}' (volumes: '{}')" , org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) , memoryState ) ; } } }
Source:
public void getExistingStorageDomainList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.StorageDomainType domainType , org.ovirt.engine.core.common.businessentities.StorageType storageType , java.lang.String path ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetExistingStorageDomainList , new org.ovirt.engine.core.common.queries.GetExistingStorageDomainListParameters ( hostId , storageType , domainType , path ) , aQuery ) ; }

Target:
public void getDataCenterMaxNameLength ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; } } ; getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.StoragePoolNameSizeLimit , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.createVolumeContainer ( sdUUID , imgGUID , size , volFormat , diskType , volUUID , descr , srcImgGUID , srcVolUUID ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > createVolumeInfo ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.createVolumeContainer ( jobId , createVolumeInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }
Source:
private void RunVMOnSpecificHost_EntityChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getRunVMOnSpecificHost ( ) . getEntity ( ) ) ) == true ) { getDontMigrateVM ( ) . setEntity ( false ) ; getDontMigrateVM ( ) . setIsChangable ( false ) ; } else { getDontMigrateVM ( ) . setIsChangable ( true ) ; } }

Target:
private void RunVMOnSpecificHost_EntityChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getRunVMOnSpecificHost ( ) . getEntity ( ) ) ) == true ) { clearAndDisable ( getDontMigrateVM ( ) ) ; getHostCpu ( ) . setIsChangable ( true ) ; } else { clearAndDisable ( getHostCpu ( ) ) ; getDontMigrateVM ( ) . setIsChangable ( true ) ; } behavior.updateCpuPinningVisibility ( ) ; }
Source:
public void testNonExistingStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDAO ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.mockito.Mockito.doReturn ( null ) . when ( command ) . executeHSMGetStorageDomainInfo ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.HSMGetStorageDomainInfoVDSCommandParameters.class ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }

Target:
public void testNonExistingStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDao ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.mockito.Mockito.doReturn ( null ) . when ( command ) . executeHSMGetStorageDomainInfo ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.HSMGetStorageDomainInfoVDSCommandParameters.class ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.tags > ret = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.tags > ( ) ; for ( org.ovirt.engine.core.common.businessentities.tags tags : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.tags > ) ( source ) ) ) { if ( ( tags.gettype ( ) ) == ( org.ovirt.engine.core.common.businessentities.TagsType.GeneralTag ) ) { ret.add ( tags ) ; } } return ret ; } return new org.ovirt.engine.core.common.businessentities.tags ( ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ret = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ( ) ; for ( org.ovirt.engine.core.common.businessentities.Tags tags : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ) ( source ) ) ) { if ( ( tags.gettype ( ) ) == ( org.ovirt.engine.core.common.businessentities.TagsType.GeneralTag ) ) { ret.add ( tags ) ; } } return ret ; } return new org.ovirt.engine.core.common.businessentities.Tags ( ) ; }
Source:
private void initOSType ( ) { getOSType ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getOsIds ( ) ) ; getOSType ( ) . setSelectedItem ( OsRepository.DEFAULT_OS ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmRngDevice generateRngDevice ( ) { org.ovirt.engine.core.common.businessentities.VmRngDevice dev = new org.ovirt.engine.core.common.businessentities.VmRngDevice ( ) ; dev.setBytes ( rngBytes.getEntity ( ) ) ; dev.setPeriod ( rngPeriod.getEntity ( ) ) ; dev.setSource ( ( java.lang.Boolean.TRUE.equals ( rngSourceRandom.getEntity ( ) ) ? VmRngDevice.Source.RANDOM : VmRngDevice.Source.HWRNG ) ) ; return dev ; }
Source:
public void getAllProvidersByType ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.common.businessentities.ProviderType providerType ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Provider > ( ) ; } return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( providerType ) , aQuery ) ; }

Target:
public void getVmGuestAgentInterfacesByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ( ) ; } return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) . withoutRefresh ( ) , aQuery ) ; }
Source:
public int compare ( T object1 , T object2 ) { java.lang.Long val1 = getRawValue ( object1 ) ; java.lang.Long val2 = getRawValue ( object2 ) ; if ( val1 == null ) { return val2 == null ? 0 : - 1 ; } else if ( val2 == null ) { return 1 ; } return val1.compareTo ( val2 ) ; }

Target:
public void makeSortable ( ) { makeSortable ( java.util.Comparator.nullsFirst ( java.util.Comparator.comparing ( this :: getRawValue ) ) ) ; }
Source:
protected boolean canDoAction ( ) { boolean returnValue = true ; if ( ( org.ovirt.engine.core.bll.AddRoleCommand.getRoleDao ( ) . getByName ( org.ovirt.engine.core.bll.AddRoleCommand.getRoleName ( ) ) ) != null ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__ROLE ) ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; returnValue = false ; } return returnValue ; }

Target:
protected boolean canDoAction ( ) { boolean returnValue = true ; if ( ( org.ovirt.engine.core.bll.AddRoleCommand.getRoleDao ( ) . getByName ( org.ovirt.engine.core.bll.AddRoleCommand.getRoleName ( ) ) ) != null ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__ADD ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__ROLE ) ; addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; returnValue = false ; } return returnValue ; }
Source:
private org.ovirt.engine.core.common.action.ImportVmParameters createParametersWhenImagesExistOnTargetStorageDomain ( ) { org.ovirt.engine.core.common.action.ImportVmParameters params = new org.ovirt.engine.core.common.action.ImportVmParameters ( ) ; params.setContainerId ( vmId ) ; params.setStorageDomainId ( org.ovirt.engine.core.bll.exportimport.ImportVMFromConfigurationCommandTest.storageDomainId ) ; params.setClusterId ( clusterId ) ; params.setImagesExistOnTargetStorageDomain ( true ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.ImportVmParameters createParametersWhenImagesExistOnTargetStorageDomain ( ) { org.ovirt.engine.core.common.action.ImportVmParameters params = new org.ovirt.engine.core.common.action.ImportVmParameters ( java.util.Collections.emptyList ( ) , true ) ; params.setContainerId ( vmId ) ; params.setStorageDomainId ( org.ovirt.engine.core.bll.exportimport.ImportVMFromConfigurationCommandTest.storageDomainId ) ; params.setClusterId ( clusterId ) ; params.setImagesExistOnTargetStorageDomain ( true ) ; return params ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getManageEventsCommand ( ) ; }

Target:
void initTable ( ) { org.ovirt.engine.ui.common.widget.table.column.AbstractTextColumn < org.ovirt.engine.core.common.businessentities.EventSubscriber > eventNameColumn = new org.ovirt.engine.ui.common.widget.table.column.AbstractEnumColumn < org.ovirt.engine.core.common.businessentities.EventSubscriber , org.ovirt.engine.core.common.AuditLogType > ( ) { @ java.lang.Override protected org.ovirt.engine.core.common.AuditLogType getRawValue ( org.ovirt.engine.core.common.businessentities.EventSubscriber object ) { return java.lang.Enum.valueOf ( org.ovirt.engine.core.common.AuditLogType.class , object.getEventUpName ( ) ) ; } } ; eventNameColumn.makeSortable ( java.util.Comparator.comparing ( EventSubscriber :: getEventUpName , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator ( ) ) ) ; getTable ( ) . addColumn ( eventNameColumn , org.ovirt.engine.ui.webadmin.section.main.view.tab.user.SubTabUserEventNotifierView.constants.eventNameEventNotifier ( ) ) ; }
Source:
protected boolean isBalloonEnabled ( ) { java.lang.Boolean balloonEnabled = org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isBalloonEnabled ( ) ; return balloonEnabled != null ? balloonEnabled : osRepository.isBalloonEnabled ( org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVmStaticData ( ) . getOsId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean isVirtioScsiEnabled ( ) { java.lang.Boolean virtioScsiEnabled = org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isVirtioScsiEnabled ( ) ; boolean isOsSupportedForVirtIoScsi = org.ovirt.engine.core.bll.validator.VmValidationUtils.isDiskInterfaceSupportedByOs ( org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) , DiskInterface.VirtIO_SCSI ) ; return virtioScsiEnabled != null ? virtioScsiEnabled : ( org.ovirt.engine.core.common.FeatureSupported.virtIoScsi ( org.ovirt.engine.core.bll.AddVmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) && isOsSupportedForVirtIoScsi ; }
Source:
public void hostNameNotUsed ( ) { org.mockito.Mockito.when ( hostDao.getAllForHostname ( org.mockito.ArgumentMatchers.any ( java.lang.String.class ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertThat ( validator.hostNameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void hostNameNotUsed ( ) { org.mockito.Mockito.when ( hostDao.getAllForHostname ( org.mockito.ArgumentMatchers.anyString ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertThat ( validator.hostNameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Network lookupEntity ( org.ovirt.engine.core.compat.Guid ignore ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , id ) ; }

Target:
private org.ovirt.engine.api.model.Network getNetwork ( ) { java.util.List < org.ovirt.engine.api.model.Network > networks = parent.getNetworks ( ) ; for ( org.ovirt.engine.api.model.Network entity : networks ) { if ( entity.getId ( ) . toString ( ) . equals ( id ) ) { return entity ; } } return null ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { org.ovirt.engine.core.compat.Guid providerId = getParameters ( ) . getLibvirtSecret ( ) . getProviderId ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = getStorageDomainDAO ( ) . getAllByConnectionId ( providerId ) ; storageDomain = storageDomains.get ( 0 ) ; } return storageDomain ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { org.ovirt.engine.core.compat.Guid providerId = getParameters ( ) . getLibvirtSecret ( ) . getProviderId ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = getStorageDomainDao ( ) . getAllByConnectionId ( providerId ) ; storageDomain = storageDomains.get ( 0 ) ; } return storageDomain ; }
Source:
private java.util.List < org.ovirt.engine.api.model.Network > getNetworks ( ) { java.util.List < org.ovirt.engine.api.model.Network > entities = new java.util.ArrayList < > ( ) ; for ( int i = 0 ; i < ( NAMES.length ) ; i ++ ) { entities.add ( getEntity ( i ) ) ; } return entities ; }

Target:
protected void setUpEntityQueryExpectations ( int times , java.lang.Object failure ) throws java.lang.Exception { while ( ( times -- ) > 0 ) { setUpEntityQueryExpectations ( VdcQueryType.GetAllNetworks , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.core.compat.Guid.Empty } , getEntityList ( ) , failure ) ; } }
Source:
public java.lang.String getAuthz ( ) { initUserAndGroupData ( ) ; return ( dbUser ) == null ? ( dbGroup ) == null ? "" : dbGroup.getDomain ( ) : dbUser.getDomain ( ) ; }

Target:
public java.lang.String getAuthz ( ) { initUserAndGroupData ( ) ; org.ovirt.engine.core.common.businessentities.Permission perms = org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) ; return org.apache.commons.lang.StringUtils.isNotEmpty ( perms.getAuthz ( ) ) ? perms.getAuthz ( ) : ( dbUser ) == null ? ( dbGroup ) == null ? "" : dbGroup.getDomain ( ) : dbUser.getDomain ( ) ; }
Source:
protected java.security.MessageDigest getMd5Digest ( javax.servlet.http.HttpServletRequest request ) throws java.security.NoSuchAlgorithmException { java.security.MessageDigest digest = createMd5Digest ( ) ; digest.update ( request.getAttribute ( org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.ATTR_SELECTOR_SCRIPT ) . toString ( ) . getBytes ( ) ) ; if ( ( request.getAttribute ( org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.ATTR_USER_INFO ) ) != null ) { digest.update ( request.getAttribute ( org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.ATTR_USER_INFO ) . toString ( ) . getBytes ( ) ) ; } return digest ; }

Target:
protected java.security.MessageDigest getMd5Digest ( final javax.servlet.http.HttpServletRequest request ) throws java.security.NoSuchAlgorithmException { java.security.MessageDigest digest = createMd5Digest ( ) ; for ( org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.MD5Attributes attribute : org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.MD5Attributes.values ( ) ) { if ( ( request.getAttribute ( attribute.getKey ( ) ) ) != null ) { digest.update ( request.getAttribute ( attribute.getKey ( ) ) . toString ( ) . getBytes ( ) ) ; } } return digest ; }
Source:
private java.lang.String getPublicCollection ( java.lang.String collectionName ) { if ( this . entitiesMap.containsKey ( collectionName.toLowerCase ( ) ) ) { return this . entitiesMap.get ( collectionName.toLowerCase ( ) ) ; } return null ; }

Target:
private java.lang.String getPublicCollection ( java.lang.String collectionName , java.lang.String [ ] periods , int i ) { java.lang.String exception = org.ovirt.engine.sdk.codegen.rsdl.RsdlCodegen.checkNamingException ( org.ovirt.engine.sdk.codegen.rsdl.RsdlCodegen.COLLECTION_NAME_EXCEPTIONS , collectionName , periods , i ) ; if ( exception != null ) { return exception ; } if ( this . entitiesMap.containsKey ( collectionName.toLowerCase ( ) ) ) { return this . entitiesMap.get ( collectionName.toLowerCase ( ) ) ; } return null ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setEnumTitle ( object.getVmEntityType ( ) ) ; return ( object.getVmEntityType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmEntityType.VM ) ? resources.vmsImage ( ) : ( object.getVmEntityType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmEntityType.TEMPLATE ) ? resources.templatesImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isBoot ( ) ? constants.bootableDisk ( ) : null ) ) ; return object.isBoot ( ) ? resources.bootableDiskIcon ( ) : null ; }
Source:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getStorageDomainByName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String storageDomainName ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStorageDomainByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( storageDomainName ) , aQuery ) ; }
Source:
public void testMaximumLatency ( ) { java.lang.String doubleValue = "999999999000000000" ; org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmDynamic ( ) ; java.util.Map < java.lang.String , java.lang.Object > diskData = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDiskData ( ) ; diskData.put ( VdsProperties.vm_disk_write_latency , doubleValue ) ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setMockForTesting ( diskData ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vmDynamic , xml ) ; org.junit.Assert.assertEquals ( vmDynamic.getDisks ( ) . get ( 0 ) . getWriteLatency ( ) , new java.lang.Double ( "999999999" ) ) ; }

Target:
public void testMaximumLatency ( ) { java.lang.String doubleValue = "999999999000000000" ; org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmDynamic ( ) ; java.util.Map < java.lang.String , java.lang.Object > diskData = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDiskData ( ) ; diskData.put ( VdsProperties.vm_disk_write_latency , doubleValue ) ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setMockForTesting ( diskData ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vmDynamic , xml , org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVds ( ) ) ; org.junit.Assert.assertEquals ( vmDynamic.getDisks ( ) . get ( 0 ) . getWriteLatency ( ) , new java.lang.Double ( "999999999" ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc reset ( java.lang.String vmId ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.reset ( vmId ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterHookAdd ( glusterCommand , stage , hookName , content , checksum , enabled ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public void getStorageDomainsByConnection ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , java.lang.String connectionPath ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; } } ; org.ovirt.engine.core.common.queries.GetStorageDomainsByConnectionParameters param = new org.ovirt.engine.core.common.queries.GetStorageDomainsByConnectionParameters ( ) ; param.setConnection ( connectionPath ) ; if ( storagePoolId != null ) { param.setStoragePoolId ( storagePoolId ) ; } org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStorageDomainsByConnection , param , aQuery ) ; }

Target:
public void getGlusterSwiftServices ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid serverId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > ( ) ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterServerServicesByServerId , new org.ovirt.engine.core.common.queries.gluster.GlusterServiceQueryParameters ( serverId , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.GLUSTER_SWIFT ) , aQuery ) ; }
Source:
public void testMigrateWithHostName ( ) throws java.lang.Exception { setUpGetHostIdExpectations ( 1 ) ; setUriInfo ( setUpActionExpectations ( VdcActionType.MigrateVmToServer , org.ovirt.engine.core.common.action.MigrateVmToServerParameters.class , new java.lang.String [ ] { "VmId" , "VdsId" , "ForceMigrationForNonMigratableVm" } , new java.lang.Object [ ] { GUIDS [ 0 ] , GUIDS [ 1 ] , java.lang.Boolean.FALSE } ) ) ; org.ovirt.engine.api.model.Action action = new org.ovirt.engine.api.model.Action ( ) ; action.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; action.getHost ( ) . setName ( NAMES [ 1 ] ) ; verifyActionResponse ( resource.migrate ( action ) ) ; }

Target:
public void testMigrateWithHostName ( ) throws java.lang.Exception { setUpGetHostByNameExpectations ( 1 ) ; setUriInfo ( setUpActionExpectations ( VdcActionType.MigrateVmToServer , org.ovirt.engine.core.common.action.MigrateVmToServerParameters.class , new java.lang.String [ ] { "VmId" , "VdsId" , "ForceMigrationForNonMigratableVm" } , new java.lang.Object [ ] { GUIDS [ 0 ] , GUIDS [ 1 ] , java.lang.Boolean.FALSE } ) ) ; org.ovirt.engine.api.model.Action action = new org.ovirt.engine.api.model.Action ( ) ; action.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; action.getHost ( ) . setName ( NAMES [ 1 ] ) ; verifyActionResponse ( resource.migrate ( action ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return updateParameters ( ) ; }

Target:
protected void executeCommand ( ) { updateParameters ( ) ; if ( ! ( moveDiskParametersList.isEmpty ( ) ) ) { vdcReturnValues.addAll ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . RunMultipleActions ( VdcActionType.MoveOrCopyDisk , getParametersArrayList ( moveDiskParametersList ) , false ) ) ; } if ( ! ( liveMigrateVmDisksParametersList.isEmpty ( ) ) ) { vdcReturnValues.addAll ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . RunMultipleActions ( VdcActionType.LiveMigrateVmDisks , getParametersArrayList ( liveMigrateVmDisksParametersList ) , false ) ) ; } handleChildReturnValue ( ) ; org.ovirt.engine.core.bll.MoveDisksCommand.setSucceeded ( true ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( eventButton.getValue ( ) ) { alertButton.setValue ( false ) ; taskButton.setValue ( false ) ; tablePanel.clear ( ) ; tablePanel.add ( eventsTable ) ; firstRowTablePanel.clear ( ) ; firstRowTablePanel.add ( _eventsTable ) ; message.setText ( constants.lastMsgEventFooter ( ) ) ; collapseButton.setVisible ( false ) ; } else { eventButton.setValue ( true ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( taskButton.getValue ( ) ) { alertButton.setValue ( false ) ; eventButton.setValue ( false ) ; tablePanel.clear ( ) ; tablePanel.add ( tasksTree ) ; firstRowTablePanel.clear ( ) ; firstRowTablePanel.add ( _tasksTable ) ; message.setText ( org.ovirt.engine.ui.webadmin.widget.footer.AlertsEventsFooterView.constants.lastTaskEventFooter ( ) ) ; collapseButton.setVisible ( true ) ; } else { taskButton.setValue ( true ) ; } }
Source:
public void testGetAllActionGroupsForRole ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.ActionGroup > result = dao.getAllForRole ( org.ovirt.engine.core.dao.ActionGroupDaoTest.EXISTING_ROLE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.ActionGroupDaoTest.ACTION_GROUP_COUNT , result.size ( ) ) ; }

Target:
public void testGetAllActionGroupsForRole ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.ActionGroup > result = dao.getAllForRole ( FixturesTool.ROLE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.ActionGroupDaoTest.ACTION_GROUP_COUNT , result.size ( ) ) ; }
Source:
public void getUpHostListByCluster ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String clusterName ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > list = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VDS > cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return list ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; } } ; getUpHostListByCluster ( aQuery , clusterName , null ) ; }

Target:
public void getAllTemplatesFromExportDomain ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid storageDomainId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.HashMap < org.ovirt.engine.core.common.businessentities.VmTemplate , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > > ( ) ; } } ; org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters getAllFromExportDomainQueryParamenters = new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( storagePoolId , storageDomainId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetTemplatesFromExportDomain , getAllFromExportDomainQueryParamenters , aQuery ) ; }
Source:
private void configureManagementNetwork ( ) { final org.ovirt.engine.core.bll.network.NetworkConfigurator networkConfigurator = new org.ovirt.engine.core.bll.network.NetworkConfigurator ( org.ovirt.engine.core.bll.InstallVdsCommand.getVds ( ) ) ; if ( ! ( networkConfigurator.awaitVdsmResponse ( ) ) ) { throw new org.ovirt.engine.core.bll.InstallVdsCommand.VdsInstallException ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonResponsive , "Network error during communication with the host" ) ; } try { networkConfigurator.refreshNetworkConfiguration ( ) ; networkConfigurator.createManagementNetworkIfRequired ( ) ; } catch ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException e ) { throw new org.ovirt.engine.core.bll.InstallVdsCommand.VdsInstallException ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonResponsive , "Network error during communication with the host" , e ) ; } catch ( java.lang.Exception e ) { throw new org.ovirt.engine.core.bll.InstallVdsCommand.VdsInstallException ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonOperational , "Failed to configure manamgent network on the host" , e ) ; } }

Target:
private void configureManagementNetwork ( ) { final org.ovirt.engine.core.bll.network.NetworkConfigurator networkConfigurator = new org.ovirt.engine.core.bll.network.NetworkConfigurator ( org.ovirt.engine.core.bll.InstallVdsCommand.getVds ( ) ) ; if ( ! ( networkConfigurator.awaitVdsmResponse ( ) ) ) { throw new org.ovirt.engine.core.bll.InstallVdsCommand.VdsInstallException ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonResponsive , "Network error during communication with the host" ) ; } try { networkConfigurator.refreshNetworkConfiguration ( ) ; networkConfigurator.createManagementNetworkIfRequired ( ) ; } catch ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException e ) { throw new org.ovirt.engine.core.bll.InstallVdsCommand.VdsInstallException ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonResponsive , "Network error during communication with the host" , e ) ; } catch ( java.lang.Exception e ) { throw new org.ovirt.engine.core.bll.InstallVdsCommand.VdsInstallException ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonOperational , "Failed to configure management network on the host" , e ) ; } }
Source:
public boolean Validate ( ) { getPath ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; getVfsType ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return ( getPath ( ) . getIsValid ( ) ) && ( getVfsType ( ) . getIsValid ( ) ) ; }

Target:
public boolean Validate ( ) { getPath ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; getVfsType ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.AsciiNameValidation ( ) } ) ; return ( getPath ( ) . getIsValid ( ) ) && ( getVfsType ( ) . getIsValid ( ) ) ; }