Project

General

Profile

Revision 774b85df

ID774b85dfa436118ddadbd1c86560559d3390ae48
Parent 80b81212
Child 42134444

Added by Andreas Müller about 2 years ago

cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/CdmApplicationAwareDefaultExport.java
32 32
 * @author a.mueller
33 33
 * @since 20.06.2008
34 34
 */
35

  
36 35
@Component("defaultExport")
37 36
public class CdmApplicationAwareDefaultExport<T extends IExportConfigurator>
38 37
        implements ICdmExporter<T>, ApplicationContextAware {
......
56 55
	private final IService service = null;
57 56

  
58 57
	//different type of stores that are used by the known imports
59
	Map<String, MapWrapper<? extends CdmBase>> stores = new HashMap<String, MapWrapper<? extends CdmBase>>();
58
	Map<String, MapWrapper<? extends CdmBase>> stores = new HashMap<>();
60 59

  
61 60
	public CdmApplicationAwareDefaultExport(){
62 61
		stores.put(ICdmIO.TEAM_STORE, new MapWrapper<>(service));
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/CdmIoBase.java
168 168

  
169 169
    //TODO move into super class CdmApplicationDefaultConfiguration#startTransaction(java.lang.Boolean)
170 170
    //==> no
171
    @Override
171 172
    public void rollbackTransaction(TransactionStatus txStatus){
172 173
        PlatformTransactionManager txManager = super.getTransactionManager();
173 174
        txManager.rollback(txStatus);
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/TaxonNodeOutStreamPartitioner.java
29 29
 */
30 30
public class TaxonNodeOutStreamPartitioner<STATE extends IoStateBase> {
31 31

  
32
    @SuppressWarnings("unused")
32 33
    private static final Logger logger = Logger.getLogger(TaxonNodeOutStreamPartitioner.class);
33 34

  
34 35
//************************* STATIC ***************************************************/
......
37 38
	        ICdmRepository repository, IoStateBase state,
38 39
            TaxonNodeFilter filter, Integer partitionSize,
39 40
            IProgressMonitor parentMonitor, Integer parentTicks){
40
		TaxonNodeOutStreamPartitioner<ST> taxonNodePartitioner
41

  
42
	    TaxonNodeOutStreamPartitioner<ST> taxonNodePartitioner
41 43
		        = new TaxonNodeOutStreamPartitioner(repository, state, filter, partitionSize,
42 44
		                parentMonitor, parentTicks);
43 45
		return taxonNodePartitioner;
......
57 59

  
58 60
//******************
59 61

  
60
	private final ICdmRepository repository;
62

  
63
    private final ICdmRepository repository;
61 64

  
62 65
	private final TaxonNodeFilter filter;
63 66

  
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/tcsrdf/TcsRdfTaxonNameImport.java
64 64
	@Override
65 65
	public boolean doCheck(TcsRdfImportState config){
66 66
		boolean result = true;
67
		logger.warn("BasionymRelations not yet implemented");
68
		logger.warn("Checking for TaxonNames not yet implemented");
69
		//result &= checkArticlesWithoutJournal(tcsConfig);
70
		//result &= checkPartOfJournal(tcsConfig);
67
//		logger.warn("BasionymRelations not yet implemented");
68
//		logger.warn("Checking for TaxonNames not yet implemented");
71 69

  
72 70
		return result;
73 71
	}
......
145 143
		return;
146 144

  
147 145
	}
148
	/* (non-Javadoc)
149
	 * @see eu.etaxonomy.cdm.io.common.CdmIoBase#isIgnore(eu.etaxonomy.cdm.io.common.IImportConfigurator)
150
	 */
146

  
151 147
	@Override
152 148
    protected boolean isIgnore(TcsRdfImportState state){
153 149
		return ! state.getConfig().isDoTaxonNames();
......
698 694
			logger.debug("The file was no valid rdf file");
699 695
		}
700 696

  
701

  
702

  
703 697
		return null;
704 698
	}
705 699

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/lsid/impl/LsidRegistryImpl.java
62 62

  
63 63
	@PostConstruct
64 64
	public void init() {
65
		registry = new HashMap<String,IIdentifiableDao<? extends IdentifiableEntity>>();
65
		registry = new HashMap<>();
66 66
		TransactionStatus txStatus = transactionManager.getTransaction(txDefinition);
67 67
		for(LSIDAuthority lsidAuthority : lsidAuthorityDao.list(null, null)) {
68 68
			for(String namespace : lsidAuthority.getNamespaces().keySet()) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)