Package com.dottydingo.hyperion.service.sort

Examples of com.dottydingo.hyperion.service.sort.SortBuilder


            if(name.equals("id"))
                hasId = true;
            boolean desc = props.length == 2 && props[1].equalsIgnoreCase("desc");

            Map<String,SortBuilder> sortBuilders = entityPlugin.getSortBuilders();
            SortBuilder sortBuilder = sortBuilders.get(name);
            if(sortBuilder == null)
                throw new BadRequestException(String.format("%s is not a valid sort field.",name));

            Sort s = sortBuilder.buildSort(name,desc);
            if (sort == null)
            {
                sort = s;
            }
            else
View Full Code Here

TOP

Related Classes of com.dottydingo.hyperion.service.sort.SortBuilder

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.