Project

General

Profile

« Previous | Next » 

Revision 58954

[Trunk | Monitor Service]:
1. trunk/src/test/java/eu/dnetlib/uoamonitorservice: New folders for tests.
2. ExceptionsHandler.java: Replace "log.debug" with "log.error".
3. Stakeholder.java: Field 'description' and getter/ setter methods added.
4. Topic.java: Field 'icon' and getter/ setter methods added | In method "copyFromDefault()", set "isActive" and "isPublic" fields of new Topic same as the values from default Topic.
5. TopicController.java: In method "onUpdateDefaultTopic()", add update for icon.
6. Category.java & SubCategory.java & Indicator.java:
In method "copyFromDefault()", set "isActive" and "isPublic" fields of new Category/ SubCategory/ Indicator same as the values from default Category/ SubCategory/ Indicator.
7. IndicatorController.java:
a. [Bug fix] Add some null checks when updating number indicators.
b. In method "parameterMapping()" comment replacement of "index_id", "index_name", "index_shortName" in indicatorPath.url (number indicators only).

View differences:

ExceptionsHandler.java
22 22
        response.setErrorMessage("Invalid inputs");
23 23
        response.setErrors(ex.getMessage());
24 24
        response.setStatus(HttpStatus.BAD_REQUEST);
25
        log.debug("invalidInput exception : "+ ex.getMessage());
25
        log.error("invalidInput exception : "+ ex.getMessage());
26 26
        return new ResponseEntity<ExceptionResponse>(response, HttpStatus.BAD_REQUEST);
27 27
    }
28 28

  
......
33 33
        response.setErrorMessage("Null pointer Exception");
34 34
        response.setErrors(ex.getMessage());
35 35
        response.setStatus(HttpStatus.BAD_REQUEST);
36
        log.debug("nullPointerException exception : "+ ex.getMessage());
36
        log.error("nullPointerException exception : "+ ex.getMessage());
37 37
        return new ResponseEntity<ExceptionResponse>(response, HttpStatus.BAD_REQUEST);
38 38
    }
39 39

  
......
44 44
        response.setErrorMessage("Not found Exception");
45 45
        response.setErrors(ex.getMessage());
46 46
        response.setStatus(HttpStatus.NOT_FOUND);
47
        log.debug("notFoundException exception : "+ ex.getMessage());
47
        log.error("notFoundException exception : "+ ex.getMessage());
48 48
        return new ResponseEntity<ExceptionResponse>(response, HttpStatus.NOT_FOUND);
49 49
    }
50 50

  
......
55 55
        response.setErrorMessage("Entity not found Exception");
56 56
        response.setErrors(ex.getMessage());
57 57
        response.setStatus(HttpStatus.NOT_FOUND);
58
        log.debug("entityNotFoundException exception : "+ ex.getMessage());
58
        log.error("entityNotFoundException exception : "+ ex.getMessage());
59 59
        return new ResponseEntity<ExceptionResponse>(response, HttpStatus.NOT_FOUND);
60 60
    }
61 61

  
......
66 66
        response.setErrorMessage("Path not valid Exception");
67 67
        response.setErrors(ex.getMessage());
68 68
        response.setStatus(HttpStatus.NOT_FOUND);
69
        log.debug("pathNotValidException exception : "+ ex.getMessage());
69
        log.error("pathNotValidException exception : "+ ex.getMessage());
70 70
        return new ResponseEntity<ExceptionResponse>(response, HttpStatus.NOT_FOUND);
71 71
    }
72 72
}

Also available in: Unified diff