agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/MetadataSearch.java
/**
     * Find one document matching {@link Bson} query with fields specified by {@code filters}
     *
     * @param uuid     the uuid to lookup
     * @param tenantId the tenant to lookup
     * @param filters  String list of fields to show in result
     * @return {@link Document} matching the query, null if nothing is found
     */
Find one document matching  Bson query with fields specified by  filters
@param uuid     the uuid to lookup
@param tenantId the tenant to lookup
@param filters  String list of fields to show in result
@return  Document matching the query, null if nothing is found
Find one document matching Bson query with fields specified by filters @param uuid the uuid to lookup @param tenantId the tenant to lookup @param filters String list of fields to show in result @return Document matching the query null if nothing is found
public Document filterFindById(String uuid, String tenantId, String[] filters) 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);
        List<Document> foundDocuments = filterFind(query, filters);
        if (foundDocuments.size() > 0)
            return foundDocuments.get(0);
        return null;
    }
public Document filterFindById ( String uuid , String tenantId , String [ ] filters ) 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 ) ; List < Document > foundDocuments = filterFind ( query , filters ) ; if ( foundDocuments . size ( ) > 0 ) return foundDocuments . get ( 0 ) ; return null ; }
Find one document matching {@link Bson} query with fields specified by {@code filters}
 @param uuid     the uuid to lookup
 @param tenantId the tenant to lookup
 @param filters  String list of fields to show in result
 @return {@link Document} matching the query, null if nothing is found
Find one document matching { @link Bson } query with fields specified by { @code filters } @param uuid the uuid to lookup @param tenantId the tenant to lookup @param filters String list of fields to show in result @return { @link Document } matching the query null if nothing is found