public interface PagesContainer extends TraversableAmetysObject, SiteAwareAmetysObject
TraversableAmetysObject
containing pages and which knows about its current site and sitemap.Modifier and Type | Method and Description |
---|---|
Page |
getChildPageAt(int index)
Gets the child
Page at the given position |
AmetysObjectIterable<? extends Page> |
getChildrenPages()
Retrieves child pages.
|
AmetysObjectIterable<? extends Page> |
getChildrenPages(boolean includeInvisiblePages)
Retrieves child pages.
|
String |
getPathInSitemap()
Computes the path relative to the current sitemap.
|
Sitemap |
getSitemap()
Retrieves the sitemap containing the current sitemap.
|
String |
getSitemapName()
Returns this page's sitemap name
|
getChild, getChildAt, getChildPosition, getChildren, hasChild
getSite, getSiteName
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Sitemap getSitemap() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getSitemapName() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getPathInSitemap() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.AmetysObjectIterable<? extends Page> getChildrenPages() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.AmetysObjectIterable<? extends Page> getChildrenPages(boolean includeInvisiblePages) throws AmetysRepositoryException
includeInvisiblePages
- true to include invisible pagesAmetysRepositoryException
- if an error occurs.Page getChildPageAt(int index) throws UnknownAmetysObjectException, AmetysRepositoryException
Page
at the given positionindex
- the position of the Page
within the ordered set of its sibling objects.Page
if foundAmetysRepositoryException
- if an error occursUnknownAmetysObjectException
- if no child page was found at this position