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, waitgetDepth, getLongTitle, getReferers, getRootAttachments, getTitle, getURL, getURLType, isVisiblegetMetadataHoldergetChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getSitemap, getSitemapNamegetChild, getChildAt, getChildPosition, getChildren, hasChildgetSite, getSiteNameequals, getId, getName, getParent, getParentPath, getPath, hashCodegetTagspublic 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 PageAmetysRepositoryException - if an error occurs.Page.PageTypepublic String getTemplate() throws AmetysRepositoryException
PagegetTemplate in interface Pagenull if none has
been set.AmetysRepositoryException - if an error occurs.public Zone getZone(String name) throws UnknownZoneException, AmetysRepositoryException
PagegetZone in interface Pagename - 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
PagegetZones in interface PageAmetysRepositoryException - if an error occurs.public boolean hasZone(String name) throws AmetysRepositoryException
PagehasZone in interface Pagename - The name of the zoneAmetysRepositoryException - If an error occuredpublic Page getReferencePage()
protected abstract Zone getDefaultZone()