src/org/ohmage/service/UserClassServices.java
public void userHasRoleInClasses(final String username, 
			final Collection<String> classIds, final Clazz.Role classRole) 
			throws ServiceException {
		
		for(String classId : classIds) {
			userHasRoleInClass(username, classId, classRole);
		}
	}
/**
	 * Verifies that the user's role in each of the classes is the same as the
	 * given role.
	 * 
	 * @param username The user's username.
	 * 
	 * @param classIds The Collection of unique identifiers for the classes.
	 * 
	 * @param classRole The role that the user must have in all of the clasess.
	 * 
	 * @throws ServiceException Thrown if the user doesn't have the specified
	 * 							role in each of the classes or there is an 
	 * 							error.
	 */
Verifies that the user's role in each of the classes is the same as the
given role.

@param username The user's username.

@param classIds The Collection of unique identifiers for the classes.

@param classRole The role that the user must have in all of the clasess.

@throws ServiceException Thrown if the user doesn't have the specified
role in each of the classes or there is an
error.
Verifies that the user ' s role in each of the classes is the same as the given role . @param username The user ' s username . @param classIds The Collection of unique identifiers for the classes . @param classRole The role that the user must have in all of the clasess . @throws ServiceException Thrown if the user doesn ' t have the specified role in each of the classes or there is an error .
public void userHasRoleInClasses(final String username, 
			final Collection<String> classIds, final Clazz.Role classRole) 
			throws ServiceException {
		for(String classId : classIds) {
			userHasRoleInClass(username, classId, classRole);
		}
	}
public void userHasRoleInClasses ( final String username , final Collection < String > classIds , final Clazz . Role classRole ) throws ServiceException { for ( String classId : classIds ) { userHasRoleInClass ( username , classId , classRole ) ; } }
Verifies that the user's role in each of the classes is the same as the
 given role.
Verifies that the user ' s role in each of the classes is the same as the given role .