agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/MetadataValidation.java
/**
     * Build the URL to query the agave-uuid api with the {@code uuid}
     *
     * @param uuid to check
     * @return String URL for the GET query to agave-uuid api
     * @throws TenantException    if unable to find the Tenant by TenantId
     * @throws URISyntaxException if unable to build a valid URL from the uuid
     */
Build the URL to query the agave-uuid api with the  uuid
@param uuid to check
@return String URL for the GET query to agave-uuid api
@throws TenantException    if unable to find the Tenant by TenantId
@throws URISyntaxException if unable to build a valid URL from the uuid
Build the URL to query the agave - uuid api with the uuid @param uuid to check @return String URL for the GET query to agave - uuid api @throws TenantException if unable to find the Tenant by TenantId @throws URISyntaxException if unable to build a valid URL from the uuid
public String buildUuidValidationURL(String uuid) throws TenantException, URISyntaxException {
        Tenant tenant = null;
        String strUrl = "";
        URI uri = null;
        tenant = new TenantDao().findByTenantId(TenancyHelper.getCurrentTenantId());
        URI tenantBaseUrl = URI.create(tenant.getBaseUrl());
        URIBuilder builder = new URIBuilder();
        builder.setScheme(tenantBaseUrl.getHost());
        builder.setPath("uuid/v2");
        builder.setParameter("uuid", uuid);
        uri = builder.build();
        strUrl = uri.toString();
        return strUrl;
    }
public String buildUuidValidationURL ( String uuid ) throws TenantException , URISyntaxException { Tenant tenant = null ; String strUrl = "" ; URI uri = null ; tenant = new TenantDao ( ) . findByTenantId ( TenancyHelper . getCurrentTenantId ( ) ) ; URI tenantBaseUrl = URI . create ( tenant . getBaseUrl ( ) ) ; URIBuilder builder = new URIBuilder ( ) ; builder . setScheme ( tenantBaseUrl . getHost ( ) ) ; builder . setPath ( "uuid/v2" ) ; builder . setParameter ( "uuid" , uuid ) ; uri = builder . build ( ) ; strUrl = uri . toString ( ) ; return strUrl ; }
Build the URL to query the agave-uuid api with the {@code uuid}
 @param uuid to check
 @return String URL for the GET query to agave-uuid api
 @throws TenantException    if unable to find the Tenant by TenantId
 @throws URISyntaxException if unable to build a valid URL from the uuid
Build the URL to query the agave - uuid api with the { @code uuid } @param uuid to check @return String URL for the GET query to agave - uuid api @throws TenantException if unable to find the Tenant by TenantId @throws URISyntaxException if unable to build a valid URL from the uuid