Project

General

Profile

« Previous | Next » 

Revision 52781

1. Dockerize service
2. Add authorization checks
3. Handle exceptions ( controller advice, exception package)
4. Login-logout operations bug fixes

View differences:

PiWikApi.java
2 2

  
3 3

  
4 4
import eu.dnetlib.domain.data.PiwikInfo;
5
import eu.dnetlib.domain.data.Repository;
6
import eu.dnetlib.domain.functionality.UserProfile;
7 5
import eu.dnetlib.repo.manager.shared.RepositoryServiceException;
8 6
import io.swagger.annotations.Api;
9 7
import org.springframework.http.MediaType;
8
import org.springframework.http.ResponseEntity;
10 9
import org.springframework.web.bind.annotation.*;
11 10

  
12 11
import java.util.List;
......
29 28

  
30 29
    @RequestMapping(value = "/approvePiwikSite/{repositoryId}" , method = RequestMethod.GET)
31 30
    @ResponseBody
32
    void approvePiwikSite(String repositoryId);
31
    ResponseEntity<Object> approvePiwikSite(String repositoryId);
33 32

  
34 33
    @RequestMapping(value = "/getOpenaireId/{repositoryId}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
35 34
    @ResponseBody
......
39 38
    @RequestMapping(value = "/markPiwikSiteAsValidated/{repositoryId}" , method = RequestMethod.POST,
40 39
            consumes = MediaType.APPLICATION_JSON_VALUE)
41 40
    @ResponseBody
42
    void markPiwikSiteAsValidated(String repositoryId) throws RepositoryServiceException;
41
    ResponseEntity<Object> markPiwikSiteAsValidated(String repositoryId) throws RepositoryServiceException;
43 42

  
44 43
    @RequestMapping(value = "/enableMetricsForRepository", method = RequestMethod.POST,
45 44
            consumes = MediaType.APPLICATION_JSON_VALUE)
46
    void enableMetricsForRepository(String officialName,String repoWebsite,PiwikInfo piwikInfo) throws RepositoryServiceException;
45
    PiwikInfo enableMetricsForRepository(String officialName,String repoWebsite,PiwikInfo piwikInfo) throws RepositoryServiceException;
47 46
}

Also available in: Unified diff