Project

General

Profile

« Previous | Next » 

Revision 56661

- Fixing some code-smells
- Implemented search of piwik repos
- Added site_id info on repository

View differences:

RepositoryController.java
25 25
public class RepositoryController {
26 26

  
27 27
    @Autowired
28
    RepositoryServiceImpl repositoryService;
28
    private RepositoryServiceImpl repositoryService;
29 29

  
30 30
    @RequestMapping(value = "/getCountries", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
31 31
    @ResponseBody
......
118 118
    @RequestMapping(value = "/getDnetCountries", method = RequestMethod.GET,
119 119
            produces = MediaType.APPLICATION_JSON_VALUE)
120 120
    @ResponseBody
121
    List<String> getDnetCountries(){
121
    public List<String> getDnetCountries(){
122 122
        return repositoryService.getDnetCountries();
123 123
    }
124 124

  
125 125
    @RequestMapping(value = "/getTypologies", method = RequestMethod.GET,
126 126
            produces = MediaType.APPLICATION_JSON_VALUE)
127 127
    @ResponseBody
128
    List<String> getTypologies(){
128
    public List<String> getTypologies(){
129 129
        return repositoryService.getTypologies();
130 130
    }
131 131

  
132 132
    @RequestMapping(value = "/getTimezones", method = RequestMethod.GET,
133 133
            produces = MediaType.APPLICATION_JSON_VALUE)
134 134
    @ResponseBody
135
    List<Timezone> getTimezones(){
135
    public List<Timezone> getTimezones(){
136 136
        return repositoryService.getTimezones();
137 137
    }
138 138

  

Also available in: Unified diff