Package org.apache.roller.business

Examples of org.apache.roller.business.PluginManager


                String xformed = sourceText;       
                if (entry.getPlugins() != null) {
                    RollerContext rctx =
                        RollerContext.getRollerContext();
                    try {
                        PluginManager ppmgr = roller.getPagePluginManager();
                        Map plugins = ppmgr.getWeblogEntryPlugins(
                                entry.getWebsite());

                        xformed = ppmgr.applyWeblogEntryPlugins(plugins, entry, sourceText);

                    } catch (Exception e) {
                        mLogger.error(e);
                    }
                }
View Full Code Here


     * Init entry from Roller entry
     */
    private void initFromRollerEntry(WeblogEntryData rollerEntry, Map pagePlugins)
    throws RollerException {
        Roller roller = RollerFactory.getRoller();
        PluginManager ppmgr = roller.getPagePluginManager();
       
        String content = "";
        if (!StringUtils.isEmpty(rollerEntry.getText())) {
            content = rollerEntry.getText();
        } else {
            content = rollerEntry.getSummary();
        }
        content = ppmgr.applyWeblogEntryPlugins(pagePlugins, rollerEntry, content);
       
        setAuthor(    rollerEntry.getCreator().getFullName());
        setTitle(     rollerEntry.getTitle());
        setPermalink( rollerEntry.getLink());
        setPubTime(   rollerEntry.getPubTime());
View Full Code Here

TOP

Related Classes of org.apache.roller.business.PluginManager

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.