com.stratelia.webactiv.util.questionResult.control
Class QuestionResultBmEJB

java.lang.Object
  extended by com.stratelia.webactiv.util.questionResult.control.QuestionResultBmEJB
All Implemented Interfaces:
QuestionResultBm

public class QuestionResultBmEJB
extends Object
implements QuestionResultBm

QuestionResult Business Manager See QuestionResultBmBusinessSkeleton for methods documentation

Author:
neysseri

Constructor Summary
QuestionResultBmEJB()
           
 
Method Summary
 void deleteQuestionResultsToQuestion(ForeignPK questionPK)
          Delete all results for a question
 Collection<QuestionResult> getQuestionResultToQuestion(ForeignPK questionPK)
          Return all result to a given question
 Collection<QuestionResult> getQuestionResultToQuestionByParticipation(ForeignPK questionPK, int participationId)
          Return all result to a given question for a given participation
 QuestionResult getUserAnswerToQuestion(String userId, ForeignPK questionPK, AnswerPK answerPK)
          Return result for a question and an answer of a user
 Collection<QuestionResult> getUserQuestionResultsToQuestion(String userId, ForeignPK questionPK)
          Return all user result to a given question
 Collection<QuestionResult> getUserQuestionResultsToQuestionByParticipation(String userId, ForeignPK questionPK, int participationId)
          Return all user result to a given question for a given participation
 Collection<String> getUsersByAnswer(String answerId)
          Return all users by a answer
 void setQuestionResultsToUser(Collection<QuestionResult> results)
          Store responses given by a user
 void setQuestionResultToUser(QuestionResult result)
          Store response given by a user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionResultBmEJB

public QuestionResultBmEJB()
Method Detail

setQuestionResultToUser

public void setQuestionResultToUser(QuestionResult result)
Description copied from interface: QuestionResultBm
Store response given by a user

Specified by:
setQuestionResultToUser in interface QuestionResultBm
Parameters:
result - the QuestionResult

getQuestionResultToQuestion

public Collection<QuestionResult> getQuestionResultToQuestion(ForeignPK questionPK)
Description copied from interface: QuestionResultBm
Return all result to a given question

Specified by:
getQuestionResultToQuestion in interface QuestionResultBm
Parameters:
questionPK - the Question id
Returns:
a QuestionResult Collection

getUserQuestionResultsToQuestion

public Collection<QuestionResult> getUserQuestionResultsToQuestion(String userId,
                                                                   ForeignPK questionPK)
Description copied from interface: QuestionResultBm
Return all user result to a given question

Specified by:
getUserQuestionResultsToQuestion in interface QuestionResultBm
Parameters:
userId - the user id
questionPK - the Question id
Returns:
a QuestionResult Collection

getUsersByAnswer

public Collection<String> getUsersByAnswer(String answerId)
Description copied from interface: QuestionResultBm
Return all users by a answer

Specified by:
getUsersByAnswer in interface QuestionResultBm
Parameters:
answerId - the Answer id
Returns:
a String Collection

deleteQuestionResultsToQuestion

public void deleteQuestionResultsToQuestion(ForeignPK questionPK)
Description copied from interface: QuestionResultBm
Delete all results for a question

Specified by:
deleteQuestionResultsToQuestion in interface QuestionResultBm
Parameters:
questionPK - the question id

getQuestionResultToQuestionByParticipation

public Collection<QuestionResult> getQuestionResultToQuestionByParticipation(ForeignPK questionPK,
                                                                             int participationId)
Description copied from interface: QuestionResultBm
Return all result to a given question for a given participation

Specified by:
getQuestionResultToQuestionByParticipation in interface QuestionResultBm
Parameters:
questionPK - the Question id
participationId - the number of the participation
Returns:
a QuestionResult Collection

getUserQuestionResultsToQuestionByParticipation

public Collection<QuestionResult> getUserQuestionResultsToQuestionByParticipation(String userId,
                                                                                  ForeignPK questionPK,
                                                                                  int participationId)
Description copied from interface: QuestionResultBm
Return all user result to a given question for a given participation

Specified by:
getUserQuestionResultsToQuestionByParticipation in interface QuestionResultBm
Parameters:
userId - the user id
questionPK - the Question id
participationId - the number of the participation
Returns:
a QuestionResult Collection

setQuestionResultsToUser

public void setQuestionResultsToUser(Collection<QuestionResult> results)
Description copied from interface: QuestionResultBm
Store responses given by a user

Specified by:
setQuestionResultsToUser in interface QuestionResultBm
Parameters:
results - a Collection of QuestionResult

getUserAnswerToQuestion

public QuestionResult getUserAnswerToQuestion(String userId,
                                              ForeignPK questionPK,
                                              AnswerPK answerPK)
Description copied from interface: QuestionResultBm
Return result for a question and an answer of a user

Specified by:
getUserAnswerToQuestion in interface QuestionResultBm
Parameters:
userId - the user id
questionPK - the question id
answerPK - the answer id


Copyright © 2016 Silverpeas. All Rights Reserved.