|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.domain.TimePeriod
net.sourceforge.pebble.domain.AbstractBlog
public abstract class AbstractBlog
Field Summary | |
---|---|
static java.lang.String |
AUTHOR_KEY
|
static java.lang.String |
BLOG_PROPERTIES_FILE
the name of the file containing blog properties |
static java.lang.String |
CHARACTER_ENCODING_KEY
|
static java.lang.String |
COUNTRY_KEY
|
static java.lang.String |
DESCRIPTION_KEY
|
protected static java.lang.String |
FALSE
|
static java.lang.String |
IMAGE_KEY
|
static java.lang.String |
LANGUAGE_KEY
|
static java.lang.String |
NAME_KEY
|
protected java.util.Properties |
properties
the properties for this blog |
static java.lang.String |
RECENT_BLOG_ENTRIES_ON_HOME_PAGE_KEY
|
static java.lang.String |
RECENT_RESPONSES_ON_HOME_PAGE_KEY
|
static java.lang.String |
THEME_KEY
|
static java.lang.String |
TIMEZONE_KEY
|
protected static java.lang.String |
TRUE
|
Constructor Summary | |
---|---|
AbstractBlog(java.lang.String root)
Creates a new Blog instance, based at the specified location. |
Method Summary | |
---|---|
void |
clearMessages()
|
void |
error(java.lang.String message)
|
java.lang.String |
getAuthor()
Gets the author of this blog. |
java.util.Calendar |
getCalendar()
Gets a Calendar instance representing the current moment in time, with the timezone and locale set to be the same as that specified for this blog. |
java.lang.String |
getCharacterEncoding()
Gets the character encoding in use by this blog. |
java.lang.String |
getContext()
Gets the context where Pebble is deployed. |
java.lang.String |
getCountry()
Gets string instance representing the country for the blog. |
protected abstract java.util.Properties |
getDefaultProperties()
Gets the default properties for a blog. |
java.lang.String |
getDescription()
Gets the description of this blog. |
java.lang.String |
getDomainName()
Gets the domain name where this blog is deployed. |
abstract java.lang.String |
getId()
Gets the ID of this blog. |
java.lang.String |
getImage()
Gets the image for this blog. |
java.lang.String |
getImagesDirectory()
Gets the location where the blog images are stored. |
java.lang.String |
getIndexesDirectory()
Gets the location where the blog search indexes are stored. |
java.lang.String |
getLanguage()
Gets string instance representing the language for the blog. |
abstract java.util.Date |
getLastModified()
Gets the date that this blog was last updated. |
java.util.Locale |
getLocale()
Gets the Locale instance for the blog. |
java.lang.String |
getLogsDirectory()
Gets the location where the blog logs are stored. |
java.util.List<Message> |
getMessages()
|
java.lang.String |
getName()
Gets the name of this blog. |
int |
getNumberOfMessages()
|
java.util.Properties |
getProperties()
Gets the properties associated with this blog. |
java.lang.String |
getProperty(java.lang.String key)
Gets a named property for this blog. |
java.lang.String |
getProtocol()
Gets the protocol where this blog is deployed. |
java.util.List |
getRecentBlogEntries()
Gets the most recent blog entries, the number of which is taken from the recentBlogEntriesOnHomePage property. |
abstract java.util.List |
getRecentBlogEntries(int numberOfEntries)
Gets the most recent blog entries, the number of which is specified. |
int |
getRecentBlogEntriesOnHomePage()
Gets the number of recent blog entries that are displayed on the home page. |
int |
getRecentResponsesOnHomePage()
Gets the number of recent comments that are displayed on the home page. |
abstract java.lang.String |
getRelativeUrl()
Gets the relative URL where this blog is deployed. |
java.lang.String |
getRoot()
Gets the filesystem root for this blog. |
java.lang.String |
getSearchIndexDirectory()
Gets the location where the blog search indexes are stored. |
java.lang.String |
getTheme()
Gets the theme being used. |
java.util.TimeZone |
getTimeZone()
Gets the TimeZone instance representing the timezone for the blog. |
java.lang.String |
getTimeZoneId()
Gets the ID of the time zone for the blog. |
abstract java.lang.String |
getUrl()
Gets the URL where this blog is deployed. |
void |
info(java.lang.String message)
|
protected void |
init()
|
boolean |
isConfigured()
|
protected void |
loadProperties()
Loads the properties for this blog, from the blog.properties file in the root directory. |
abstract void |
log(HttpServletRequest request,
int status)
Logs this request for blog. |
void |
removeProperty(java.lang.String key)
Removes a named property for this blog. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a named property for this blog. |
void |
setRecentBlogEntries(java.util.List entries)
Setter method for the recentBlogEntries property - this is here so that the property complies with the JavaBeans standard. |
protected void |
setRoot(java.lang.String root)
Sets the filesystem root for this blog. |
void |
storeProperties()
Stores the properties associated with this blog. |
java.lang.String |
toString()
Gets a string representation of this object. |
void |
warn(java.lang.String message)
|
Methods inherited from class net.sourceforge.pebble.domain.TimePeriod |
---|
getBlog, getDate, setDate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BLOG_PROPERTIES_FILE
protected static final java.lang.String FALSE
protected static final java.lang.String TRUE
public static final java.lang.String NAME_KEY
public static final java.lang.String AUTHOR_KEY
public static final java.lang.String DESCRIPTION_KEY
public static final java.lang.String IMAGE_KEY
public static final java.lang.String TIMEZONE_KEY
public static final java.lang.String RECENT_BLOG_ENTRIES_ON_HOME_PAGE_KEY
public static final java.lang.String RECENT_RESPONSES_ON_HOME_PAGE_KEY
public static final java.lang.String LANGUAGE_KEY
public static final java.lang.String COUNTRY_KEY
public static final java.lang.String CHARACTER_ENCODING_KEY
public static final java.lang.String THEME_KEY
protected java.util.Properties properties
Constructor Detail |
---|
public AbstractBlog(java.lang.String root)
root
- an absolute path pointing to the root directory of the blogMethod Detail |
---|
protected void init()
protected void loadProperties()
public boolean isConfigured()
protected abstract java.util.Properties getDefaultProperties()
public abstract java.lang.String getId()
public java.lang.String getRoot()
protected void setRoot(java.lang.String root)
root
- a String representing the absolute pathpublic java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String key)
key
- the property name/keypublic void setProperty(java.lang.String key, java.lang.String value)
key
- the property name/keyvalue
- the property valuepublic void removeProperty(java.lang.String key)
key
- the property name/keypublic void storeProperties() throws BlogServiceException
BlogServiceException
- if the properties can't be storedpublic java.lang.String getName()
public java.lang.String getAuthor()
public java.lang.String getDescription()
public java.lang.String getImage()
public abstract java.lang.String getUrl()
public abstract java.lang.String getRelativeUrl()
public java.lang.String getDomainName()
public java.lang.String getProtocol()
public java.lang.String getContext()
public java.lang.String getTimeZoneId()
public java.util.TimeZone getTimeZone()
public java.util.Calendar getCalendar()
public int getRecentBlogEntriesOnHomePage()
public int getRecentResponsesOnHomePage()
public java.lang.String getCharacterEncoding()
public java.lang.String getLanguage()
public java.lang.String getCountry()
public java.util.Locale getLocale()
public java.lang.String getTheme()
public java.lang.String getImagesDirectory()
public java.lang.String getIndexesDirectory()
public java.lang.String getSearchIndexDirectory()
public java.lang.String getLogsDirectory()
public abstract java.util.List getRecentBlogEntries(int numberOfEntries)
numberOfEntries
- the number of entries to get
public java.util.List getRecentBlogEntries()
public void setRecentBlogEntries(java.util.List entries)
entries
- public abstract java.util.Date getLastModified()
public java.lang.String toString()
toString
in class java.lang.Object
public void info(java.lang.String message)
public void warn(java.lang.String message)
public void error(java.lang.String message)
public void clearMessages()
public java.util.List<Message> getMessages()
public int getNumberOfMessages()
public abstract void log(HttpServletRequest request, int status)
request
- the HttpServletRequest instance for this request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |