Examples of descendentOf()


Examples of org.apache.roller.pojos.WeblogCategoryData.descendentOf()

        WeblogCategoryData destCd =
                (WeblogCategoryData) this.strategy.load(
                destId, WeblogCategoryData.class);
       
        // TODO: this check should be made before calling this method?
        if (destCd.descendentOf(srcCd)) {
            throw new RollerException(
                    "ERROR cannot move parent category into it's own child");
        }
       
        // get all entries in category and subcats
View Full Code Here

Examples of org.apache.roller.pojos.WeblogCategoryData.descendentOf()

                    WeblogCategoryData cat = (WeblogCategoryData)allCats.next();
                    // Allow entries to be moved to any other category except
                    // root and the sub-cats of the category being deleted.
                    if (!cat.getId().equals(catid)
                        && cat.getParent()!=null
                        && !cat.descendentOf(catToDelete)
                        && cat.retrieveWeblogEntries(true).size() < 1)
                    {
                        destCats.add(cat);
                    }                   
                }
View Full Code Here

Examples of org.apache.roller.pojos.WeblogCategoryData.descendentOf()

                    WeblogCategoryData cat = (WeblogCategoryData)allCats.next();
                    // Allow entries to be moved to any other category except
                    // root and the sub-cats of the category being deleted.
                    if (!cat.getId().equals(catid)
                        && cat.getParent()!=null
                        && !cat.descendentOf(catToDelete))
                    {
                        destCats.add(cat);
                    }                   
                }
                if (destCats.size() > 0)
View Full Code Here

Examples of org.apache.roller.pojos.WeblogCategoryData.descendentOf()

                    WeblogCategoryData cat = (WeblogCategoryData)allCats.next();
                    // Allow entries to be moved to any other category except
                    // root and the sub-cats of the category being deleted.
                    if (!cat.getId().equals(catid)
                        && cat.getParent()!=null
                        && !cat.descendentOf(catToDelete))
                    {
                        destCats.add(cat);
                    }                   
                }
                if (destCats.size() > 0)
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.