com.objectplanet.survey.plugin.api
Class PipingSource

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

public class PipingSource
extends java.lang.Object

Data needed to replace piping tag in the survey/question texts with correct values.

Author:
Irina Brun

Constructor Summary
PipingSource(long surveyId, long respondentId, java.util.Map params, long inviteeId)
          Create PipingSource object
 
Method Summary
 long getInviteeId()
           
 long getRespondentId()
           
 long getSurveyId()
           
 java.util.Map getURLParams()
          URL parameters from the request.
 void setInviteeId(long inviteeId)
           
 void setRespondentId(long respondentId)
           
 void setSurveyId(long surveyId)
           
 void setURLParams(java.util.Map params)
          URL parameters from the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipingSource

public PipingSource(long surveyId,
                    long respondentId,
                    java.util.Map params,
                    long inviteeId)
Create PipingSource object

Parameters:
surveyId - Survey id
respondentId - Respondent id if known or 0
params - Request parameters if available/needed or null. Contains parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
inviteeId - Invitee id if known or 0
Method Detail

getInviteeId

public long getInviteeId()
Returns:
Returns the inviteeId.

setInviteeId

public void setInviteeId(long inviteeId)
Parameters:
inviteeId - The inviteeId to set.

getRespondentId

public long getRespondentId()
Returns:
Returns the respondentId.

setRespondentId

public void setRespondentId(long respondentId)
Parameters:
respondentId - The respondentId to set.

getSurveyId

public long getSurveyId()
Returns:
Returns the surveyId.

setSurveyId

public void setSurveyId(long surveyId)
Parameters:
surveyId - The surveyId to set.

getURLParams

public java.util.Map getURLParams()
URL parameters from the request. Containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.

Returns:
Returns the uRLParams.

setURLParams

public void setURLParams(java.util.Map params)
URL parameters from the request. Containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.

Parameters:
params - The uRLParams to set.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016