Interface AdQuestionService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void answer​(@NotNull Long id, 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.
      Long ask​(@NotNull BasicAdVO adVO, 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.
      List<AdQuestionVO> list​(@NotNull BasicAdVO adVO)
      Returns the questions for the given ad
      AdQuestionVO load​(@NotNull Long id)
      Loads a question by id.
      Only if the logged user can ask for or it's the owner of the related advertisement.
      void remove​(@NotNull Long id)
      Removes a question
      Page<AdQuestionVO> search​(@NotNull AdQuestionQuery query)
      Searches for unanswered questions