Package org.zeroexchange.dataset.criteria.processor.sort

Examples of org.zeroexchange.dataset.criteria.processor.sort.OrderData


        ProcessorAwareDataSet<Message> dataSet = messageDAO.getUserMessages(userId);
        if(sortDescriptor != null) {
            //Add sorting processor
            dataSet.setSortProcessor(
                    sortingProcessorsFactory.getProcessor(sortDescriptor.getSortType()),
                    new OrderData(sortDescriptor.getField(), sortDescriptor.isAsc(), sortDescriptor.getLang()));
        }
        return dataSet;
    }
View Full Code Here


            SortDescriptor sortDescriptor, Object resourcesFilter) {
        if(sortDescriptor != null) {
            //Add sorting processor
            dataSet.setSortProcessor(
                    sortingProcessorsFactory.getProcessor(sortDescriptor.getSortType()),
                    new OrderData(sortDescriptor.getField(), sortDescriptor.isAsc(), sortDescriptor.getLang()));
        }
       
        if(resourcesFilter != null) {
            FilterProcessor<Object> queryProcessor = filterProcessorsFactory.getFilterProcessor(resourcesFilter.getClass());
            if(queryProcessor != null) {
View Full Code Here

    public SlicingDataSet<Contract> getAvailableContracts(SortDescriptor sortDescriptor, ContractFilter filter, User viewer) {
        ProcessorAwareDataSet<Contract> dataSet = contractDAO.getAvailableContracts(viewer);
        //Add sorting processor
        if(sortDescriptor != null) {
            dataSet.setSortProcessor(sortingProcessorsFactory.getProcessor(
                    sortDescriptor.getSortType()), new OrderData(
                            sortDescriptor.getField(), sortDescriptor.isAsc(), sortDescriptor.getLang()));
        }
       
        //Add filter processor
        if(filter != null) {
View Full Code Here

TOP

Related Classes of org.zeroexchange.dataset.criteria.processor.sort.OrderData

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.