Package org.zeroexchange.dataset

Examples of org.zeroexchange.dataset.SortDescriptor


        /**
         * Returns list of the available contracts.
         */
        @Override
        protected SlicingDataSet<Resource> getDataSet(ResourcesFilterData filter) {
            SortDescriptor sortDescriptor = null;
            if(getSort() != null) {
                sortDescriptor = new SortDescriptor(
                        getSort().getProperty(), getSort().isAscending(), localeService.getCurrentLanguage());
            }
            String searchQuery = null;
            if(filter != null) {
                searchQuery = filter.getSearchQuery();
View Full Code Here


    private class ResourcesDataProvider extends AbstractDataSetProvider<Resource, ResourcesFilterData> {
        private static final long serialVersionUID = 1L;

        @Override
        protected SlicingDataSet<Resource> getDataSet(ResourcesFilterData filter) {
            SortDescriptor sortDescriptor = null;
            if(getSort() != null) {
                sortDescriptor = new SortDescriptor(
                        getSort().getProperty(), getSort().isAscending(), localeService.getCurrentLanguage());
            }
            Contract contract = (Contract) getDefaultModelObject();
            String searchQuery = filter != null  ? filter.getSearchQuery() : null;
            ResourcesCriteria resCrit = new ResourcesCriteria();
View Full Code Here

        ISortableDataProvider<Message, String> dataProvider = new AbstractDataSetProvider<Message, Serializable>() {
            private static final long serialVersionUID = 1L;

                    @Override
                    protected SlicingDataSet<Message> getDataSet(Serializable filter) {
                        SortDescriptor sortDescriptor = null;
                        if(getSort() != null) {
                            sortDescriptor = new SortDescriptor(
                                    getSort().getProperty(), getSort().isAscending(), localeService.getCurrentLanguage());
                        }
                        return messageReader.getUserMessages(authorizedUserService.getCurrentUserId(),
                                sortDescriptor);
                    }
View Full Code Here

    private class ContractsDataProvider extends AbstractDataSetProvider<Contract, ContractFilterObject> {
        private static final long serialVersionUID = 1L;
       
        @Override
        protected SlicingDataSet<Contract> getDataSet(ContractFilterObject filter) {
            SortDescriptor sortDescriptor = null;
            if(getSort() != null) {
                sortDescriptor = new SortDescriptor(
                        getSort().getProperty(), getSort().isAscending(), localeService.getCurrentLanguage());
            }
            ContractFilter contractFilter = null;
            User currentUser = authorizedUserService.getCurrentUser();
            if(filter != null) {
View Full Code Here

TOP

Related Classes of org.zeroexchange.dataset.SortDescriptor

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.