Project

General

Profile

« Previous | Next » 

Revision 58341

ClaimEntity: Add information about the dashboard where the claim was created

Properties:
add properties for the different services
create beans properly
production or beta is decided from the services urls in properties

Migration:
create migration method: CopyFromBetaToProduction for communities

View differences:

IndexResultHandler.java
3 3
import eu.dnetlib.data.claims.entity.Result;
4 4
import eu.dnetlib.data.claims.parser.OafParser;
5 5
import eu.dnetlib.data.claims.utils.SearchUtils;
6
import org.apache.log4j.Logger;
6 7

  
7 8
/**
8 9
 * Created by kiatrop on 8/2/2016.
......
10 11
public class IndexResultHandler {
11 12

  
12 13
    SearchUtils searchUtils;
14
    private Logger log = Logger.getLogger(this.getClass());
13 15

  
14 16
    private String fetchPublicationResult(String id) throws Exception {
15 17
        return searchUtils.fetchPublicationXmlFromIndex(id);
......
22 24
    }
23 25

  
24 26
    private String fetchDatasetResult(String id) throws Exception {
27
        if(searchUtils == null ){
28
            log.debug("searchUtils is null");
29
        }
30
        if(id == null ){
31
            log.debug("id is null");
32
        }
25 33
        return searchUtils.fetchDatasetXmlFromIndex(id);
26 34
    }
27 35
    /**

Also available in: Unified diff