public interface IQuestionsService
| Modifier and Type | Method and Description |
|---|---|
QuestionBO |
add(QuestionVO questionVO)
This method adds a new question.
|
java.util.List<QuestionBO> |
all()
This method returns all questions that are available
|
void |
delete(java.lang.Long questionId)
This method deletes a specified by id question.
|
QuestionBO |
find(java.lang.Long id)
This method looks for a question specified by id.
|
QuestionBO |
update(QuestionVO questionVO,
java.lang.Long questionId)
This method updates an existing specified by id question.
|
java.util.List<QuestionBO> all()
QuestionBO find(java.lang.Long id)
id - Id of question to findQuestionBO add(QuestionVO questionVO)
questionVO - QuestionVO's instance with user's input dataQuestionBO update(QuestionVO questionVO, java.lang.Long questionId)
questionVO - QuestionVO's instance with user's changed and old data.questionId - Id of question to editvoid delete(java.lang.Long questionId)
questionId - Id of question to delete