src/org/ohmage/service/ClassServices.java
public void checkClassesExistence(final Collection<String> classIds, 
			final boolean shouldExist) throws ServiceException {
		
		for(String classId : classIds) {
			checkClassExistence(classId, shouldExist);
		}
	}
/**
	 * Checks if a list of classes exist and compares each result to whether or
	 * not they should exist. If any of them don't match or there is an error
	 * at any point, it will set the request as failed with an error message if
	 * the reason for failure is known and will throw a ServiceException. 
	 * 
	 * @param classIds The List of class identifiers whose existence need to be
	 * 				   checked.
	 * 
	 * @param shouldExist Whether or not each of the classes in the list need
	 * 					  to exist.
	 * 
	 * @throws ServiceException Thrown if there is an error, or if any of the
	 * 							classes exist and they shouldn't, or if any of
	 * 							the classes don't exist and they should.
	 */
Checks if a list of classes exist and compares each result to whether or
not they should exist. If any of them don't match or there is an error
at any point, it will set the request as failed with an error message if
the reason for failure is known and will throw a ServiceException.

@param classIds The List of class identifiers whose existence need to be
checked.

@param shouldExist Whether or not each of the classes in the list need
to exist.

@throws ServiceException Thrown if there is an error, or if any of the
classes exist and they shouldn't, or if any of
the classes don't exist and they should.
Checks if a list of classes exist and compares each result to whether or not they should exist . If any of them don ' t match or there is an error at any point it will set the request as failed with an error message if the reason for failure is known and will throw a ServiceException . @param classIds The List of class identifiers whose existence need to be checked . @param shouldExist Whether or not each of the classes in the list need to exist . @throws ServiceException Thrown if there is an error or if any of the classes exist and they shouldn ' t or if any of the classes don ' t exist and they should .
public void checkClassesExistence(final Collection<String> classIds, 
			final boolean shouldExist) throws ServiceException {
		for(String classId : classIds) {
			checkClassExistence(classId, shouldExist);
		}
	}
public void checkClassesExistence ( final Collection < String > classIds , final boolean shouldExist ) throws ServiceException { for ( String classId : classIds ) { checkClassExistence ( classId , shouldExist ) ; } }
Checks if a list of classes exist and compares each result to whether or
 not they should exist.
Checks if a list of classes exist and compares each result to whether or not they should exist .