public class QuestionsWebService extends CoselmarWebServiceSupport
| Modifier and Type | Field and Description |
|---|---|
protected static List<String> |
RESTRICTED_ACCESS_USERS |
| Constructor and Description |
|---|
QuestionsWebService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocuments(String questionId,
DocumentBean[] documents) |
void |
addQuestion(QuestionBean question) |
protected void |
checkIsClient(Question question,
CoselmarUser currentUser) |
protected void |
checkIsParticipant(Question question,
CoselmarUser currentUser) |
void |
deleteQuestion(String questionId) |
QuestionBean |
getQuestion(String questionId) |
List<QuestionBean> |
getQuestions() |
List<String> |
getThemes() |
List<String> |
getTypes() |
protected Set<Document> |
retrieveDocuments(Collection<DocumentBean> documentBeans) |
protected Set<Question> |
retrieveQuestions(Collection<QuestionBean> questionBeans) |
protected Set<CoselmarUser> |
retrieveUsers(Collection<UserBean> userBeans) |
void |
saveQuestion(QuestionBean question) |
checkAuthentication, commit, getCleanMail, getCoselmarServicesConfig, getCoselmarUserDao, getCoselmarUserGroupDao, getDocumentDao, getDocumentsService, getFullIdFromShort, getFullUserIdFromShort, getLocale, getNow, getPersistenceContext, getQuestionDao, getServicesContext, newService, rollback, setServicesContextgetContext, renderAction, renderContent, renderContent, renderDownload, renderDownload, renderError, renderError, renderFailure, renderForward, renderForward, renderJSON, renderJSONP, renderLastPage, renderRedirect, renderStatus, renderStream, renderStream, renderStringTemplate, renderSuccess, renderTemplate, renderURL, renderView, renderXML, setContextable, toMappublic void addQuestion(QuestionBean question) throws InvalidCredentialException, UnauthorizedException
public List<QuestionBean> getQuestions() throws InvalidCredentialException, UnauthorizedException
public void deleteQuestion(String questionId) throws InvalidCredentialException, UnauthorizedException
public QuestionBean getQuestion(String questionId) throws InvalidCredentialException, UnauthorizedException
public void addDocuments(String questionId, DocumentBean[] documents) throws InvalidCredentialException, UnauthorizedException
public void saveQuestion(QuestionBean question) throws InvalidCredentialException, UnauthorizedException
public List<String> getThemes() throws InvalidCredentialException, UnauthorizedException
public List<String> getTypes() throws InvalidCredentialException, UnauthorizedException
protected void checkIsParticipant(Question question, CoselmarUser currentUser) throws UnauthorizedException
UnauthorizedExceptionprotected void checkIsClient(Question question, CoselmarUser currentUser) throws UnauthorizedException
UnauthorizedExceptionprotected Set<CoselmarUser> retrieveUsers(Collection<UserBean> userBeans)
protected Set<Question> retrieveQuestions(Collection<QuestionBean> questionBeans)
protected Set<Document> retrieveDocuments(Collection<DocumentBean> documentBeans)
Copyright © 2014 Ifremer. All rights reserved.