Project

General

Profile

1
package eu.dnetlib.openaire.community;
2

    
3
import com.google.common.base.Functions;
4
import com.google.common.base.Joiner;
5
import com.google.common.collect.Lists;
6
import com.google.common.collect.Sets;
7
import eu.dnetlib.openaire.context.Category;
8
import eu.dnetlib.openaire.context.Concept;
9
import eu.dnetlib.openaire.context.Context;
10
import org.apache.commons.collections.MapUtils;
11
import org.apache.commons.lang3.StringUtils;
12

    
13
import java.io.IOException;
14
import java.util.*;
15
import java.util.function.Function;
16
import java.util.stream.Collectors;
17

    
18
import static eu.dnetlib.openaire.community.CommunityConstants.*;
19
import static eu.dnetlib.openaire.community.CommunityConstants.ID_SEPARATOR;
20
import static eu.dnetlib.openaire.community.CommunityConstants.ZENODOCOMMUNITY_ID_SUFFIX;
21

    
22
public interface CommunityClient {
23

    
24
//    List<CommunitySummary> listCommunities()  throws CommunityException;
25
//
26
//    CommunityDetails getCommunity(final String id) throws CommunityException, CommunityNotFoundException;
27
//
28
//    void setCommunity(final String id, final CommunityWritableProperties details) throws CommunityException, CommunityNotFoundException;
29
//
30
//    List<CommunityProject> getCommunityProjects(final String id) throws CommunityException, CommunityNotFoundException;
31
//
32
//    CommunityProject addCommunityProject(final String id, final CommunityProject project) throws CommunityException, CommunityNotFoundException;
33
//
34
//    //String nextId(final Integer id);
35
//
36
//    void removeCommunityProject(final String id, final Integer projectId) throws CommunityException, CommunityNotFoundException;
37
//
38
//    List<CommunityContentprovider> getCommunityContentproviders(final String id) throws CommunityException, CommunityNotFoundException;
39
//
40
//    CommunityContentprovider addCommunityContentprovider(final String id, final CommunityContentprovider cp) throws CommunityException, CommunityNotFoundException;
41
//
42
//    void removeCommunityContentProvider(final String id, final Integer contentproviderId) throws CommunityException, CommunityNotFoundException;
43
//
44
//
45
//    List<CommunityZenodoCommunity> getCommunityZenodoCommunities(final String id) throws CommunityException, CommunityNotFoundException;
46
//
47
//
48
//    CommunityDetails addCommunitySubjects(final String id, final List<String> subjects) throws CommunityException, CommunityNotFoundException;
49
//
50
//    CommunityDetails removeCommunitySubjects(final String id, final List<String> subjects) throws CommunityException, CommunityNotFoundException;
51
//
52
//    void removeCommunityZenodoCommunity(final String id, final Integer zenodoCommId) throws CommunityException, CommunityNotFoundException;
53
//
54
//    CommunityZenodoCommunity addCommunityZenodoCommunity(final String id, final CommunityZenodoCommunity zc) throws CommunityException, CommunityNotFoundException;
55
//
56
//
57
//    List<String> getOpenAIRECommunities(String zenodoId) ;
58
//
59
//    // HELPERS
60
//
61

    
62

    
63
    Map<String, Set<String>> getInverseZenodoCommunityMap() throws IOException;
64

    
65

    
66
//    void remove(String id, String zenodoCommId);
67
//
68
//    void insert(String id, String zenodoCommId);
69
//
70
    void dropCache();
71
}
(3-3/16)