|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objectplanet.survey.plugin.api.CSVExportParameters
public class CSVExportParameters
This class represents the parameters for a CSV export.
Constructor Summary | |
---|---|
CSVExportParameters(long surveyId,
java.io.File zipFile)
Creates a CSVExportParameters object. |
Method Summary | |
---|---|
void |
addRespondentAttributeToIncludeInExport(java.lang.String attribute)
Add an attribute to the current list of respondent attributes to include in the export. |
CallBack |
getCallBackObj()
Gets the callback object used for this export. |
long |
getFromCompletedDate()
Gets the completed date that the export will begin from (inclusive). |
long |
getFromRespondentId()
Gets the respondent id that the export will start from (inclusive) |
long |
getFromStartDate()
Gets the start date that the export will begin from (inclusive). |
java.util.Locale |
getLocale()
Gets the current set locale |
long |
getReportId()
Set the report that this export will use for settings. |
java.util.ArrayList<java.lang.String> |
getRespondentAttributesToIncludeInExport()
Gets the names of the attributes to include in the export. |
long |
getSurveyId()
Get the current set surveyId |
long |
getToCompletedDate()
Gets the completed date that the export will end with (inclusive). |
long |
getToRespondentId()
Gets the respondent id that the export will stop at (inclusive), if specified. |
long |
getToStartDate()
Gets the start date that the export will end with (inclusive). |
java.io.File |
getZipFile()
Gets the zip file name/path that the export will be written to. |
boolean |
isInviteeEmailIncluded()
Get the flag to indicate if invitee email is to be included in the export. |
boolean |
isInviteeIdIncluded()
Get the flag to indicate if invitee id is to be included in the export. |
boolean |
isInviteeNameIncluded()
Get the flag to indicate if invitee name is to be included in the export. |
boolean |
isRespondentAttributesIncluded()
Get the flag that indicates respondent attributes are to be included in the export. |
void |
setCallBackObj(CallBack callBackObj)
Sets a callback that, if specified, will be called on completion of the export. |
void |
setFromCompletedDate(long fromCompletedDate)
Sets the respondent completed date that the export will begin from (inclusive). |
void |
setFromRespondentId(long fromRespondentId)
Sets the respondent id that the export will start after. |
void |
setFromStartDate(long fromStartDate)
Sets the start date that the export will begin from (inclusive). |
void |
setInviteeEmailIncluded(boolean inviteeEmailIncluded)
Set the flag to indicate if invitee email address is to be included in the export. |
void |
setInviteeIdIncluded(boolean inviteeIdIncluded)
Set the flag to indicate if invitee ID is to be included in the export. |
void |
setInviteeNameIncluded(boolean inviteeNameIncluded)
Set the flag to indicate if invitee name is to be included in the export. |
void |
setLocale(java.util.Locale locale)
Set the locale for this export. |
void |
setReportId(long reportId)
Set the report that this export will use for settings. |
void |
setRespondentAttributesIncluded(boolean respondentAttributesIncluded)
Set the flag to indicate if all attributes are to be included in the export. |
void |
setRespondentAttributesToIncludeInExport(java.lang.String[] attributesToInclude)
This sets the attributes to include in the export. |
void |
setSurveyId(long surveyId)
Set the id of the survey containing the data. |
void |
setToCompletedDate(long toCompletedDate)
Sets the completed date that the export will end with (inclusive). |
void |
setToRespondentId(long toRespondentId)
Sets the respondentId that the export will stop at (inclusive). |
void |
setToStartDate(long toStartDate)
Sets the start date that the export will end with (inclusive). |
void |
setZipFile(java.io.File zipFile)
Sets the zip file to export file to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSVExportParameters(long surveyId, java.io.File zipFile)
surveyId
- id of the survey containing the datazipFile
- The file to export the data to. Will be created if it does not exist.Method Detail |
---|
public long getSurveyId()
public void setSurveyId(long surveyId)
surveyId
- the survey idpublic java.io.File getZipFile()
public void setZipFile(java.io.File zipFile)
zipFile
- The file to export the data to. Will be created if it does not exist.public long getFromRespondentId()
public void setFromRespondentId(long fromRespondentId)
fromRespondentId
- Include respondents with ID starting from, but not including this
valuepublic long getToRespondentId()
public void setToRespondentId(long toRespondentId)
toRespondentId
- the respondent id that the export will stop at (inclusive).public long getFromStartDate()
public void setFromStartDate(long fromStartDate)
fromStartDate
- the start date to begin export frompublic long getToStartDate()
public void setToStartDate(long toStartDate)
toStartDate
- the start date to end export withpublic long getFromCompletedDate()
public void setFromCompletedDate(long fromCompletedDate)
fromCompletedDate
- the completed date to begin export frompublic long getToCompletedDate()
public void setToCompletedDate(long toCompletedDate)
toCompletedDate
- the completed date to end the export withpublic CallBack getCallBackObj()
public void setCallBackObj(CallBack callBackObj)
callBackObj
- The object to call back once complete. Use null if no callback is needed
(null is default).public void addRespondentAttributeToIncludeInExport(java.lang.String attribute)
attribute
- The attribute to add.public void setRespondentAttributesToIncludeInExport(java.lang.String[] attributesToInclude)
attributesToInclude
- Array of attribute names to include in the export. Attribute data
will be exported in the order specified here. Use null/empty array if no
attributes are needed in the export. null value is the default setting.public java.util.ArrayList<java.lang.String> getRespondentAttributesToIncludeInExport()
public boolean isRespondentAttributesIncluded()
public void setRespondentAttributesIncluded(boolean respondentAttributesIncluded)
respondentAttributesIncluded
- True will include respondent attributes, false will not
include them, even if setRespondentAttributesToIncludeInExport() method is called.
True will include all attributes unless they are specified with the
setRespondentAttributesToIncludeInExport(). Default value is false, which means no
respondent attributes are included.public boolean isInviteeIdIncluded()
public void setInviteeIdIncluded(boolean inviteeIdIncluded)
inviteeIdIncluded
- Set to true to include invitee IDs in the export. False is default.public boolean isInviteeEmailIncluded()
public void setInviteeEmailIncluded(boolean inviteeEmailIncluded)
inviteeEmailIncluded
- Set to true to include invitee email address in the export. False
is default.public boolean isInviteeNameIncluded()
public void setInviteeNameIncluded(boolean inviteeNameIncluded)
inviteeNameIncluded
- Set to true to include invitee name in the export. False is
default.public void setReportId(long reportId)
reportId
- the id of report to use for export settingspublic long getReportId()
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- The new locale. If not set, default is Locale.US
|
Copyright ? ObjectPlanet Inc. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |