Project

General

Profile

« Previous | Next » 

Revision 968fbd9e

Added by Andreas Müller over 3 years ago

cleanup

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/cyprus/CyprusAltitudeActivator.java
87 87

  
88 88
		CdmApplicationController app = CdmIoApplicationController.NewInstance(cdmDestination, hbm2dll);
89 89

  
90
		Set<TaxonBase> taxaToSave = new HashSet<>();
90
		@SuppressWarnings("rawtypes")
91
        Set<TaxonBase> taxaToSave = new HashSet<>();
91 92

  
92 93
		TransactionStatus tx = app.startTransaction();
93 94

  
......
225 226

  
226 227
	private TaxonDescription getDescription(Taxon taxon, Reference sourceRef) {
227 228
		if (taxon != null){
228
			//TODO Mikle existiert derzeit nicht also Source
229
			//TODO Mikle currently does not exist as Source
229 230

  
230 231
			TaxonDescription desc = TaxonDescription.NewInstance();
231 232
			desc.setTitleCache("Import from " + getSourceReference().getTitleCache(), true);
......
250 251
		return null;
251 252
	}
252 253

  
253
	/**
254
	 * @param row
255
	 * @return
256
	 */
257 254
	private UUID makeUuid(Map<String, String> row, String colName) {
258 255
		if (StringUtils.isBlank(row.get(colName))){
259 256
			return null;
......
285 282
		}
286 283
	}
287 284

  
288

  
289
	/**
290
	 * @param args
291
	 */
292 285
	public static void main(String[] args) {
293 286
		CyprusAltitudeActivator me = new CyprusAltitudeActivator();
294 287
		me.doImport(cdmDestination);
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelReferenceImport.java
1497 1497
        return false;
1498 1498
    }
1499 1499

  
1500
    /**
1501
     * @param state
1502
     * @param string
1503
     * @param initialAuthor
1504
     */
1505 1500
    private static void setGivenName(BerlinModelImportState state, String givenName, Person person, int refId) {
1506 1501
        givenName = givenName.trim();
1507 1502
        if(person.getGivenName() == null || person.getGivenName().equals(givenName)){
......
1511 1506
        }
1512 1507
    }
1513 1508

  
1514
    /**
1515
     * @param fullGivenName
1516
     * @param initialsGivenName
1517
     */
1518 1509
    protected static boolean compareFamilyAndInitials(String fullFamilyName, String initialsFamilyName,
1519 1510
            String[] fullGivenName, String[] initialsGivenName) {
1520 1511
        if (!fullFamilyName.equals(initialsFamilyName)){
......
1540 1531
        }
1541 1532
    }
1542 1533

  
1543
    /**
1544
	 * @param lowerCase
1545
	 * @param config
1546
	 * @return
1547
	 */
1548 1534
	public Set<String> getObligatoryAttributes(boolean lowerCase, BerlinModelImportConfigurator config){
1549 1535
		Set<String> result = new HashSet<>();
1550 1536
		Class<ICdmImport>[] ioClassList = config.getIoClassList();

Also available in: Unified diff