public abstract class AbstractBlogPage extends Object implements Page
Page.LinkType, Page.PageType
Modifier and Type | Field and Description |
---|---|
static String |
BLOG_MONTH_TEMPLATE
Default template for month page
|
static String |
BLOG_POST_TEMPLATE
Default template for post page
|
static String |
BLOG_TAG_TEMPLATE
Default template for tag page
|
static String |
BLOG_YEAR_TEMPLATE
Default template for year page
|
Constructor and Description |
---|
AbstractBlogPage() |
Modifier and Type | Method and Description |
---|---|
protected abstract Zone |
getDefaultZone()
Get the "default" zone.
|
Page |
getReferencePage()
Get the reference page.
|
String |
getTemplate()
Retrieves the template name.
|
Page.PageType |
getType()
The root page.
|
Zone |
getZone(String name)
Retrieves a given zone.
|
AmetysObjectIterable<? extends Zone> |
getZones()
Retrieves the zones.
|
boolean |
hasZone(String name)
Determine if a zone exists
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDepth, getLongTitle, getReferers, getRootAttachments, getTitle, getURL, getURLType, isVisible
getMetadataHolder
getChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getSitemap, getSitemapName
getChild, getChildAt, getChildPosition, getChildren, hasChild
getSite, getSiteName
equals, getId, getName, getParent, getParentPath, getPath, hashCode
getTags
public static final String BLOG_MONTH_TEMPLATE
public static final String BLOG_YEAR_TEMPLATE
public static final String BLOG_TAG_TEMPLATE
public static final String BLOG_POST_TEMPLATE
public AbstractBlogPage()
public Page.PageType getType() throws AmetysRepositoryException
getType
in interface Page
AmetysRepositoryException
- if an error occurs.Page.PageType
public String getTemplate() throws AmetysRepositoryException
Page
getTemplate
in interface Page
null
if none has
been set.AmetysRepositoryException
- if an error occurs.public Zone getZone(String name) throws UnknownZoneException, AmetysRepositoryException
Page
getZone
in interface Page
name
- the name of the zone.UnknownZoneException
- if there is no zone for the given name.AmetysRepositoryException
- if an error occurs.public AmetysObjectIterable<? extends Zone> getZones() throws AmetysRepositoryException
Page
getZones
in interface Page
AmetysRepositoryException
- if an error occurs.public boolean hasZone(String name) throws AmetysRepositoryException
Page
hasZone
in interface Page
name
- The name of the zoneAmetysRepositoryException
- If an error occuredpublic Page getReferencePage()
protected abstract Zone getDefaultZone()