Class AbstractOdfPage
java.lang.Object
org.ametys.plugins.odfweb.repository.AbstractOdfPage
- All Implemented Interfaces:
AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,TagAwareAmetysObject
,TraversableAmetysObject
,MetadataAwareSitemapElement
,Page
,SitemapElement
,SiteAwareAmetysObject
- Direct Known Subclasses:
AbstractLevelPage
,CoursePage
,ProgramPage
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 interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE
-
Constructor Summary
-
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.getPath()
Retrieves the path of the current object.Retrieves allAmetysObject
ids referencing this page.Retrieves the attachments root nodegetTags()
Retrieves current tags.getType()
Retrieves the type.getURL()
Retrieves the linked URL.Retrieves the linked URL type.boolean
Determine if a zone existsboolean
Determine if the page is visible into navigation elementsMethods 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, 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, 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.SiteAwareAmetysObject
getSite, getSiteName
Methods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildrenPages, getPathInSitemap, getSitemap, getSitemapName, getTemplate, getTemplateParametersHolder, getTitle, getZone, getZones
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, hasChild
-
Constructor Details
-
AbstractOdfPage
public AbstractOdfPage()
-
-
Method Details
-
getReferers
Description copied from interface:Page
Retrieves allAmetysObject
ids referencing this page.- Specified by:
getReferers
in interfacePage
- Returns:
- the
AmetysObject
ids referencing this page. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getRootAttachments
Description copied from interface:Page
Retrieves the attachments root node- Specified by:
getRootAttachments
in interfacePage
- Returns:
- The the attachments root node
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getType
Description copied from interface:Page
Retrieves the type.- Specified by:
getType
in interfacePage
- Returns:
- the type.
- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
-
getURL
Description copied from interface:Page
Retrieves the linked URL.- Specified by:
getURL
in interfacePage
- Returns:
- the linked URL.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getURLType
Description copied from interface:Page
Retrieves the linked URL type.- Specified by:
getURLType
in interfacePage
- Returns:
- the linked URL type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
hasZone
Description copied from interface:SitemapElement
Determine if a zone exists- Specified by:
hasZone
in interfaceSitemapElement
- Parameters:
name
- The name of the zone- Returns:
- true if the zone exists
- Throws:
AmetysRepositoryException
- If an error occured
-
getTags
Description copied from interface:TagAwareAmetysObject
Retrieves current tags.- Specified by:
getTags
in interfaceTagAwareAmetysObject
- Returns:
- the current tags.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
isVisible
Description copied from interface:Page
Determine if the page is visible into navigation elements- Specified by:
isVisible
in interfacePage
- Returns:
- true if the page is visible.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getPath
Description copied from interface:AmetysObject
Retrieves the path of the current object.- Specified by:
getPath
in interfaceAmetysObject
- Returns:
- the path.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getChildren
Description copied from interface:TraversableAmetysObject
Retrieves children of the current object.- Specified by:
getChildren
in interfaceTraversableAmetysObject
- 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.- Specified by:
getChildrenPages
in interfaceSitemapElement
- 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- Specified by:
getChildPageAt
in interfaceSitemapElement
- 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
-