agave-uuids/uuids-api/src/main/java/org/iplantc/service/uuid/resource/impl/UuidCollectionImpl.java
/**
	 * Looks up metadata for an array of uuid. 
	 * @param uuids the uuids to resolve
	 * @return ArrayNode of uuid metadata objects.
	 */
Looks up metadata for an array of uuid.
@param uuids the uuids to resolve
@return ArrayNode of uuid metadata objects.
Looks up metadata for an array of uuid . @param uuids the uuids to resolve @return ArrayNode of uuid metadata objects .
protected ArrayNode resolveUuids(String[] uuids) {
		ArrayNode jsonArray = mapper.createArrayNode();
		for (String uuid: uuids) {
			try {
		    	AgaveUUID agaveUuid = getAgaveUUIDInPath(uuid);
				ObjectNode json = mapper.createObjectNode();
					json.put("uuid", uuid);
					json.put("type", agaveUuid.getResourceType().name().toLowerCase());
				ObjectNode linksObject = mapper.createObjectNode();
		  		linksObject.set("self", mapper.createObjectNode()
		  							.put("href", TenancyHelper.resolveURLToCurrentTenant(agaveUuid.getObjectReference())));
		  		json.set("_links", linksObject);
		  		jsonArray.add(json);
		    }
		    catch (UUIDException e) {
		    	jsonArray.add(mapper.createObjectNode()
		    			.put("status", "error")
		    			.put("message", "Failed to resolve uuid " + uuid + ". " + e.getMessage()));
			}
			catch (Throwable e) {
				log.error("Failed to resolve resource for uuid " + uuid, e);
				jsonArray.add(mapper.createObjectNode()
		    			.put("status", "error")
		    			.put("message", "Failed to resolve resource for uuid " + uuid + ". " + e.getMessage()));
			}
		}
		return jsonArray;
	}
protected ArrayNode resolveUuids ( String [ ] uuids ) { ArrayNode jsonArray = mapper . createArrayNode ( ) ; for ( String uuid : uuids ) { try { AgaveUUID agaveUuid = getAgaveUUIDInPath ( uuid ) ; ObjectNode json = mapper . createObjectNode ( ) ; json . put ( "uuid" , uuid ) ; json . put ( "type" , agaveUuid . getResourceType ( ) . name ( ) . toLowerCase ( ) ) ; ObjectNode linksObject = mapper . createObjectNode ( ) ; linksObject . set ( "self" , mapper . createObjectNode ( ) . put ( "href" , TenancyHelper . resolveURLToCurrentTenant ( agaveUuid . getObjectReference ( ) ) ) ) ; json . set ( "_links" , linksObject ) ; jsonArray . add ( json ) ; } catch ( UUIDException e ) { jsonArray . add ( mapper . createObjectNode ( ) . put ( "status" , "error" ) . put ( "message" , "Failed to resolve uuid " + uuid + ". " + e . getMessage ( ) ) ) ; } catch ( Throwable e ) { log . error ( "Failed to resolve resource for uuid " + uuid , e ) ; jsonArray . add ( mapper . createObjectNode ( ) . put ( "status" , "error" ) . put ( "message" , "Failed to resolve resource for uuid " + uuid + ". " + e . getMessage ( ) ) ) ; } } return jsonArray ; }
Looks up metadata for an array of uuid.
Looks up metadata for an array of uuid .