Class AbstractBlogPage
java.lang.Object
org.ametys.plugins.blog.repository.AbstractBlogPage
- All Implemented Interfaces:
AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,TagAwareAmetysObject
,TraversableAmetysObject
,MetadataAwareSitemapElement
,Page
,SitemapElement
,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
Modifier and TypeFieldDescriptionstatic final String
Default template for month pagestatic final String
Default template for post pagestatic final String
Default template for tag pagestatic final String
Default template for year pageFields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE
-
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, 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, hasValueOrEmpty, 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, getReferers, getRootAttachments, getURL, getURLType, isVisible
Methods inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
getSite, getSiteName
Methods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getSitemap, getSitemapName, getTemplateParametersHolder, getTitle
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
-
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:SitemapElement
Retrieves the template name.- Specified by:
getTemplate
in interfaceSitemapElement
- Returns:
- the template name or
null
if none has been set or if the type is not container. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getZone
Description copied from interface:SitemapElement
Retrieves a given zone.- Specified by:
getZone
in interfaceSitemapElement
- 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:SitemapElement
Retrieves the zones.- Specified by:
getZones
in interfaceSitemapElement
- Returns:
- the zones.
- 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
-
getReferencePage
Get the reference page.- Returns:
- the reference page.
-
getDefaultZone
Get the "default" zone.- Returns:
- the "default" zone.
-