public static boolean hasPageChildren(Page rootPage) {
boolean isTrue = false;
if (rootPage != null&& rootPage.listChildren(getPageFilter()).hasNext()) {
isTrue = true;
}
return isTrue;
}
public static PageFilter getPageFilter() {
PageFilter pf = new PageFilter();
return pf;
}
No comments:
Post a Comment
If you have any doubts or questions, please let us know.