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, _schemeFields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractOdfPage(Page root, VirtualPageConfiguration configuration, String scheme, T factory) The constructor of abstract odf pages -
Method Summary
Modifier and TypeMethodDescriptiongetChildPageAt(int index) Gets the childPageat 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, isVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getDataNames, getRepositoryDataMethods 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, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAXMethods inherited from interface org.ametys.web.repository.page.Page
getDepth, getLongTitleMethods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildrenPages, getPathInSitemap, getTitleMethods 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:TraversableAmetysObjectRetrieves 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:SitemapElementRetrieves 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:SitemapElementGets the childPageat the given position- Parameters:
index- the position of thePagewithin the ordered set of its sibling objects.- Returns:
- the
Pageif found - Throws:
UnknownAmetysObjectException- if no child page was found at this positionAmetysRepositoryException- if an error occurs
-