src/org/ohmage/service/ClassServices.java
public List<String> updateClassViaRoster(
			final Map<String, Map<String, Clazz.Role>> roster) 
			throws ServiceException {
		
		try {
			List<String> warningMessages = new ArrayList<String>();
			
			for(String classId : roster.keySet()) {
				warningMessages.addAll(classQueries.updateClass(classId, null, null, roster.get(classId), null));
			}
			
			return warningMessages;
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Updates the class via a class roster.
	 * 
	 * @param roster A Map of class IDs to Maps of usernames to class roles.
	 * 
	 * @throws ServiceException Thrown if there is an error.
	 */
Updates the class via a class roster.

@param roster A Map of class IDs to Maps of usernames to class roles.

@throws ServiceException Thrown if there is an error.
Updates the class via a class roster . @param roster A Map of class IDs to Maps of usernames to class roles . @throws ServiceException Thrown if there is an error .
public List<String> updateClassViaRoster(
			final Map<String, Map<String, Clazz.Role>> roster) 
			throws ServiceException {
		try {
			List<String> warningMessages = new ArrayList<String>();
			for(String classId : roster.keySet()) {
				warningMessages.addAll(classQueries.updateClass(classId, null, null, roster.get(classId), null));
			}
			return warningMessages;
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public List < String > updateClassViaRoster ( final Map < String , Map < String , Clazz . Role > > roster ) throws ServiceException { try { List < String > warningMessages = new ArrayList < String > ( ) ; for ( String classId : roster . keySet ( ) ) { warningMessages . addAll ( classQueries . updateClass ( classId , null , null , roster . get ( classId ) , null ) ) ; } return warningMessages ; } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Updates the class via a class roster.
Updates the class via a class roster .