src/org/ohmage/request/accessrequest/AccessRequestReadRequest.java
@Override
	public void service() {
		LOGGER.info("Servicing the AccessRequestReadRequest.");
		
		if(! authenticate(AllowNewAccount.NEW_ACCOUNT_DISALLOWED)) {
			return;
		}
		
		try {
			
			LOGGER.info("Read the UserSetupRequest.");
			results = AccessRequestServices.instance().getAccessRequests(
					this.getUser().getUsername(), requestIdList, userList, emailAddressSearchTokens, 
					contentSearchTokens, requestType, requestStatus, startDate, endDate, null, null);
			
			// TODO: if successful, send an email notification
			
		}
		catch(ServiceException e) {
			e.failRequest(this);
			e.logException(LOGGER);
		}
	}
/**
	 * Services this request if an existing user is making the request.
	 */
Services this request if an existing user is making the request.
Services this request if an existing user is making the request .
@Override
	public void service() {
		LOGGER.info("Servicing the AccessRequestReadRequest.");
		if(! authenticate(AllowNewAccount.NEW_ACCOUNT_DISALLOWED)) {
			return;
		}
		try {
			LOGGER.info("Read the UserSetupRequest.");
			results = AccessRequestServices.instance().getAccessRequests(
					this.getUser().getUsername(), requestIdList, userList, emailAddressSearchTokens, 
					contentSearchTokens, requestType, requestStatus, startDate, endDate, null, null);
		}
		catch(ServiceException e) {
			e.failRequest(this);
			e.logException(LOGGER);
		}
	}
@ Override public void service ( ) { LOGGER . info ( "Servicing the AccessRequestReadRequest." ) ; if ( ! authenticate ( AllowNewAccount . NEW_ACCOUNT_DISALLOWED ) ) { return ; } try { LOGGER . info ( "Read the UserSetupRequest." ) ; results = AccessRequestServices . instance ( ) . getAccessRequests ( this . getUser ( ) . getUsername ( ) , requestIdList , userList , emailAddressSearchTokens , contentSearchTokens , requestType , requestStatus , startDate , endDate , null , null ) ; } catch ( ServiceException e ) { e . failRequest ( this ) ; e . logException ( LOGGER ) ; } }
Services this request if an existing user is making the request.
Services this request if an existing user is making the request .
// TODO: if successful, send an email notification