com.objectplanet.survey.plugin.api
Class RespondentUtils

java.lang.Object
  extended by com.objectplanet.survey.plugin.api.RespondentUtils

public class RespondentUtils
extends java.lang.Object

Author:
Irina Brun

Field Summary
static int RESPONSE_EMPTY_RATE_0_PERCENT
           
static int RESPONSE_EMPTY_RATE_100_PERCENT
           
static int RESPONSE_EMPTY_RATE_25_PERCENT
           
static int RESPONSE_EMPTY_RATE_50_PERCENT
           
 
Constructor Summary
RespondentUtils()
           
 
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
 

Field Detail

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
Constructor Detail

RespondentUtils

public RespondentUtils()
Method Detail

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

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016