agave-apps/clients/ProfileService.java
/**
	 * Parses the repsonse json from the profile service into a list of InternalUser objects.
	 * 
	 * @param response JsonNode object containing the service result attribute value.
	 * @return List of Profile objects
	 * @throws ProfileException 
	 */
Parses the repsonse json from the profile service into a list of InternalUser objects.

@param response JsonNode object containing the service result attribute value.
@return List of Profile objects
@throws ProfileException
Parses the repsonse json from the profile service into a list of InternalUser objects . @param response JsonNode object containing the service result attribute value . @return List of Profile objects @throws ProfileException
private List<InternalUser> parseInternalUsers(JsonNode response) throws ProfileException
	{
		List<InternalUser> profiles = new ArrayList<InternalUser>();
		if (response == null) {
			return profiles;
		} 
		else 
		{
			if (response.isArray()) {
				for(int i=0; i<response.size(); i++) {
					JsonNode jsonProfile = response.get(i);
					profiles.add(InternalUser.fromJSON(jsonProfile));
				}
			} else {
				profiles.add(InternalUser.fromJSON(response));
			}
			return profiles;
		}
	}
private List < InternalUser > parseInternalUsers ( JsonNode response ) throws ProfileException { List < InternalUser > profiles = new ArrayList < InternalUser > ( ) ; if ( response == null ) { return profiles ; } else { if ( response . isArray ( ) ) { for ( int i = 0 ; i < response . size ( ) ; i ++ ) { JsonNode jsonProfile = response . get ( i ) ; profiles . add ( InternalUser . fromJSON ( jsonProfile ) ) ; } } else { profiles . add ( InternalUser . fromJSON ( response ) ) ; } return profiles ; } }
Parses the repsonse json from the profile service into a list of InternalUser objects.
Parses the repsonse json from the profile service into a list of InternalUser objects .