src/org/ohmage/service/UserClassServices.java
public void classesExistAndUserBelongs(
			final Collection<String> classIds, final String username) 
			throws ServiceException {
		
		for(String classId : classIds) {
			classExistsAndUserBelongs(classId, username);
		}
	}
/**
	 * Ensures that all of the classes in the class list exists and that the 
	 * user belong to each of them in some capacity.
	 * 
	 * @param classIds A List of unique identifiers for classes.
	 * 
	 * @param username The username of the user that must exist in each of the
	 * 				   classes.
	 * 
	 * @throws ServiceException Thrown if there is an error, if any of the 
	 * 							classes don't exist, or if the user doesn't
	 * 							belong to any of the classes.
	 */
Ensures that all of the classes in the class list exists and that the
user belong to each of them in some capacity.

@param classIds A List of unique identifiers for classes.

@param username The username of the user that must exist in each of the
classes.

@throws ServiceException Thrown if there is an error, if any of the
classes don't exist, or if the user doesn't
belong to any of the classes.
Ensures that all of the classes in the class list exists and that the user belong to each of them in some capacity . @param classIds A List of unique identifiers for classes . @param username The username of the user that must exist in each of the classes . @throws ServiceException Thrown if there is an error if any of the classes don ' t exist or if the user doesn ' t belong to any of the classes .
public void classesExistAndUserBelongs(
			final Collection<String> classIds, final String username) 
			throws ServiceException {
		for(String classId : classIds) {
			classExistsAndUserBelongs(classId, username);
		}
	}
public void classesExistAndUserBelongs ( final Collection < String > classIds , final String username ) throws ServiceException { for ( String classId : classIds ) { classExistsAndUserBelongs ( classId , username ) ; } }
Ensures that all of the classes in the class list exists and that the
 user belong to each of them in some capacity.
Ensures that all of the classes in the class list exists and that the user belong to each of them in some capacity .