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