Package com.alibaba.citrus.util

Examples of com.alibaba.citrus.util.Paginator


                }
            }
        }

        int count = channelService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

        condition.put("offset", paginator.getOffset());
        condition.put("length", paginator.getLength());
        List<Channel> channels = new ArrayList<Channel>();

        if ((null != channelId) && (channelId != 0l)) {
            channels.add(channelService.findById(channelId));
            paginator.setItems(1);
            paginator.setPage(0);
            searchKey = String.valueOf(channelId); // 定义为新的searchKey
        } else {
            channels = channelService.listByConditionWithoutColumn(condition);
        }
View Full Code Here


            searchKey = "";
        }
        condition.put("searchKey", searchKey);

        int count = canalService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

        condition.put("offset", paginator.getOffset());
        condition.put("length", paginator.getLength());

        List<Canal> canals = canalService.listByCondition(condition);

        List<SeniorCanal> seniorCanals = new ArrayList<SeniorCanal>();
View Full Code Here

            searchKey = "";
        }
        condition.put("searchKey", searchKey);

        int count = dataMediaService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

        condition.put("offset", paginator.getOffset());
        condition.put("length", paginator.getLength());

        List<DataMedia> dataMedias = dataMediaService.listByCondition(condition);
        List<SeniorDataMedia> seniorDataMedias = new ArrayList<SeniorDataMedia>();
        for (DataMedia dataMedia : dataMedias) {
            SeniorDataMedia seniorDataMedia = new SeniorDataMedia();
View Full Code Here

        condition.put("searchKey", searchKey);
        condition.put("monitorName", monitorName);
        condition.put("pipelineId", pipelineId);

        int count = logRecordService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

        condition.put("offset", paginator.getOffset());
        condition.put("length", paginator.getLength());

        List<LogRecord> logRecords = logRecordService.listByCondition(condition);
        // List<LogRecord> logRecords = logRecordService.listAll();

        context.put("logRecords", logRecords);
View Full Code Here

            searchKey = "";
        }
        condition.put("searchKey", searchKey);

        int count = dataMediaSourceService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

        condition.put("offset", paginator.getOffset());
        condition.put("length", paginator.getLength());

        List<DataMediaSource> dataMediaSources = dataMediaSourceService.listByCondition(condition);
        List<SeniorDataMediaSource> seniorDataMediaSources = new ArrayList<SeniorDataMediaSource>();
        for (DataMediaSource dataMediaSource : dataMediaSources) {
View Full Code Here

            searchKey = "";
        }
        condition.put("searchKey", searchKey);

        int count = canalService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

        condition.put("offset", paginator.getOffset());
        condition.put("length", paginator.getLength());

        List<Canal> canals = canalService.listByCondition(condition);

        List<SeniorCanal> seniorCanals = new ArrayList<SeniorCanal>();
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.util.Paginator

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.