public interface CommunityWebService extends DriverWebService<eu.dnetlib.api.functionality.CommunityService>
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthoritativeDocument(String communityId,
String documentId)
Add an authoritative document to a community.
|
void |
addCollection(String communityId,
String collectionId)
Add a collection to a community.
|
void |
addManager(String communityId,
String userId)
Add a new user as community manager to this community.
|
void |
addRecommendation(String communityId,
String recommendationId)
Add a recommendation to a community.
|
String |
createCommunity(String name,
String ownerId)
Create a new community.
|
List<String> |
getAllCommunityIds()
Get all the available community ids.
|
Set<String> |
getAuthoritativeDocuments(String communityId)
Get all the authoritative documents of a community.
|
Set<String> |
getCollections(String communityId)
Get all the collections of a community.
|
eu.dnetlib.domain.functionality.Community |
getCommunity(String id)
Search a community by id.
|
Set<String> |
getManagers(String communityId)
Get all the users that are managers of a community.
|
Set<String> |
getRecommendations(String communityId)
Get all the recommendations of a community.
|
void |
removeAuthoritativeDocument(String communityId,
String documentId)
Remove an authoritative document from a community.
|
void |
removeCollection(String communityId,
String collectionId)
Remove a collection from a community.
|
void |
removeCommunity(String id)
Remove an existing community.
|
void |
removeManager(String communityId,
String userId)
Remove a a user as community manager from a community.
|
void |
removeRecommendation(String communityId,
String recommendationId)
Remove a recommendation from a community.
|
List<eu.dnetlib.domain.functionality.Community> |
searchCommunities(eu.dnetlib.domain.functionality.CommunitySearchCriteria criteria)
Search communities by criteria.
|
List<String> |
searchCommunityIds(eu.dnetlib.domain.functionality.CommunitySearchCriteria criteria)
Search community ids by criteria.
|
void |
updateCommunity(String id,
String name,
String description,
String owner,
Set<String> managers,
Set<String> collections,
Set<String> recommendations,
Set<String> authoritativeDocuments)
Update an existing community.
|
String createCommunity(String name, String ownerId) throws CommunityWebServiceException
name - the community nameownerId - the id of the user that owns the communityCommunityWebServiceException - if any errors occurvoid updateCommunity(String id, String name, String description, String owner, Set<String> managers, Set<String> collections, Set<String> recommendations, Set<String> authoritativeDocuments) throws CommunityWebServiceException
id - the id of the community to updatename - the new community namedescription - the new community descriptionowner - the new owner of the communitymanagers - the new set of community managerscollections - the new set of community collectionsrecommendations - the new set of community recommendationsauthoritativeDocuments - the new set of community authoritative documentsCommunityWebServiceException - if any errors occurvoid removeCommunity(String id) throws CommunityWebServiceException
id - the id of the community to removeCommunityWebServiceException - if any errors occureu.dnetlib.domain.functionality.Community getCommunity(String id) throws CommunityWebServiceException
id - the id to search forCommunityWebServiceException - if any errors occurList<String> getAllCommunityIds() throws CommunityWebServiceException
CommunityWebServiceExceptionList<eu.dnetlib.domain.functionality.Community> searchCommunities(eu.dnetlib.domain.functionality.CommunitySearchCriteria criteria) throws CommunityWebServiceException
criteria - the criteria to search forCommunityWebServiceException - if any errors occurList<String> searchCommunityIds(eu.dnetlib.domain.functionality.CommunitySearchCriteria criteria) throws CommunityWebServiceException
criteria - the criteria to search forCommunityWebServiceException - if any errors occurvoid addCollection(String communityId, String collectionId) throws CommunityWebServiceException
communityId - the id of the communitycollectionId - the id of the collectionCommunityWebServiceException - if any errors occurvoid removeCollection(String communityId, String collectionId) throws CommunityWebServiceException
communityId - the id of the communitycollectionId - the id of the collectionCommunityWebServiceException - if any errors occurSet<String> getCollections(String communityId) throws CommunityWebServiceException
communityId - the id of the communityCommunityWebServiceException - if any errors occurvoid addManager(String communityId, String userId) throws CommunityWebServiceException
communityId - the id of the communityuserId - the id of the userCommunityWebServiceException - if any errors occurvoid removeManager(String communityId, String userId) throws CommunityWebServiceException
communityId - the id of the communityuserId - the id of the userCommunityWebServiceException - if any errors occurSet<String> getManagers(String communityId) throws CommunityWebServiceException
communityId - the id of the communityCommunityWebServiceException - if any errors occurvoid addRecommendation(String communityId, String recommendationId) throws CommunityWebServiceException
communityId - the id of the communityrecommendationId - the id of the recommendationCommunityWebServiceException - if any errors occurvoid removeRecommendation(String communityId, String recommendationId) throws CommunityWebServiceException
communityId - the id of the communityrecommendationId - the id of the recommendationCommunityWebServiceException - if any errors occurSet<String> getRecommendations(String communityId) throws CommunityWebServiceException
communityId - the id of the communityCommunityWebServiceException - if any errors occurvoid addAuthoritativeDocument(String communityId, String documentId) throws CommunityWebServiceException
communityId - the id of the communitydocumentId - the id of the authoritative documentCommunityWebServiceException - if any errors occurvoid removeAuthoritativeDocument(String communityId, String documentId) throws CommunityWebServiceException
communityId - the id of the communitydocumentId - the id of the authoritative documentCommunityWebServiceException - if any errors occurSet<String> getAuthoritativeDocuments(String communityId) throws CommunityWebServiceException
communityId - the id of the communityCommunityWebServiceException - if any errors occurCopyright © 2017. All rights reserved.