Package org.ametys.web.repository.page
Interface PagesContainer
- All Superinterfaces:
AmetysObject
,SiteAwareAmetysObject
,TraversableAmetysObject
- All Known Subinterfaces:
MetadataAwarePagesContainer
,ModifiablePage
,Page
- All Known Implementing Classes:
AbstractLevelPage
,AbstractOdfPage
,CoursePage
,DefaultPage
,FirstLevelPage
,OrgUnitPage
,ProgramPage
,RedirectPage
,SecondLevelPage
,Sitemap
,TransitionalPage
,UGCPage
,UGCTransitionalPage
,UserPage
TraversableAmetysObject
containing pages and which knows about its current site and sitemap.-
Method Summary
Modifier and TypeMethodDescriptiongetChildPageAt
(int index) Gets the childPage
at the given positionAmetysObjectIterable<? extends Page>
Retrieves child pages.AmetysObjectIterable<? extends Page>
getChildrenPages
(boolean includeInvisiblePages) Retrieves child pages.Computes the path relative to the current sitemap.Retrieves the sitemap containing the current sitemap.Returns this page's sitemap nameMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Methods inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
getSite, getSiteName
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
Method Details
-
getSitemap
Retrieves the sitemap containing the current sitemap.- Returns:
- the sitemap containing the current sitemap.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getSitemapName
Returns this page's sitemap name- Returns:
- this page's sitemap name
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getPathInSitemap
Computes the path relative to the current sitemap.- Returns:
- the path relative to the current sitemap.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getChildrenPages
Retrieves child pages.- Returns:
- the child pages.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getChildrenPages
AmetysObjectIterable<? extends Page> getChildrenPages(boolean includeInvisiblePages) throws AmetysRepositoryException Retrieves child pages.- Parameters:
includeInvisiblePages
- true to include invisible pages- Returns:
- the child pages.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getChildPageAt
Gets the childPage
at the given position- Parameters:
index
- the position of thePage
within the ordered set of its sibling objects.- Returns:
- the
Page
if found - Throws:
AmetysRepositoryException
- if an error occursUnknownAmetysObjectException
- if no child page was found at this position
-