Package org.zeroexchange.dao.resource.filter

Examples of org.zeroexchange.dao.resource.filter.ResourcesCriteria


                sortDescriptor = new SortDescriptor(
                        getSort().getProperty(), getSort().isAscending(), localeService.getCurrentLanguage());
            }
            Contract contract = (Contract) getDefaultModelObject();
            String searchQuery = filter != null  ? filter.getSearchQuery() : null;
            ResourcesCriteria resCrit = new ResourcesCriteria();
            resCrit.setQuery(searchQuery);
            if(filter != null && filter.isUserResourcesOnly()) {
                Integer currentUserId = authorizedUserService.getCurrentUserId();
                resCrit.setResourceOwnerId(currentUserId);
                resCrit.setResourcesParticipantId(currentUserId);
            }
            SlicingDataSet<Resource> dataSet =  resourceReader.getContractResources(
                    contract.getId(), sortDescriptor, resCrit);
            return dataSet;
        }
View Full Code Here

TOP

Related Classes of org.zeroexchange.dao.resource.filter.ResourcesCriteria

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.