Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.ResourceSortCriteria


     *            the sort criteria to use
     * @return the Sort object describing the sorting
     */
    public Sort getSort(final ResourceSortCriteria inSortCriteria)
    {
        ResourceSortCriteria sortCriteria = overridingSortCriteria != null ? overridingSortCriteria : inSortCriteria;

        ArrayList<org.apache.lucene.search.SortField> sortFields = new ArrayList<org.apache.lucene.search.SortField>();
        for (ResourceSortCriterion criterion : sortCriteria.getCriteria())
        {
            boolean reverse = criterion.getSortDirection() == SortDirection.DESCENDING;
            switch (criterion.getSortField())
            {
            case DATE_ADDED:
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.ResourceSortCriteria

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.