dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31267
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15917: Unused code
------------------------------------------------------------
revno: 15917
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-06-30 18:46:21 +0200
message:
Unused code
modified:
dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/file/importer/DefaultDhis14FileImportService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/file/importer/DefaultDhis14FileImportService.java'
--- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/file/importer/DefaultDhis14FileImportService.java 2014-03-18 08:10:10 +0000
+++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/file/importer/DefaultDhis14FileImportService.java 2014-06-30 16:46:21 +0000
@@ -60,7 +60,6 @@
import org.hisp.dhis.importexport.analysis.DefaultImportAnalyser;
import org.hisp.dhis.importexport.analysis.ImportAnalyser;
import org.hisp.dhis.importexport.dhis14.file.query.QueryManager;
-import org.hisp.dhis.importexport.dhis14.file.rowhandler.CaculatedDataElementRowHandler;
import org.hisp.dhis.importexport.dhis14.file.rowhandler.DataElementGroupMemberRowHandler;
import org.hisp.dhis.importexport.dhis14.file.rowhandler.DataElementGroupRowHandler;
import org.hisp.dhis.importexport.dhis14.file.rowhandler.DataElementRowHandler;
@@ -84,7 +83,6 @@
import org.hisp.dhis.importexport.dhis14.file.rowhandler.RoutineDataDailyCaptureRowHandler;
import org.hisp.dhis.importexport.dhis14.file.rowhandler.RoutineDataValueRowHandler;
import org.hisp.dhis.importexport.dhis14.file.rowhandler.SemiPermanentDataValueRowHandler;
-import org.hisp.dhis.importexport.dhis14.file.rowhandler.ValidationRuleRowHandler;
import org.hisp.dhis.importexport.dhis14.util.Dhis14PeriodUtil;
import org.hisp.dhis.importexport.mapping.NameMappingUtil;
import org.hisp.dhis.importexport.mapping.ObjectMappingGenerator;
@@ -110,7 +108,6 @@
import org.hisp.dhis.jdbc.batchhandler.OrganisationUnitGroupBatchHandler;
import org.hisp.dhis.jdbc.batchhandler.OrganisationUnitGroupMemberBatchHandler;
import org.hisp.dhis.jdbc.batchhandler.PeriodBatchHandler;
-import org.hisp.dhis.jdbc.batchhandler.ValidationRuleBatchHandler;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.organisationunit.OrganisationUnitGroup;
import org.hisp.dhis.organisationunit.OrganisationUnitGroupService;
@@ -118,8 +115,6 @@
import org.hisp.dhis.organisationunit.OrganisationUnitService;
import org.hisp.dhis.period.Period;
import org.hisp.dhis.period.PeriodService;
-import org.hisp.dhis.validation.ValidationRule;
-import org.hisp.dhis.validation.ValidationRuleService;
import com.ibatis.sqlmap.client.event.RowHandler;
@@ -235,13 +230,6 @@
this.importDataDailyPeriodService = importDataDailyPeriodService;
}
- private ValidationRuleService validationRuleService;
-
- public void setValidationRuleService( ValidationRuleService validationRuleService )
- {
- this.validationRuleService = validationRuleService;
- }
-
private HibernateCacheManager cacheManager;
public void setCacheManager( HibernateCacheManager cacheManager )
@@ -403,30 +391,6 @@
log.info( "Imported Indicators" );
}
- private void importCalculatedDataElement( ImportParams params, ProcessState state )
- {
- state.setMessage( "importing_calculatedDataElements" );
-
- BatchHandler<Indicator> indicatorBatchHandler = batchHandlerFactory.createBatchHandler(
- IndicatorBatchHandler.class ).init();
- BatchHandler<DataElement> dataElementBatchHandler = batchHandlerFactory.createBatchHandler(
- DataElementBatchHandler.class ).init();
- BatchHandler<IndicatorType> indicatorTypeBatchHandler = batchHandlerFactory.createBatchHandler(
- IndicatorTypeBatchHandler.class ).init();
-
- RowHandler rowHandler = new CaculatedDataElementRowHandler( indicatorBatchHandler, importObjectService, indicatorService,
- objectMappingGenerator.getDataElementMapping( params.skipMapping() ),
- categoryService.getDefaultDataElementCategoryOptionCombo(), params, importAnalyser );
-
- queryManager.queryWithRowhandler( "getCalculatedDataElements", rowHandler );
-
- indicatorBatchHandler.flush();
- dataElementBatchHandler.flush();
- indicatorTypeBatchHandler.flush();
-
- log.info( "Imported Calculated Data Elements" );
- }
-
private void importDataElementGroups( ImportParams params, ProcessState state )
{
state.setMessage( "importing_data_element_groups" );
@@ -845,27 +809,6 @@
}
// -------------------------------------------------------------------------
- // ValidationRule
- // -------------------------------------------------------------------------
-
- private void importValidationRule( ImportParams params, ProcessState state )
- {
- state.setMessage( "importing_validation_rule" );
-
- BatchHandler<ValidationRule> batchHandler = batchHandlerFactory.createBatchHandler(
- ValidationRuleBatchHandler.class ).init();
-
- RowHandler rowHandler = new ValidationRuleRowHandler( batchHandler, importObjectService, validationRuleService,
- params );
-
- queryManager.queryWithRowhandler( "getValidationRules", rowHandler );
-
- batchHandler.flush();
-
- log.info( "Imported ValidationRule" );
- }
-
- // -------------------------------------------------------------------------
// Supportive methods
// -------------------------------------------------------------------------