public interface ForumWebService extends DriverWebService<eu.dnetlib.api.functionality.ForumService>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteThread(long threadId)
Delete an existing thread.
|
void |
editThread(long threadId,
String topic,
List<eu.dnetlib.domain.functionality.Post> posts)
Edit an existing thread.
|
long |
openThread(String communityId,
String userId,
String topic)
Open a new thread.
|
eu.dnetlib.domain.functionality.Thread |
searchThread(long threadId)
Search for an existing thread by id.
|
List<eu.dnetlib.domain.functionality.Thread> |
searchThread(String communityId)
Search for existing threads by community.
|
long openThread(String communityId, String userId, String topic) throws ForumWebServiceException
communityId - the id of the community that the thread belongs touserId - the id of the user that opens the threadtopic - the topic of the threadeu.dnetlib.api.functionality.ForumServiceException - if any errors occurForumWebServiceExceptionvoid editThread(long threadId,
String topic,
List<eu.dnetlib.domain.functionality.Post> posts)
throws ForumWebServiceException
threadId - the id of the thread to edittopic - the new topic of the threadeu.dnetlib.api.functionality.ForumServiceException - if any errors occurForumWebServiceExceptionvoid deleteThread(long threadId)
throws ForumWebServiceException
threadId - the id of the thread to deleteeu.dnetlib.api.functionality.ForumServiceException - if any errors occurForumWebServiceExceptioneu.dnetlib.domain.functionality.Thread searchThread(long threadId)
throws ForumWebServiceException
threadId - the id of the thread to search foreu.dnetlib.api.functionality.ForumServiceException - if any errors occurForumWebServiceExceptionList<eu.dnetlib.domain.functionality.Thread> searchThread(String communityId) throws ForumWebServiceException
communityId - the id of the community the threads belong toeu.dnetlib.api.functionality.ForumServiceException - if any errors occurForumWebServiceExceptionCopyright © 2017. All rights reserved.