agave-common/common-core/src/main/java/org/iplantc/service/common/search/AgaveResourceSearchFilter.java
/**
     * Transforms a specific, user-supplied search term into the appropriate
     * {@link SearchTerm} object.
     * @param attributeName
     * @return
     */
Transforms a specific, user-supplied search term into the appropriate
SearchTerm object.
@param attributeName
@return
Transforms a specific user - supplied search term into the appropriate SearchTerm object . @param attributeName @return
public SearchTerm filterAttributeName(String attributeName) 
    { 
        SearchTerm searchTerm = null;
        try {
            searchTerm = new SearchTerm(attributeName.toLowerCase(), getSearchTermPrefix());
            searchTerm.setMappedField(getSearchTermMappings().get(searchTerm.getSearchField()));
            if (getSearchTypeMappings().get(searchTerm.getSearchField()) == Date.class) {
            	if (searchTerm.getOperator() == SearchTerm.Operator.EQ) {
                	searchTerm.setOperator(SearchTerm.Operator.BETWEEN);
                }
                else if (searchTerm.getOperator() == SearchTerm.Operator.LT) {
                    searchTerm.setOperator(SearchTerm.Operator.BEFORE);
                }
                else if (searchTerm.getOperator() == SearchTerm.Operator.GT) {
                    searchTerm.setOperator(SearchTerm.Operator.AFTER);
                }
            }
        } catch (SearchSyntaxException e) {
            return null;
        }
        return searchTerm;
    }
public SearchTerm filterAttributeName ( String attributeName ) { SearchTerm searchTerm = null ; try { searchTerm = new SearchTerm ( attributeName . toLowerCase ( ) , getSearchTermPrefix ( ) ) ; searchTerm . setMappedField ( getSearchTermMappings ( ) . get ( searchTerm . getSearchField ( ) ) ) ; if ( getSearchTypeMappings ( ) . get ( searchTerm . getSearchField ( ) ) == Date . class ) { if ( searchTerm . getOperator ( ) == SearchTerm . Operator . EQ ) { searchTerm . setOperator ( SearchTerm . Operator . BETWEEN ) ; } else if ( searchTerm . getOperator ( ) == SearchTerm . Operator . LT ) { searchTerm . setOperator ( SearchTerm . Operator . BEFORE ) ; } else if ( searchTerm . getOperator ( ) == SearchTerm . Operator . GT ) { searchTerm . setOperator ( SearchTerm . Operator . AFTER ) ; } } } catch ( SearchSyntaxException e ) { return null ; } return searchTerm ; }
Transforms a specific, user-supplied search term into the appropriate
 {@link SearchTerm} object.
Transforms a specific user - supplied search term into the appropriate { @link SearchTerm } object .
// adjust data queries to make LT and GT equivalent to BEFORE and AFTER