Package org.apache.roller.ui.core.tasks

Examples of org.apache.roller.ui.core.tasks.SyncWebsitesTask


    public void testRefreshEntries() {
        try {     
            PlanetManager planet = RollerFactory.getRoller().getPlanetManager();
           
            // run sync task to fill aggregator with websites created by super
            SyncWebsitesTask syncTask = new SyncWebsitesTask();
            syncTask.init(RollerFactory.getRoller(), "dummy");
            syncTask.run();          
           
            RefreshEntriesTask refreshTask = new RefreshEntriesTask();
            refreshTask.init(RollerFactory.getRoller(), "dummy");
            refreshTask.run();
           
View Full Code Here


            {
                BasePageModel pageModel = new BasePageModel(
                    "planetConfig.pageTitle", request, response, mapping);
                request.setAttribute("model",pageModel);               
                Roller roller = (Roller)RollerFactory.getRoller();
                SyncWebsitesTask task = new SyncWebsitesTask();
                task.init(roller, "dummy");
                roller.getThreadManager().executeInBackground(task);
                ActionMessages messages = new ActionMessages();
                messages.add(null,
                        new ActionMessage("planetConfig.success.synced"));
                saveMessages(request, messages);
View Full Code Here

TOP

Related Classes of org.apache.roller.ui.core.tasks.SyncWebsitesTask

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.