protected void renderBody()

in src/main/java/org/apache/maven/report/projectinfo/CiManagementReport.java [121:189]


        protected void renderBody() {
            CiManagement cim = model.getCiManagement();
            if (cim == null) {
                startSection(getTitle());

                paragraph(getI18nString("nocim"));

                endSection();

                return;
            }

            String system = cim.getSystem();
            String url = cim.getUrl();
            List<Notifier> notifiers = cim.getNotifiers();

            // Overview
            startSection(getI18nString("overview.title"));

            sink.paragraph();
            linkPatternedText(getIntroForCiManagementSystem(system));
            sink.paragraph_();

            endSection();

            // Access
            startSection(getI18nString("access"));

            if (!(url == null || url.isEmpty())) {
                paragraph(getI18nString("url"));

                verbatimLink(url, url);
            } else {
                paragraph(getI18nString("nourl"));
            }

            endSection();

            // Notifiers
            startSection(getI18nString("notifiers.title"));

            if (notifiers == null || notifiers.isEmpty()) {
                paragraph(getI18nString("notifiers.nolist"));
            } else {
                sink.paragraph();
                sink.text(getI18nString("notifiers.intro"));
                sink.paragraph_();

                startTable();

                String type = getI18nString("notifiers.column.type");
                String address = getI18nString("notifiers.column.address");
                String configuration = getI18nString("notifiers.column.configuration");

                tableHeader(new String[] {type, address, configuration});

                for (Notifier notifier : notifiers) {
                    tableRow(new String[] {
                        notifier.getType(),
                        createLinkPatternedText(notifier.getAddress(), notifier.getAddress()),
                        propertiesToString(notifier.getConfiguration())
                    });
                }

                endTable();
            }

            endSection();
        }