Package org.ametys.web.repository.page
Interface SitemapElement
- All Superinterfaces:
AmetysObject
,SiteAwareAmetysObject
,TraversableAmetysObject
- All Known Subinterfaces:
MetadataAwareSitemapElement
,ModifiablePage
,ModifiableSitemapElement
,Page
- All Known Implementing Classes:
AbstractLevelPage
,AbstractOdfPage
,AbstractSitemapElement
,CoursePage
,DefaultPage
,FirstLevelPage
,OrgUnitPage
,ProgramPage
,RedirectPage
,SecondLevelPage
,Sitemap
,TransitionalPage
,UGCPage
,UGCTransitionalPage
,UserPage
TraversableAmetysObject
containing pages and which knows about its current site and sitemap, template, zones...-
Field Summary
Fields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE
-
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 nameRetrieves the template name.Get the view parametersgetTitle()
Retrieves the title.Retrieves a given zone.AmetysObjectIterable<? extends Zone>
getZones()
Retrieves the zones.boolean
Determine if a zone existsMethods 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
-
getTitle
Retrieves the title.- Returns:
- the title.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
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
-
getTemplate
Retrieves the template name.- Returns:
- the template name or
null
if none has been set or if the type is not container. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getTemplateParametersHolder
Get the view parameters- Returns:
- the view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getZones
Retrieves the zones.- Returns:
- the zones.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
hasZone
Determine if a zone exists- Parameters:
name
- The name of the zone- Returns:
- true if the zone exists
- Throws:
AmetysRepositoryException
- If an error occured
-
getZone
Retrieves a given zone.- Parameters:
name
- the name of the zone.- Returns:
- the given zone.
- Throws:
UnknownZoneException
- if there is no zone for the given name.AmetysRepositoryException
- if an error occurs.
-