Examples of moveWeblogCategoryContents()


Examples of org.apache.roller.business.WeblogManager.moveWeblogCategoryContents()

        assertEquals(0, dest.retrieveWeblogEntries(false).size());
        assertEquals(1, c1.retrieveWeblogEntries(false).size());
        assertEquals(3, c1.retrieveWeblogEntries(true).size());
       
        // move contents of source category c1 to destination category dest
        mgr.moveWeblogCategoryContents(c1, dest);
        mgr.saveWeblogCategory(c1);
        TestUtils.endSession(true);
       
        // after move, verify number of entries in each category
        dest = mgr.getWeblogCategory(dest.getId());
View Full Code Here

Examples of org.apache.roller.business.WeblogManager.moveWeblogCategoryContents()

                {
                    WeblogCategoryData destCat =
                        wmgr.getWeblogCategory(form.getMoveToWeblogCategoryId());
                    if (rses.isUserAuthorizedToAuthor(destCat.getWebsite()))
                    {
                        wmgr.moveWeblogCategoryContents(catToDelete, destCat);               
                        RollerFactory.getRoller().flush();
                    }
                    else
                    {
                        return mapping.findForward("access-denied");
View Full Code Here

Examples of org.apache.roller.model.WeblogManager.moveWeblogCategoryContents()

                {
                    WeblogCategoryData destCat =
                        wmgr.getWeblogCategory(form.getMoveToWeblogCategoryId());
                    if (rses.isUserAuthorizedToAuthor(destCat.getWebsite()))
                    {
                        wmgr.moveWeblogCategoryContents(catToDelete, destCat);               
                        RollerFactory.getRoller().flush();
                    }
                    else
                    {
                        return mapping.findForward("access-denied");
View Full Code Here

Examples of org.apache.roller.model.WeblogManager.moveWeblogCategoryContents()

        assertEquals(0, dest.retrieveWeblogEntries(false).size());
        assertEquals(1, c1.retrieveWeblogEntries(false).size());
        assertEquals(3, c1.retrieveWeblogEntries(true).size());
       
        // move contents of source category c1 to destination category dest
        mgr.moveWeblogCategoryContents(c1, dest);
        mgr.saveWeblogCategory(c1);
        TestUtils.endSession(true);
       
        // after move, verify number of entries in each category
        dest = mgr.getWeblogCategory(dest.getId());
View Full Code Here

Examples of org.apache.roller.weblogger.business.WeblogEntryManager.moveWeblogCategoryContents()

        if(getCategory() != null) try {
            WeblogEntryManager wmgr = WebloggerFactory.getWeblogger().getWeblogEntryManager();
           
            if(getTargetCategoryId() != null) {
                WeblogCategory target = wmgr.getWeblogCategory(getTargetCategoryId());
                wmgr.moveWeblogCategoryContents(getCategory(), target);
                WebloggerFactory.getWeblogger().flush();
            }
           
            // notify cache
            String id = getCategory().getId();
View Full Code Here

Examples of org.apache.roller.weblogger.business.WeblogManager.moveWeblogCategoryContents()

        if(getCategory() != null) try {
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
           
            if(getTargetCategoryId() != null) {
                WeblogCategory target = wmgr.getWeblogCategory(getTargetCategoryId());
                wmgr.moveWeblogCategoryContents(getCategory(), target);
                WebloggerFactory.getWeblogger().flush();
            }
           
            // notify cache
            String id = getCategory().getId();
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.