public interface AdQuestionService extends Service
| Modifier and Type | Method and Description |
|---|---|
void |
answer(@NotNull java.lang.Long id,
java.lang.String answer)
Saves the answer for the given question
For the
answer parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message. |
java.lang.Long |
ask(@NotNull BasicAdVO adVO,
java.lang.String question)
Creates a new question for the given ad
For the
question parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message. |
java.util.List<AdQuestionVO> |
list(@NotNull BasicAdVO adVO)
Returns the questions for the given ad
|
AdQuestionVO |
load(@NotNull java.lang.Long id)
Loads a question by id.
|
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,
java.lang.String answer)
throws FrameworkException,
IllegalActionException
answer parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message.IllegalActionException - If the given question was already answeredFrameworkExceptionjava.lang.Long ask(@NotNull
@NotNull BasicAdVO adVO,
java.lang.String question)
throws FrameworkException
question parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message.FrameworkExceptionjava.util.List<AdQuestionVO> list(@NotNull @NotNull BasicAdVO adVO) throws FrameworkException
FrameworkExceptionAdQuestionVO load(@NotNull @NotNull java.lang.Long id) throws FrameworkException
FrameworkExceptionvoid remove(@NotNull
@NotNull java.lang.Long id)
throws FrameworkException
FrameworkExceptionPage<AdQuestionVO> search(@NotNull @NotNull AdQuestionQuery query) throws FrameworkException
FrameworkException