org.riotfamily.pages.dao
Class PageValidationUtils

java.lang.Object
  extended by org.riotfamily.pages.dao.PageValidationUtils

public final class PageValidationUtils
extends Object

Since:
6.5
Author:
Carsten Woelk [cwoelk at neteye dot de]

Method Summary
static boolean containsPathComponent(Collection<Page> pages, String pathComponent)
           
static Collection<Page> getSiblings(Page page, Site site)
          Returns all siblings of the page in the given site.
static boolean isTranslatable(Page page, Site targetSite)
           
static boolean isValidChild(PageNode node, Page page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isValidChild

public static boolean isValidChild(PageNode node,
                                   Page page)

isTranslatable

public static boolean isTranslatable(Page page,
                                     Site targetSite)

containsPathComponent

public static boolean containsPathComponent(Collection<Page> pages,
                                            String pathComponent)

getSiblings

public static Collection<Page> getSiblings(Page page,
                                           Site site)
Returns all siblings of the page in the given site. If the site is identical to the page's site, the page itself will be contained too.