Class AbstractBlogPage
java.lang.Object
org.ametys.plugins.blog.repository.AbstractBlogPage
- All Implemented Interfaces:
TagAwareAmetysObject
,AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,TraversableAmetysObject
,MetadataAwarePagesContainer
,Page
,PagesContainer
,SiteAwareAmetysObject
- Direct Known Subclasses:
VirtualMonthPage
,VirtualPostPage
,VirtualTagPage
,VirtualYearPage
Declares a root page and
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.repository.page.Page
Page.LinkType, Page.PageType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Zone
Get the "default" zone.Get the reference page.Retrieves the template name.getType()
The root page.Retrieves a given zone.AmetysObjectIterable<? extends Zone>
getZones()
Retrieves the zones.boolean
Determine if a zone existsMethods 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, 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, hasNonEmptyValue, hasValue, isMultiple
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToSAX
Methods inherited from interface org.ametys.web.repository.page.Page
getDepth, getLongTitle, getReferers, getRootAttachments, getTemplateParametersHolder, getTitle, getURL, getURLType, isVisible
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.cms.repository.TagAwareAmetysObject
getTags
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
Field Details
-
BLOG_MONTH_TEMPLATE
Default template for month page- See Also:
-
BLOG_YEAR_TEMPLATE
Default template for year page- See Also:
-
BLOG_TAG_TEMPLATE
Default template for tag page- See Also:
-
BLOG_POST_TEMPLATE
Default template for post page- See Also:
-
-
Constructor Details
-
AbstractBlogPage
public AbstractBlogPage()
-
-
Method Details
-
getType
The root page.- Specified by:
getType
in interfacePage
- Returns:
- the type.
- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
-
getTemplate
Description copied from interface:Page
Retrieves the template name.- Specified by:
getTemplate
in interfacePage
- Returns:
- the template name or
null
if none has been set. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getZone
Description copied from interface:Page
Retrieves a given zone.- Specified by:
getZone
in interfacePage
- 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.
-
getZones
Description copied from interface:Page
Retrieves the zones.- Specified by:
getZones
in interfacePage
- Returns:
- the zones.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
hasZone
Description copied from interface:Page
Determine if a zone exists- Specified by:
hasZone
in interfacePage
- Parameters:
name
- The name of the zone- Returns:
- true if the zone exists
- Throws:
AmetysRepositoryException
- If an error occured
-
getReferencePage
Get the reference page.- Returns:
- the reference page.
-
getDefaultZone
Get the "default" zone.- Returns:
- the "default" zone.
-