private void makeFormSections() { makePropertiesForm(); WikiImportProperty importProperty = WikiImportProperty.createFrom(pageData.getProperties()); if (importProperty != null) makeImportUpdateForm(importProperty); else makeImportForm(); makeSymbolicLinkSection(); }
public void run(TestResponder testResponder, PageData data) throws Exception { this.testResponder = testResponder; this.data = data; importProperty = WikiImportProperty.createFrom(data.getProperties()); if (importProperty != null && importProperty.isAutoUpdate()) { testResponder.addToResponse("<span class=\"meta\">Updating imported content...</span>"); testResponder.addToResponse("<span class=\"meta\">"); try { wikiImporter = importerFactory.newImporter(this); wikiImporter.parseUrl(importProperty.getSourceUrl()); wikiPage = data.getWikiPage(); doUpdating(); if (!errorOccured) testResponder.addToResponse("done"); } catch (Exception e) { pageImportError(data.getWikiPage(), e); } testResponder.addToResponse("</span>"); } }