src/org/ohmage/service/MobilityServices.java
public List<MobilityPoint> retrieveMobilityData(
			final String username,  
			final DateTime startDate, final DateTime endDate, 
			final MobilityPoint.PrivacyState privacyState,
			final LocationStatus locationStatus, final Mode mode) 
			throws ServiceException {
		
		try {
			return userMobilityQueries.getMobilityInformation(
					username, 
					startDate, 
					endDate, 
					privacyState, 
					locationStatus, 
					mode);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Retrieves the information about all of the Mobility points that satisfy
	 * the parameters. The username is required as that is how Mobility points
	 * are referenced; however, all other parameters are optional and limit the
	 * results based on their value.<br />
	 * <br />
	 * For example, if only a username is given, the result is all of the
	 * Mobility points for that user. If the username and start date are given,
	 * then all of the Mobility points made by that user after that date are
	 * returned. If the username, start date, and end date are all given, the
	 * result is the list of Mobility points made by that user on or after the
	 * start date and on or before the end date.
	 * 
	 * @param username The username of the user whose points are being queried.
	 * 				   Required.
	 * 
	 * @param startDate A date to which all returned points must be on or 
	 * 					after. Optional.
	 * 
	 * @param endDate A date to which all returned points must be on or before.
	 * 				  Optional.
	 * 
	 * @param privacyState A privacy state to limit the results to only those
	 * 					   with this privacy state. Optional.
	 * 
	 * @param locationStatus A location status to limit the results to only 
	 * 						 those with this location status. Optional.
	 * 
	 * @param mode A mode to limit the results to only those with this mode.
	 * 			   Optional.
	 * 
	 * @return A list of MobilityInformation objects where each object 
	 * 		   represents a single Mobility point that satisfies the  
	 * 		   parameters.
	 * 
	 * @throws ServiceException Thrown if there is an error.
	 */
Retrieves the information about all of the Mobility points that satisfy
the parameters. The username is required as that is how Mobility points
are referenced; however, all other parameters are optional and limit the
results based on their value.

For example, if only a username is given, the result is all of the
Mobility points for that user. If the username and start date are given,
then all of the Mobility points made by that user after that date are
returned. If the username, start date, and end date are all given, the
result is the list of Mobility points made by that user on or after the
start date and on or before the end date.

@param username The username of the user whose points are being queried.
Required.

@param startDate A date to which all returned points must be on or
after. Optional.

@param endDate A date to which all returned points must be on or before.
Optional.

@param privacyState A privacy state to limit the results to only those
with this privacy state. Optional.

@param locationStatus A location status to limit the results to only
those with this location status. Optional.

@param mode A mode to limit the results to only those with this mode.
Optional.

@return A list of MobilityInformation objects where each object
represents a single Mobility point that satisfies the
parameters.

@throws ServiceException Thrown if there is an error.
Retrieves the information about all of the Mobility points that satisfy the parameters . The username is required as that is how Mobility points are referenced ; however all other parameters are optional and limit the results based on their value . For example if only a username is given the result is all of the Mobility points for that user . If the username and start date are given then all of the Mobility points made by that user after that date are returned . If the username start date and end date are all given the result is the list of Mobility points made by that user on or after the start date and on or before the end date . @param username The username of the user whose points are being queried . Required . @param startDate A date to which all returned points must be on or after . Optional . @param endDate A date to which all returned points must be on or before . Optional . @param privacyState A privacy state to limit the results to only those with this privacy state . Optional . @param locationStatus A location status to limit the results to only those with this location status . Optional . @param mode A mode to limit the results to only those with this mode . Optional . @return A list of MobilityInformation objects where each object represents a single Mobility point that satisfies the parameters . @throws ServiceException Thrown if there is an error .
public List<MobilityPoint> retrieveMobilityData(
			final String username,  
			final DateTime startDate, final DateTime endDate, 
			final MobilityPoint.PrivacyState privacyState,
			final LocationStatus locationStatus, final Mode mode) 
			throws ServiceException {
		try {
			return userMobilityQueries.getMobilityInformation(
					username, 
					startDate, 
					endDate, 
					privacyState, 
					locationStatus, 
					mode);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public List < MobilityPoint > retrieveMobilityData ( final String username , final DateTime startDate , final DateTime endDate , final MobilityPoint . PrivacyState privacyState , final LocationStatus locationStatus , final Mode mode ) throws ServiceException { try { return userMobilityQueries . getMobilityInformation ( username , startDate , endDate , privacyState , locationStatus , mode ) ; } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Retrieves the information about all of the Mobility points that satisfy
 the parameters.
Retrieves the information about all of the Mobility points that satisfy the parameters .