public interface AdQuestionService extends Service
| Modifier and Type | Method and Description |
|---|---|
void |
answer(java.lang.Long id,
java.lang.String answer)
Saves the answer for the given question
|
java.lang.Long |
ask(java.lang.Long adId,
java.lang.String question)
Creates a new question for the given ad
|
java.util.List<AdQuestionVO> |
list(java.lang.Long adId)
Returns the questions for the given ad
|
void |
remove(java.lang.Long id)
Removes a question
|
Page<AdQuestionVO> |
search(AdQuestionQuery query)
Searches for questions
|
void answer(java.lang.Long id,
java.lang.String answer)
throws FrameworkException,
IllegalActionException
IllegalActionException - If the given question was already answeredFrameworkExceptionjava.lang.Long ask(java.lang.Long adId,
java.lang.String question)
throws FrameworkException
FrameworkExceptionjava.util.List<AdQuestionVO> list(java.lang.Long adId) throws FrameworkException
FrameworkExceptionvoid remove(java.lang.Long id)
throws FrameworkException
FrameworkExceptionPage<AdQuestionVO> search(AdQuestionQuery query) throws FrameworkException
FrameworkException