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
Constructors -
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.getPath()Retrieves the path of the current object.Retrieves allAmetysObjectids 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.booleanDetermine if a zone existsbooleanDetermine if the page is visible into navigation elementsMethods 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, 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, 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.SiteAwareAmetysObject
getSite, getSiteNameMethods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildrenPages, getPathInSitemap, getSitemap, getSitemapName, getTemplate, getTemplateParametersHolder, getTitle, getZone, getZonesMethods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, hasChild
-
Constructor Details
-
AbstractOdfPage
public AbstractOdfPage()
-
-
Method Details
-
getReferers
Description copied from interface:PageRetrieves allAmetysObjectids referencing this page.- Specified by:
getReferersin interfacePage- Returns:
- the
AmetysObjectids referencing this page. - Throws:
AmetysRepositoryException- if an error occurs.
-
getRootAttachments
Description copied from interface:PageRetrieves the attachments root node- Specified by:
getRootAttachmentsin interfacePage- Returns:
- The the attachments root node
- Throws:
AmetysRepositoryException- if an error occurs.
-
getType
Description copied from interface:PageRetrieves the type.- Specified by:
getTypein interfacePage- Returns:
- the type.
- Throws:
AmetysRepositoryException- if an error occurs.- See Also:
-
getURL
Description copied from interface:PageRetrieves the linked URL.- Specified by:
getURLin interfacePage- Returns:
- the linked URL.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getURLType
Description copied from interface:PageRetrieves the linked URL type.- Specified by:
getURLTypein interfacePage- Returns:
- the linked URL type.
- Throws:
AmetysRepositoryException- if an error occurs.
-
hasZone
Description copied from interface:SitemapElementDetermine if a zone exists- Specified by:
hasZonein 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:TagAwareAmetysObjectRetrieves current tags.- Specified by:
getTagsin interfaceTagAwareAmetysObject- Returns:
- the current tags.
- Throws:
AmetysRepositoryException- if an error occurs.
-
isVisible
Description copied from interface:PageDetermine if the page is visible into navigation elements- Specified by:
isVisiblein interfacePage- Returns:
- true if the page is visible.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getPath
Description copied from interface:AmetysObjectRetrieves the path of the current object.- Specified by:
getPathin interfaceAmetysObject- Returns:
- the path.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getChildren
Description copied from interface:TraversableAmetysObjectRetrieves children of the current object.- Specified by:
getChildrenin 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:SitemapElementRetrieves child pages.- Specified by:
getChildrenPagesin 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:SitemapElementGets the childPageat the given position- Specified by:
getChildPageAtin interfaceSitemapElement- 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
-