agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/MetadataSearch.java
/**
     * Find a single document in the collection
     *
     * @param uuid     the uuid to lookup
     * @param tenantId the tenant to lookup
     * @return {@link MetadataItem} matching the criteria
     */
Find a single document in the collection
@param uuid     the uuid to lookup
@param tenantId the tenant to lookup
@return  MetadataItem matching the criteria
Find a single document in the collection @param uuid the uuid to lookup @param tenantId the tenant to lookup @return MetadataItem matching the criteria
public MetadataItem findById(String uuid, String tenantId) throws MetadataException {
        if (StringUtils.isBlank(uuid))
            throw new MetadataException("Uuid cannot be null.");
        if (StringUtils.isBlank(tenantId))
            throw new MetadataException("TenantId cannot be null.");
        Bson query = getMetadataDao().getUuidAndTenantIdQuery(uuid, tenantId);
        return getMetadataDao().findSingleMetadataItem(query);
    }
public MetadataItem findById ( String uuid , String tenantId ) throws MetadataException { if ( StringUtils . isBlank ( uuid ) ) throw new MetadataException ( "Uuid cannot be null." ) ; if ( StringUtils . isBlank ( tenantId ) ) throw new MetadataException ( "TenantId cannot be null." ) ; Bson query = getMetadataDao ( ) . getUuidAndTenantIdQuery ( uuid , tenantId ) ; return getMetadataDao ( ) . findSingleMetadataItem ( query ) ; }
Find a single document in the collection
 @param uuid     the uuid to lookup
 @param tenantId the tenant to lookup
 @return {@link MetadataItem} matching the criteria
Find a single document in the collection @param uuid the uuid to lookup @param tenantId the tenant to lookup @return { @link MetadataItem } matching the criteria