src/org/ohmage/service/UserCampaignServices.java
public void campaignsExistAndUserBelongs(
			final List<String> campaignIds, final String username) 
			throws ServiceException {
		
		for(String campaignId : campaignIds) {
			campaignExistsAndUserBelongs(campaignId, username);
		}
	}
/**
	 * Ensures that all of the campaigns in a List exist and that the user 
	 * belongs to each of them in some capacity.
	 * 
	 * @param campaignIds A List of campaign IDs that all must exist.
	 * 
	 * @param username The username of the user that must exist in all of the
	 * 				   campaigns.
	 * 
	 * @throws ServiceException Thrown if any of the campaigns don't exist, if
	 * 							the user doesn't belong to any of the 
	 * 							campaigns, or if there is an error. 
	 */
Ensures that all of the campaigns in a List exist and that the user
belongs to each of them in some capacity.

@param campaignIds A List of campaign IDs that all must exist.

@param username The username of the user that must exist in all of the
campaigns.

@throws ServiceException Thrown if any of the campaigns don't exist, if
the user doesn't belong to any of the
campaigns, or if there is an error.
Ensures that all of the campaigns in a List exist and that the user belongs to each of them in some capacity . @param campaignIds A List of campaign IDs that all must exist . @param username The username of the user that must exist in all of the campaigns . @throws ServiceException Thrown if any of the campaigns don ' t exist if the user doesn ' t belong to any of the campaigns or if there is an error .
public void campaignsExistAndUserBelongs(
			final List<String> campaignIds, final String username) 
			throws ServiceException {
		for(String campaignId : campaignIds) {
			campaignExistsAndUserBelongs(campaignId, username);
		}
	}
public void campaignsExistAndUserBelongs ( final List < String > campaignIds , final String username ) throws ServiceException { for ( String campaignId : campaignIds ) { campaignExistsAndUserBelongs ( campaignId , username ) ; } }
Ensures that all of the campaigns in a List exist and that the user
 belongs to each of them in some capacity.
Ensures that all of the campaigns in a List exist and that the user belongs to each of them in some capacity .