Package de.zib.scalaris.examples.wikipedia.bliki

Examples of de.zib.scalaris.examples.wikipedia.bliki.MyWikiModel.render()


        Set<String> oldLnks;
        if (oldRevId != -1 && oldPage != null && oldPage.getCurRev() != null) {
            // get a list of previous categories and templates:
            wikiModel.setUp();
            final long timeAtRenderStart = System.currentTimeMillis();
            wikiModel.render(null, oldPage.getCurRev().unpackedText());
            timeAtStart -= (System.currentTimeMillis() - timeAtRenderStart);
            // note: no need to normalise the pages, we will do so during the write/read key generation
            oldCats = wikiModel.getCategories().keySet();
            oldTpls = wikiModel.getTemplates();
            if (Options.WIKI_USE_BACKLINKS) {
View Full Code Here


        }
        // get new categories and templates
        wikiModel.setUp();
        do {
            final long timeAtRenderStart = System.currentTimeMillis();
            wikiModel.render(null, newRev.unpackedText());
            timeAtStart -= (System.currentTimeMillis() - timeAtRenderStart);
        } while (false);
        if (wikiModel.getRedirectLink() != null) {
            newPage.setRedirect(true);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.