Project

General

Profile

« Previous | Next » 

Revision 37bd2647

Added by Katja Luther about 12 years ago

fixes in PESI-Export

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiExportBase.java
23 23
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
24 24
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelTransformer;
25 25
import eu.etaxonomy.cdm.io.common.DbExportBase;
26
import eu.etaxonomy.cdm.io.pesi.indexFungorum.IndexFungorumImportState;
26 27
import eu.etaxonomy.cdm.model.common.CdmBase;
27 28
import eu.etaxonomy.cdm.model.common.Marker;
28 29
import eu.etaxonomy.cdm.model.common.MarkerType;
......
72 73
				it.remove();
73 74
			}
74 75
		}
76
		
75 77
		return list;
76 78
	}
77 79
	
......
154 156
		return result;
155 157
	}
156 158
	
157
	protected <CLASS extends RelationshipBase> List<CLASS> getNextTaxonRelationshipPartition(Class<CLASS> clazz, int limit, int partitionCount, List<String> propertyPath) {
159
	protected <CLASS extends RelationshipBase> List<CLASS> getNextTaxonRelationshipPartition( int limit, int partitionCount, List<String> propertyPath) {
158 160
		List<CLASS> result = new ArrayList<CLASS>();
159 161
		String[] propertyPaths = null;
160 162
		String orderHints = null;
......
396 398
		}
397 399
	}
398 400
	
401
	
402
	
403
	protected MarkerType getUuidisMissingMarkerType(UUID uuid, PesiExportState state){
404
		if (uuid == null){
405
			uuid = UUID.randomUUID();
406
		}
407
		
408
		MarkerType markerType = state.getMarkerType(uuid);
409
			if (markerType == null){
410
				markerType = MarkerType.NewInstance("Uuid is Missing", "Uuid is missing", null);
411
				markerType.setUuid(uuid);
412
			}
413

  
414
			state.putMarkerType(markerType);
415
			return markerType;
416
		}
417

  
418

  
419

  
420

  
421
	
422
	
423
	
399 424

  
400 425
//	protected List<TaxonBase> getNextDescriptionPartition(Class<? extends DescriptionElementBase> clazz,int limit, int partitionCount) {
401 426
//		List<DescriptionElementBase> list = getDescriptionService().listDescriptionElements(null, null, pageSize, pageNumber, propPath);

Also available in: Unified diff