src/org/ohmage/service/SurveyResponseServices.java
public List<Integer> createSurveyResponses(final String user, 
			final String client, final String campaignUrn,
            final List<SurveyResponse> surveyUploadList,
            final Map<UUID, Image> bufferedImageMap,
            final Map<UUID, Video> videoContentsMap,
            final Map<UUID, Audio> audioContentsMap, 
            final Map<UUID, IMedia> fileContentsMap) 
            throws ServiceException {
		
		try {
			return surveyUploadQuery.insertSurveys(
				user, 
				client, 
				campaignUrn, 
				surveyUploadList, 
				bufferedImageMap,
				videoContentsMap,
				audioContentsMap,
				fileContentsMap);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Creates new survey responses in the database.
	 * 
	 * @param user The username of the user that created this survey response.
	 * 
	 * @param client The client value.
	 * 
	 * @param campaignUrn The unique identifier for the campaign to which the
	 * 					  survey belongs that the user used to create these
	 * 					  survey responses.
	 * 
	 * @param surveyUploadList The list of survey responses to add to the
	 * 						   database.
	 * 
	 * @param bufferedImageMap The map of image unique identifiers to 
	 * 						   BufferedImage objects to use when creating the
	 * 						   database entry.
	 * 
	 * @param videoContentsMap The map of the video unique identifiers to their
	 * 						   objects.
	 * 
	 * @param audioContentsMap The map of the audio unique identifiers to their
	 * 						   objects.
	 * @param fileContentsMap 
	 * 
	 * @return A list of the indices of the survey responses that were 
	 * 		   duplicates.
	 * 
	 * @throws ServiceException Thrown if there is an error.
	 */
Creates new survey responses in the database.

@param user The username of the user that created this survey response.

@param client The client value.

@param campaignUrn The unique identifier for the campaign to which the
survey belongs that the user used to create these
survey responses.

@param surveyUploadList The list of survey responses to add to the
database.

@param bufferedImageMap The map of image unique identifiers to
BufferedImage objects to use when creating the
database entry.

@param videoContentsMap The map of the video unique identifiers to their
objects.

@param audioContentsMap The map of the audio unique identifiers to their
objects.

@return A list of the indices of the survey responses that were
duplicates.

@throws ServiceException Thrown if there is an error.
Creates new survey responses in the database . @param user The username of the user that created this survey response . @param client The client value . @param campaignUrn The unique identifier for the campaign to which the survey belongs that the user used to create these survey responses . @param surveyUploadList The list of survey responses to add to the database . @param bufferedImageMap The map of image unique identifiers to BufferedImage objects to use when creating the database entry . @param videoContentsMap The map of the video unique identifiers to their objects . @param audioContentsMap The map of the audio unique identifiers to their objects . @return A list of the indices of the survey responses that were duplicates . @throws ServiceException Thrown if there is an error .
public List<Integer> createSurveyResponses(final String user, 
			final String client, final String campaignUrn,
            final List<SurveyResponse> surveyUploadList,
            final Map<UUID, Image> bufferedImageMap,
            final Map<UUID, Video> videoContentsMap,
            final Map<UUID, Audio> audioContentsMap, 
            final Map<UUID, IMedia> fileContentsMap) 
            throws ServiceException {
		try {
			return surveyUploadQuery.insertSurveys(
				user, 
				client, 
				campaignUrn, 
				surveyUploadList, 
				bufferedImageMap,
				videoContentsMap,
				audioContentsMap,
				fileContentsMap);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public List < Integer > createSurveyResponses ( final String user , final String client , final String campaignUrn , final List < SurveyResponse > surveyUploadList , final Map < UUID , Image > bufferedImageMap , final Map < UUID , Video > videoContentsMap , final Map < UUID , Audio > audioContentsMap , final Map < UUID , IMedia > fileContentsMap ) throws ServiceException { try { return surveyUploadQuery . insertSurveys ( user , client , campaignUrn , surveyUploadList , bufferedImageMap , videoContentsMap , audioContentsMap , fileContentsMap ) ; } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Creates new survey responses in the database.
Creates new survey responses in the database .