src/org/ohmage/service/CampaignServices.java
public void verifyEditableResponse(final String campaignId, final Boolean allowResponseUpdate) 
			throws ServiceException {
		
		try {
			if(allowResponseUpdate){
				if(! campaignQueries.getCampaignEditable(campaignId)) {
					throw new ServiceException(
							ErrorCode.CAMPAIGN_INVALID_EDITABLE,
							"The responses for this campaign are not editable.");
				}
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Verifies that the campaign responses are editable.
	 * 
	 * @param campaignId The campaign's unique identifier.
	 * 
	 * @throws ServiceException Thrown if the campaign is not running or if 
	 * 							there is an error.
	 */
Verifies that the campaign responses are editable.

@param campaignId The campaign's unique identifier.

@throws ServiceException Thrown if the campaign is not running or if
there is an error.
Verifies that the campaign responses are editable . @param campaignId The campaign ' s unique identifier . @throws ServiceException Thrown if the campaign is not running or if there is an error .
public void verifyEditableResponse(final String campaignId, final Boolean allowResponseUpdate) 
			throws ServiceException {
		try {
			if(allowResponseUpdate){
				if(! campaignQueries.getCampaignEditable(campaignId)) {
					throw new ServiceException(
							ErrorCode.CAMPAIGN_INVALID_EDITABLE,
							"The responses for this campaign are not editable.");
				}
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public void verifyEditableResponse ( final String campaignId , final Boolean allowResponseUpdate ) throws ServiceException { try { if ( allowResponseUpdate ) { if ( ! campaignQueries . getCampaignEditable ( campaignId ) ) { throw new ServiceException ( ErrorCode . CAMPAIGN_INVALID_EDITABLE , "The responses for this campaign are not editable." ) ; } } } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Verifies that the campaign responses are editable.
Verifies that the campaign responses are editable .