new_model_for_communities #15
|
@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import eu.dnetlib.common.controller.AbstractDnetController;
|
||||
import eu.dnetlib.openaire.exporter.exceptions.CommunityException;
|
||||
import eu.dnetlib.openaire.exporter.model.community.CommunityContentprovider;
|
||||
import eu.dnetlib.openaire.exporter.model.community.CommunityDetails;
|
||||
|
@ -43,7 +44,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||
})
|
||||
@ConditionalOnProperty(value = "openaire.exporter.enable.community", havingValue = "true")
|
||||
@Tag(name = "OpenAIRE Communities API", description = "the OpenAIRE Community API")
|
||||
public class CommunityApiController {
|
||||
public class CommunityApiController extends AbstractDnetController {
|
||||
|
||||
@Autowired
|
||||
private CommunityService communityService;
|
||||
|
|
|
@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
|
||||
import com.google.common.collect.Sets;
|
||||
|
||||
import eu.dnetlib.common.controller.AbstractDnetController;
|
||||
import eu.dnetlib.openaire.common.ISClient;
|
||||
import eu.dnetlib.openaire.community.model.DbOrganization;
|
||||
import eu.dnetlib.openaire.exporter.exceptions.CommunityException;
|
||||
|
@ -29,7 +30,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||
})
|
||||
@ConditionalOnProperty(value = "openaire.exporter.enable.community.import", havingValue = "true")
|
||||
@Tag(name = "OpenAIRE Communities: Migration API", description = "OpenAIRE Communities: Migration API")
|
||||
public class CommunityImporterController {
|
||||
public class CommunityImporterController extends AbstractDnetController {
|
||||
|
||||
public final static Set<String> communityBlackList = Sets.newHashSet("fet-fp7", "fet-h2020");
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import eu.dnetlib.common.controller.AbstractDnetController;
|
||||
import eu.dnetlib.openaire.community.CommunityService;
|
||||
import eu.dnetlib.openaire.exporter.exceptions.CommunityException;
|
||||
import eu.dnetlib.openaire.exporter.model.community.CommunityType;
|
||||
|
@ -35,7 +36,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||
})
|
||||
@ConditionalOnProperty(value = "openaire.exporter.enable.community", havingValue = "true")
|
||||
@Tag(name = "OpenAIRE Context API", description = "the OpenAIRE Context API")
|
||||
public class ContextApiController {
|
||||
public class ContextApiController extends AbstractDnetController {
|
||||
|
||||
@Autowired
|
||||
private CommunityService communityService;
|
||||
|
|
Loading…
Reference in New Issue