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

@param response JsonNode object containing the service result attribute value.
Parses the repsonse json from the IO service into a list of RemoteFileInfo objects . @param response JsonNode object containing the service result attribute value .
private List<RemoteFilePermission> parseFilePermissions(JsonNode response) throws RemoteFileException
	{
		List<RemoteFilePermission> pems = new ArrayList<RemoteFilePermission>();
		if (response == null) {
			return pems;
		} 
		else 
		{
			if (response.isArray()) {
				for(int i=0; i<response.size(); i++) {
					JsonNode jsonPem = response.get(i);
					pems.add(RemoteFilePermission.fromJSON(jsonPem));
				}
			} else {
				pems.add(RemoteFilePermission.fromJSON(response));
			}
			return pems;
		}
	}
private List < RemoteFilePermission > parseFilePermissions ( JsonNode response ) throws RemoteFileException { List < RemoteFilePermission > pems = new ArrayList < RemoteFilePermission > ( ) ; if ( response == null ) { return pems ; } else { if ( response . isArray ( ) ) { for ( int i = 0 ; i < response . size ( ) ; i ++ ) { JsonNode jsonPem = response . get ( i ) ; pems . add ( RemoteFilePermission . fromJSON ( jsonPem ) ) ; } } else { pems . add ( RemoteFilePermission . fromJSON ( response ) ) ; } return pems ; } }
Parses the repsonse json from the IO service into a list of RemoteFileInfo objects.
Parses the repsonse json from the IO service into a list of RemoteFileInfo objects .