| org.riotfamily.pages.dao.PageDao
All known Subclasses: org.riotfamily.pages.dao.AbstractPageDao,
PageDao | public interface PageDao (Code) | | DAO interface for
Page pages and
PageAlias aliases .
Implementors should extend
AbstractPageDao instead of implementing
this interface directly.
author: Felix Gnass [fgnass at neteye dot de] since: 6.5 |
Method Summary | |
public Page | addTranslation(Page page, Site site) | public void | deleteAlias(Page page) | public void | deletePage(Page page) | public void | deleteSite(Site site) | public PageNode | findNodeForHandler(String handlerName) Returns the PageNode with the given handlerName, or null if
no such node exists. | public Page | findPage(Site site, String path) Returns the Page with the given site and path, or null if
no such page exists. | public PageAlias | findPageAlias(Site site, String path) Returns the PageAlias with the given site and path, or null if
no such alias exists. | public Page | findPageForHandler(String handlerName, Site site) Returns the Page with the given handlerName and site,
or null if no such page exists. | public List | findPagesForHandler(String handlerName, Site site) Returns all pages with the given handlerName and site,
or an empty list if no page is found. | public Site | findSite(String hostName, String path) | public Site | getDefaultSite() Returns the first site returned by listSites(). | public PageNode | getRootNode() Returns the root node. | public List | getWildcardPaths(Site site) | public List | listSites() Returns all sites. | public Page | loadPage(Long id) Loads the Page with the given id. | public Site | loadSite(Long id) | public void | moveNode(PageNode node, PageNode newParent) | public void | saveNode(PageNode node) | public void | savePage(Site site, Page page) | public void | savePage(Page parent, Page child) | public void | saveSite(Site site) | public void | updateNode(PageNode node) | public void | updatePage(Page page) | public void | updateSite(Site site) |
deleteAlias | public void deleteAlias(Page page)(Code) | | |
findNodeForHandler | public PageNode findNodeForHandler(String handlerName)(Code) | | Returns the PageNode with the given handlerName, or null if
no such node exists.
throws: IncorrectResultSizeDataAccessException - if more than one nodeexists with the given handlerName |
findPage | public Page findPage(Site site, String path)(Code) | | Returns the Page with the given site and path, or null if
no such page exists.
|
findPageAlias | public PageAlias findPageAlias(Site site, String path)(Code) | | Returns the PageAlias with the given site and path, or null if
no such alias exists.
|
findPageForHandler | public Page findPageForHandler(String handlerName, Site site)(Code) | | Returns the Page with the given handlerName and site,
or null if no such page exists.
throws: IncorrectResultSizeDataAccessException - if more than one pageexists with the given handlerName |
findPagesForHandler | public List findPagesForHandler(String handlerName, Site site)(Code) | | Returns all pages with the given handlerName and site,
or an empty list if no page is found.
|
getDefaultSite | public Site getDefaultSite()(Code) | | Returns the first site returned by listSites().
|
listSites | public List listSites()(Code) | | Returns all sites.
|
loadPage | public Page loadPage(Long id)(Code) | | Loads the Page with the given id.
|
|
|