Package org.ametys.web.repository.page
Interface Page
-
- All Superinterfaces:
AmetysObject
,DataAwareAmetysObject
,DataHolder
,MetadataAwarePagesContainer
,ModelLessDataAwareAmetysObject
,ModelLessDataHolder
,PagesContainer
,SiteAwareAmetysObject
,TagAwareAmetysObject
,TraversableAmetysObject
- All Known Subinterfaces:
ModifiablePage
- All Known Implementing Classes:
AbstractBlogPage
,AbstractLevelPage
,AbstractOdfPage
,CoursePage
,DefaultPage
,FirstLevelPage
,OrgUnitPage
,ProgramPage
,RedirectPage
,SecondLevelPage
,TransitionalPage
,UGCPage
,UGCTransitionalPage
,UserPage
,VirtualMonthPage
,VirtualPostPage
,VirtualPostsPage
,VirtualTagPage
,VirtualTagsPage
,VirtualYearPage
,VirtualYearsPage
public interface Page extends MetadataAwarePagesContainer, TagAwareAmetysObject
AmetysObject
for reading page informations.<p>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Page.LinkType
Type of a link page.static class
Page.PageType
Type of a page.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDepth()
Get the page depthString
getLongTitle()
Retrieves the long title.Set<String>
getReferers()
Retrieves allAmetysObject
ids referencing this page.ResourceCollection
getRootAttachments()
Retrieves the attachments root nodeString
getTemplate()
Retrieves the template name.ModelAwareDataHolder
getTemplateParametersHolder()
Get the view parametersString
getTitle()
Retrieves the title.Page.PageType
getType()
Retrieves the type.String
getURL()
Retrieves the linked URL.Page.LinkType
getURLType()
Retrieves the linked URL type.Zone
getZone(String name)
Retrieves a given zone.AmetysObjectIterable<? extends Zone>
getZones()
Retrieves the zones.boolean
hasZone(String name)
Determine if a zone existsboolean
isVisible()
Determine if the page is visible into navigation elements-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX, getDataNames, getRepositoryData
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToSAX, getComposite, getDataHolder, getParentDataHolder, getRootDataHolder, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, hasValueOrEmpty, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToSAX
-
Methods inherited from interface org.ametys.web.repository.page.PagesContainer
getChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getSitemap, getSitemapName
-
Methods inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
getSite, getSiteName
-
Methods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTags
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
-
-
-
Method Detail
-
getTitle
String getTitle() throws AmetysRepositoryException
Retrieves the title.- Returns:
- the title.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getLongTitle
String getLongTitle() throws AmetysRepositoryException
Retrieves the long title.- Returns:
- the title.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getType
Page.PageType getType() throws AmetysRepositoryException
Retrieves the type.- Returns:
- the type.
- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
Page.PageType
-
getURL
String getURL() throws AmetysRepositoryException
Retrieves the linked URL.- Returns:
- the linked URL.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getURLType
Page.LinkType getURLType() throws AmetysRepositoryException
Retrieves the linked URL type.- Returns:
- the linked URL type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getDepth
int getDepth() throws AmetysRepositoryException
Get the page depth- Returns:
- the page depth
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTemplate
String getTemplate() throws AmetysRepositoryException
Retrieves the template name.- Returns:
- the template name or
null
if none has been set. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getZones
AmetysObjectIterable<? extends Zone> getZones() throws AmetysRepositoryException
Retrieves the zones.- Returns:
- the zones.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
hasZone
boolean hasZone(String name) throws AmetysRepositoryException
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
Zone getZone(String name) throws UnknownZoneException, AmetysRepositoryException
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.
-
getRootAttachments
ResourceCollection getRootAttachments() throws AmetysRepositoryException
Retrieves the attachments root node- Returns:
- The the attachments root node
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getReferers
Set<String> getReferers() throws AmetysRepositoryException
Retrieves allAmetysObject
ids referencing this page.- Returns:
- the
AmetysObject
ids referencing this page. - Throws:
AmetysRepositoryException
- if an error occurs.
-
isVisible
boolean isVisible() throws AmetysRepositoryException
Determine if the page is visible into navigation elements- Returns:
- true if the page is visible.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTemplateParametersHolder
ModelAwareDataHolder getTemplateParametersHolder() throws AmetysRepositoryException
Get the view parameters- Returns:
- the view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
-