com.objectplanet.survey.plugin.api
Class RespondentUtils
java.lang.Object
com.objectplanet.survey.plugin.api.RespondentUtils
public class RespondentUtils
- extends java.lang.Object
- Author:
- Irina Brun
Method Summary |
static void |
addRespondent(long surveyId,
int respondentEmptyRate)
Adds a respondent with random answers to surveys of any structure, based on the
respondentEmptyRate (one of the constants defined in this class) |
static void |
addRespondents(long surveyId,
int noOfRespondents,
int respondentEmptyRate)
Adds N respondents with random answers to surveys of any structure |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESPONSE_EMPTY_RATE_100_PERCENT
public static final int RESPONSE_EMPTY_RATE_100_PERCENT
- See Also:
- Constant Field Values
RESPONSE_EMPTY_RATE_50_PERCENT
public static final int RESPONSE_EMPTY_RATE_50_PERCENT
- See Also:
- Constant Field Values
RESPONSE_EMPTY_RATE_25_PERCENT
public static final int RESPONSE_EMPTY_RATE_25_PERCENT
- See Also:
- Constant Field Values
RESPONSE_EMPTY_RATE_0_PERCENT
public static final int RESPONSE_EMPTY_RATE_0_PERCENT
- See Also:
- Constant Field Values
RespondentUtils
public RespondentUtils()
addRespondent
public static void addRespondent(long surveyId,
int respondentEmptyRate)
throws java.lang.IllegalArgumentException,
com.objectplanet.survey.exception.SurveySystemException
- Adds a respondent with random answers to surveys of any structure, based on the
respondentEmptyRate (one of the constants defined in this class)
- Parameters:
surveyId
- surveyId
- Throws:
java.lang.IllegalArgumentException
com.objectplanet.survey.exception.SurveySystemException
addRespondents
public static void addRespondents(long surveyId,
int noOfRespondents,
int respondentEmptyRate)
throws java.lang.IllegalArgumentException,
com.objectplanet.survey.exception.SurveySystemException
- Adds N respondents with random answers to surveys of any structure
- Parameters:
surveyId
- surveyId
- Throws:
java.lang.IllegalArgumentException
com.objectplanet.survey.exception.SurveySystemException
Built on December 20 2016