src/org/ohmage/service/SurveyResponseServices.java
public void verifyImagesFilesForPhotoPromptResponses(
			final Collection<SurveyResponse> surveyResponses,
			final Map<UUID, Image> images) 
			throws ServiceException {
		
		verifyMediaFilesForMediaPromptResponses(PhotoPromptResponse.class, surveyResponses, images);
	/*	
		for(SurveyResponse surveyResponse : surveyResponses) {
			for(Response promptResponse : surveyResponse.getResponses().values()) {
				if(promptResponse instanceof PhotoPromptResponse) {
					Object responseValue = promptResponse.getResponse();
					if((responseValue instanceof UUID) && 
							(! images.containsKey(responseValue))) {
						throw new ServiceException(
								ErrorCode.SURVEY_INVALID_RESPONSES, 
								"An image was missing for a photo prompt response: " + responseValue.toString());
					}
				}
			}
		}
		*/
	}
/**
	 * Verifies that, for all photo prompt responses, a corresponding image
	 * exists in the list of images, and the file doesn't violate the
	 * prompt definition.
	 * 
	 * @param surveyResponses The survey responses.
	 * 
	 * @param images A map of image IDs to image contents.
	 * 
	 * @throws ServiceException Thrown if a prompt response exists but its
	 * 							corresponding contents don't.
	 */
Verifies that, for all photo prompt responses, a corresponding image
exists in the list of images, and the file doesn't violate the
prompt definition.

@param surveyResponses The survey responses.

@param images A map of image IDs to image contents.

@throws ServiceException Thrown if a prompt response exists but its
corresponding contents don't.
Verifies that for all photo prompt responses a corresponding image exists in the list of images and the file doesn ' t violate the prompt definition . @param surveyResponses The survey responses . @param images A map of image IDs to image contents . @throws ServiceException Thrown if a prompt response exists but its corresponding contents don ' t .
public void verifyImagesFilesForPhotoPromptResponses(
			final Collection<SurveyResponse> surveyResponses,
			final Map<UUID, Image> images) 
			throws ServiceException {
		verifyMediaFilesForMediaPromptResponses(PhotoPromptResponse.class, surveyResponses, images);
	/*	
		for(SurveyResponse surveyResponse : surveyResponses) {
			for(Response promptResponse : surveyResponse.getResponses().values()) {
				if(promptResponse instanceof PhotoPromptResponse) {
					Object responseValue = promptResponse.getResponse();
					if((responseValue instanceof UUID) && 
							(! images.containsKey(responseValue))) {
						throw new ServiceException(
								ErrorCode.SURVEY_INVALID_RESPONSES, 
								"An image was missing for a photo prompt response: " + responseValue.toString());
					}
				}
			}
		}
		*/
	}
public void verifyImagesFilesForPhotoPromptResponses ( final Collection < SurveyResponse > surveyResponses , final Map < UUID , Image > images ) throws ServiceException { verifyMediaFilesForMediaPromptResponses ( PhotoPromptResponse . class , surveyResponses , images ) ; /*	
		for(SurveyResponse surveyResponse : surveyResponses) {
			for(Response promptResponse : surveyResponse.getResponses().values()) {
				if(promptResponse instanceof PhotoPromptResponse) {
					Object responseValue = promptResponse.getResponse();
					if((responseValue instanceof UUID) && 
							(! images.containsKey(responseValue))) {
						throw new ServiceException(
								ErrorCode.SURVEY_INVALID_RESPONSES, 
								"An image was missing for a photo prompt response: " + responseValue.toString());
					}
				}
			}
		}
		*/ }
Verifies that, for all photo prompt responses, a corresponding image
 exists in the list of images, and the file doesn't violate the
 prompt definition.
Verifies that for all photo prompt responses a corresponding image exists in the list of images and the file doesn ' t violate the prompt definition .