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 = userService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

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

        List<User> users = userService.listByCondition(condition);
        context.put("users", users);
        context.put("paginator", paginator);
        context.put("searchKey", searchKey);
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 = dataMatrixService.getCount(condition);
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

        condition.put("offset", paginator.getOffset());
        condition.put("length", paginator.getLength());
        List<DataMatrix> matrixs = new ArrayList<DataMatrix>();
        if ((null != matrixId) && (matrixId != 0l)) {
            DataMatrix matrix = dataMatrixService.findById(matrixId);
            matrixs.add(matrix);
            paginator.setItems(1);
            paginator.setPage(0);
            searchKey = String.valueOf(matrixId); // 定义为新的searchKey
        } else if (StringUtils.isNotEmpty(groupKey)) {
            DataMatrix matrix = dataMatrixService.findByGroupKey(groupKey);
            matrixs.add(matrix);
            paginator.setItems(1);
            paginator.setPage(0);
            searchKey = String.valueOf(groupKey); // 定义为新的searchKey
        } else {
            matrixs = dataMatrixService.listByCondition(condition);
        }
View Full Code Here

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

        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);
        for (LogRecord logRecord : logRecords) {
            if (!StringUtils.isEmpty(logRecord.getMessage())) {
                logRecord.setMessage(logRecord.getMessage().replaceAll("\n\t", "<br/>"));
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);
        context.put("dataMedias", dataMedias);
        context.put("paginator", paginator);
        context.put("searchKey", searchKey);
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);
        context.put("sources", dataMediaSources);
        context.put("paginator", paginator);
        context.put("searchKey", searchKey);
View Full Code Here

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

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

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

        List<AutoKeeperCluster> autoKeeperClusters = autoKeeperClusterService.listAutoKeeperClusters();

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

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

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

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

        List<Node> nodes = nodeService.listByCondition(condition);

        List<SeniorNode> seniorNodes = new ArrayList<SeniorNode>();
View Full Code Here

    public void execute(@Param("pipelineId") Long pipelineId, @Param("pageIndex") int pageIndex, Context context)
                                                                                                                 throws Exception {
        Map<String, Object> condition = new HashMap<String, Object>();
        int count = alarmRuleService.getCount();
        Paginator paginator = new Paginator();
        paginator.setItems(count);
        paginator.setPage(pageIndex);

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

        List<AlarmRule> alarmRules = alarmRuleService.listAllAlarmRules(condition);
        StringBuffer buffer = new StringBuffer();
        for (AlarmRule alarmRule : alarmRules) {
            buffer.append(alarmRule.getId());
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.