src/org/ohmage/request/accessrequest/AccessRequestDeletionRequest.java
@Override
	public void service() {
		LOGGER.info("Servicing the AccessRequestDeletionRequest.");
		
		if(! authenticate(AllowNewAccount.NEW_ACCOUNT_DISALLOWED)) {
			return;
		}
		
		try {
			LOGGER.info("Delete the AccessRequest.");
			
			// all validations are done in deleteUserSetupRequests
			AccessRequestServices.instance().deleteAccessRequests(requestIdList, this.getUser().getUsername());
			
			// 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 AccessRequestDeletionRequest.");
		if(! authenticate(AllowNewAccount.NEW_ACCOUNT_DISALLOWED)) {
			return;
		}
		try {
			LOGGER.info("Delete the AccessRequest.");
			AccessRequestServices.instance().deleteAccessRequests(requestIdList, this.getUser().getUsername());
		}
		catch(ServiceException e) {
			e.failRequest(this);
			e.logException(LOGGER);
		}
	}
@ Override public void service ( ) { LOGGER . info ( "Servicing the AccessRequestDeletionRequest." ) ; if ( ! authenticate ( AllowNewAccount . NEW_ACCOUNT_DISALLOWED ) ) { return ; } try { LOGGER . info ( "Delete the AccessRequest." ) ; AccessRequestServices . instance ( ) . deleteAccessRequests ( requestIdList , this . getUser ( ) . getUsername ( ) ) ; } 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 .
// all validations are done in deleteUserSetupRequests // TODO: if successful, send an email notification