Project

General

Profile

Download (1.63 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2016 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.io.operation;
10

    
11
import eu.etaxonomy.cdm.common.monitor.DefaultProgressMonitor;
12
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
13
import eu.etaxonomy.cdm.io.common.CdmImportBase;
14
import eu.etaxonomy.cdm.io.common.DefaultImportState;
15
import eu.etaxonomy.cdm.io.operation.config.CacheUpdaterConfigurator;
16

    
17
/**
18
 * @author k.luther
19
 * @since 08.12.2016
20
 *
21
 */
22
public class CacheUpdaterWrapper extends CdmImportBase<CacheUpdaterConfigurator, DefaultImportState<CacheUpdaterConfigurator>> {
23

    
24
    /**
25
     * {@inheritDoc}
26
     */
27
    @Override
28
    protected void doInvoke(DefaultImportState<CacheUpdaterConfigurator> state) {
29
        CacheUpdaterConfigurator config = state.getConfig();
30
        CacheUpdater updater;
31

    
32
       // CaseType caseType = CaseType.caseTypeOfDatasource(config.getDestination());
33
        IProgressMonitor  monitor = DefaultProgressMonitor.NewInstance();
34
        updater = new CacheUpdater();
35
        updater.invoke(state);
36

    
37
        return;
38

    
39
    }
40

    
41
    /**
42
     * {@inheritDoc}
43
     */
44
    @Override
45
    protected boolean doCheck(DefaultImportState<CacheUpdaterConfigurator> state) {
46
        // TODO Auto-generated method stub
47
        return false;
48
    }
49

    
50
    /**
51
     * {@inheritDoc}
52
     */
53
    @Override
54
    protected boolean isIgnore(DefaultImportState<CacheUpdaterConfigurator> state) {
55
        // TODO Auto-generated method stub
56
        return false;
57
    }
58

    
59
}
(3-3/5)