src/org/ohmage/service/AuditServices.java
public void createAudit(
		final RequestServlet.RequestType requestType,
		final String uri,
		final String client,
		final String requestId,
		final String deviceId,
		final String response,
		final Map<String, String[]> parameterMap,
		final Map<String, String[]> extras,
		final long receivedTimestamp,
		final long respondTimestamp)
		throws ServiceException {
		
		try {
			auditQueries
				.createAudit(
					requestType,
					uri,
					client,
					requestId,
					deviceId,
					parameterMap,
					extras,
					response,
					receivedTimestamp,
					respondTimestamp);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Creates an audit entry with the parameterized information. Not all 
	 * information is required; see the specific parameters for details.
	 * 
	 * @param requestType The RequestType of the request. Required.
	 * 
	 * @param uri The URI of the request. Required.
	 * 
	 * @param client The value of the client parameter. Not required.
	 * 
	 * @param deviceId An unique identifier for each device. Not required.
	 * 
	 * @param parameterMap A map of parameter keys to all of their values. Not
	 * 					   required.
	 * 
	 * @param extras A map of keys to their values for the parameters in the
	 * 				 HTTP header.
	 * 
	 * @param response A string that should have the format of a JSONObject
	 * 				   indicating whether or not the request succeed or failed.
	 * 				   If the request succeed, that is all that needs to be
	 * 				   passed; passing the data that was returned to the 
	 * 				   requesting user would create too much duplicate data and
	 * 				   may leak private information. If the request failed, the
	 * 				   error code and error text should be included in this 
	 * 				   JSONObject string.
	 * 
	 * @param receivedMillis A millisecond-level epoch-based time at which the
	 * 						 request was received. This should be obtained by
	 * 						 the same mechanism as 'respondMillis'. Required.
	 *  
	 * @param respondMillis A millisecond-level epoch-based time at which the
	 * 						request was received. This should be obtained by
	 * 						the same mechanism as 'receivedMillis'. Required.
	 * 
	 * @throws IllegalArgumentException Thrown if any of the required 
	 * 									parameters are null.
	 * 
	 * @throws ServiceException Thrown if there is an error.
	 */
Creates an audit entry with the parameterized information. Not all
information is required; see the specific parameters for details.

@param requestType The RequestType of the request. Required.

@param uri The URI of the request. Required.

@param client The value of the client parameter. Not required.

@param deviceId An unique identifier for each device. Not required.

@param parameterMap A map of parameter keys to all of their values. Not
required.

@param extras A map of keys to their values for the parameters in the
HTTP header.

@param response A string that should have the format of a JSONObject
indicating whether or not the request succeed or failed.
If the request succeed, that is all that needs to be
passed; passing the data that was returned to the
requesting user would create too much duplicate data and
may leak private information. If the request failed, the
error code and error text should be included in this
JSONObject string.

@param receivedMillis A millisecond-level epoch-based time at which the
request was received. This should be obtained by
the same mechanism as 'respondMillis'. Required.

@param respondMillis A millisecond-level epoch-based time at which the
request was received. This should be obtained by
the same mechanism as 'receivedMillis'. Required.

@throws IllegalArgumentException Thrown if any of the required
parameters are null.

@throws ServiceException Thrown if there is an error.
Creates an audit entry with the parameterized information . Not all information is required ; see the specific parameters for details . @param requestType The RequestType of the request . Required . @param uri The URI of the request . Required . @param client The value of the client parameter . Not required . @param deviceId An unique identifier for each device . Not required . @param parameterMap A map of parameter keys to all of their values . Not required . @param extras A map of keys to their values for the parameters in the HTTP header . @param response A string that should have the format of a JSONObject indicating whether or not the request succeed or failed . If the request succeed that is all that needs to be passed ; passing the data that was returned to the requesting user would create too much duplicate data and may leak private information . If the request failed the error code and error text should be included in this JSONObject string . @param receivedMillis A millisecond - level epoch - based time at which the request was received . This should be obtained by the same mechanism as ' respondMillis ' . Required . @param respondMillis A millisecond - level epoch - based time at which the request was received . This should be obtained by the same mechanism as ' receivedMillis ' . Required . @throws IllegalArgumentException Thrown if any of the required parameters are null . @throws ServiceException Thrown if there is an error .
public void createAudit(
		final RequestServlet.RequestType requestType,
		final String uri,
		final String client,
		final String requestId,
		final String deviceId,
		final String response,
		final Map<String, String[]> parameterMap,
		final Map<String, String[]> extras,
		final long receivedTimestamp,
		final long respondTimestamp)
		throws ServiceException {
		try {
			auditQueries
				.createAudit(
					requestType,
					uri,
					client,
					requestId,
					deviceId,
					parameterMap,
					extras,
					response,
					receivedTimestamp,
					respondTimestamp);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public void createAudit ( final RequestServlet . RequestType requestType , final String uri , final String client , final String requestId , final String deviceId , final String response , final Map < String , String [ ] > parameterMap , final Map < String , String [ ] > extras , final long receivedTimestamp , final long respondTimestamp ) throws ServiceException { try { auditQueries . createAudit ( requestType , uri , client , requestId , deviceId , parameterMap , extras , response , receivedTimestamp , respondTimestamp ) ; } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Creates an audit entry with the parameterized information.
Creates an audit entry with the parameterized information .