Class AbstractOdfPage<T extends AbstractOdfPageFactory>
java.lang.Object
org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPage<T>
org.ametys.plugins.odfweb.repository.AbstractOdfPage<T>
- Type Parameters:
T
- The type of factory to use
- All Implemented Interfaces:
AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,TagAwareAmetysObject
,TraversableAmetysObject
,MetadataAwareSitemapElement
,Page
,SitemapElement
,SiteAwareAmetysObject
- Direct Known Subclasses:
AbstractProgramItemPage
,FirstLevelPage
,SecondLevelPage
public abstract class AbstractOdfPage<T extends AbstractOdfPageFactory>
extends AbstractConfigurableVirtualPage<T>
Common class for ODF virtual pages
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.repository.page.Page
Page.LinkType, Page.PageType
-
Field Summary
Fields inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPage
_configuration, _factory, _root, _scheme
Fields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE
-
Constructor Summary
ConstructorDescriptionAbstractOdfPage
(Page root, VirtualPageConfiguration configuration, String scheme, T factory) The constructor of abstract odf pages -
Method Summary
Modifier and TypeMethodDescriptiongetChildPageAt
(int index) Gets the childPage
at the given positionAmetysObjectIterable<? extends AmetysObject>
Retrieves children of the current object.AmetysObjectIterable<? extends Page>
getChildrenPages
(boolean includeInvisiblePages) Retrieves child pages.Methods inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPage
getContent, getPath, getReferers, getRootAttachments, getScheme, getSite, getSitemap, getSitemapName, getSiteName, getTags, getTemplate, getTemplateParametersHolder, getType, getURL, getURLType, getZone, getZoneConfiguration, getZones, hasZone, isVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, hashCode
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getDataNames, getRepositoryData
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToJSON, dataToSAX, getComposite, getDataHolder, getModelItemTypeExtensionPoint, getParentDataHolder, getRootDataHolder, getType, getValue, getValue, getValueOfType, getValueOfType, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX
Methods inherited from interface org.ametys.web.repository.page.Page
getDepth, getLongTitle
Methods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildrenPages, getPathInSitemap, getTitle
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, hasChild
-
Constructor Details
-
AbstractOdfPage
The constructor of abstract odf pages- Parameters:
root
- the odf root page.configuration
- The abstract virtual page configurationscheme
- The schemefactory
- The factory
-
-
Method Details
-
getChildren
Description copied from interface:TraversableAmetysObject
Retrieves children of the current object.- Returns:
- the children or an empty
AmetysObjectIterable
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getChildrenPages
public AmetysObjectIterable<? extends Page> getChildrenPages(boolean includeInvisiblePages) throws AmetysRepositoryException Description copied from interface:SitemapElement
Retrieves child pages.- Parameters:
includeInvisiblePages
- true to include invisible pages- Returns:
- the child pages.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getChildPageAt
public Page getChildPageAt(int index) throws UnknownAmetysObjectException, AmetysRepositoryException Description copied from interface:SitemapElement
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:
UnknownAmetysObjectException
- if no child page was found at this positionAmetysRepositoryException
- if an error occurs
-