src/org/ohmage/request/clazz/ClassReadRequest.java
@Override
	public void service() {
		LOGGER.info("Servicing a class read request.");
		
		if(! authenticate(AllowNewAccount.NEW_ACCOUNT_DISALLOWED)) {
			return;
		}
		
		try {
			LOGGER.info("Gathering the information about the classes in the list.");
			result.putAll(
					ClassServices.instance().getClassesInformation(
							getUser().getUsername(),
							classIds,
							classNameTokens,
							classDescriptionTokens,
							role,
							withUserList));
			
			LOGGER.info("Classes found: " + result.size());
		}
		catch(ServiceException e) {
			e.failRequest(this);
			e.logException(LOGGER);
		}
	}
/**
	 * Validates that the classes in the list exist, then aggregates the
	 * requested information.
	 */
Validates that the classes in the list exist, then aggregates the
requested information.
Validates that the classes in the list exist then aggregates the requested information .
@Override
	public void service() {
		LOGGER.info("Servicing a class read request.");
		if(! authenticate(AllowNewAccount.NEW_ACCOUNT_DISALLOWED)) {
			return;
		}
		try {
			LOGGER.info("Gathering the information about the classes in the list.");
			result.putAll(
					ClassServices.instance().getClassesInformation(
							getUser().getUsername(),
							classIds,
							classNameTokens,
							classDescriptionTokens,
							role,
							withUserList));
			LOGGER.info("Classes found: " + result.size());
		}
		catch(ServiceException e) {
			e.failRequest(this);
			e.logException(LOGGER);
		}
	}
@ Override public void service ( ) { LOGGER . info ( "Servicing a class read request." ) ; if ( ! authenticate ( AllowNewAccount . NEW_ACCOUNT_DISALLOWED ) ) { return ; } try { LOGGER . info ( "Gathering the information about the classes in the list." ) ; result . putAll ( ClassServices . instance ( ) . getClassesInformation ( getUser ( ) . getUsername ( ) , classIds , classNameTokens , classDescriptionTokens , role , withUserList ) ) ; LOGGER . info ( "Classes found: " + result . size ( ) ) ; } catch ( ServiceException e ) { e . failRequest ( this ) ; e . logException ( LOGGER ) ; } }
Validates that the classes in the list exist, then aggregates the
 requested information.
Validates that the classes in the list exist then aggregates the requested information .