|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.domain.Content
net.sourceforge.pebble.domain.PageBasedContent
public abstract class PageBasedContent
The superclass for blog entries and pages.
Field Summary | |
---|---|
static java.lang.String |
AUTHOR_PROPERTY
|
static java.lang.String |
BODY_PROPERTY
|
static java.lang.String |
DATE_PROPERTY
|
static java.lang.String |
ORIGINAL_PERMALINK_PROPERTY
|
static java.lang.String |
SUBTITLE_PROPERTY
|
static java.lang.String |
TITLE_PROPERTY
|
Fields inherited from class net.sourceforge.pebble.domain.Content |
---|
propertyChangeSupport |
Constructor Summary | |
---|---|
PageBasedContent(Blog blog)
Creates a new blog entry. |
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Gets the author of this blog entry. |
Blog |
getBlog()
Helper method to get the owning Blog instance. |
java.lang.String |
getBody()
Gets the body of this blog entry. |
java.lang.String |
getContent()
Gets the content of this response. |
java.util.Date |
getDate()
Gets the date that this blog entry was created. |
java.lang.String |
getId()
Gets the unique id of this blog entry. |
java.util.Date |
getLastModified()
Gets the date that this blog entry was last updated. |
abstract java.lang.String |
getLocalPermalink()
Gets a permalink for this blog entry that is local to the blog. |
java.lang.String |
getOriginalPermalink()
Gets the alternative permalink for this blog entry. |
java.lang.String |
getPermalink()
Gets a permalink for this blog entry. |
java.lang.String |
getSubtitle()
Gets the subtitle of this blog entry. |
java.lang.String |
getTitle()
Gets the title of this blog entry. |
PebbleUserDetails |
getUser()
Gets full user details about the author including name, email-address, etc. |
boolean |
isAggregated()
Determines whether this blog entry has been aggregated from another source. |
boolean |
isPersistent()
|
boolean |
isPublished()
Determines whether this content is published. |
boolean |
isUnpublished()
Determines whether this content is unpublished. |
void |
setAuthor(java.lang.String newAuthor)
Sets the author of this blog entry. |
void |
setBody(java.lang.String newBody)
Sets the body of this blog entry. |
void |
setDate(java.util.Date newDate)
Sets the date that this blog entry was created. |
void |
setOriginalPermalink(java.lang.String newPermalink)
Sets the alternative permalink for this blog entry. |
void |
setPersistent(boolean persistent)
|
void |
setPublished(boolean published)
Sets the state of this content. |
void |
setSubtitle(java.lang.String newSubtitle)
Sets the subtitle of this blog entry. |
void |
setTitle(java.lang.String newTitle)
Sets the title of this blog entry. |
java.lang.String |
toString()
Gets a string representation of this object. |
Methods inherited from class net.sourceforge.pebble.domain.Content |
---|
clearPropertyChangeEvents, getEvents, getPropertyChangeEvents, getState, getTruncatedContent, hasEvents, isDirty, nextEvent |
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 TITLE_PROPERTY
public static final java.lang.String SUBTITLE_PROPERTY
public static final java.lang.String BODY_PROPERTY
public static final java.lang.String AUTHOR_PROPERTY
public static final java.lang.String DATE_PROPERTY
public static final java.lang.String ORIGINAL_PERMALINK_PROPERTY
Constructor Detail |
---|
public PageBasedContent(Blog blog)
blog
- the owning BlogMethod Detail |
---|
public java.lang.String getId()
public java.lang.String getTitle()
public void setTitle(java.lang.String newTitle)
newTitle
- the title as a Stringpublic java.lang.String getSubtitle()
public void setSubtitle(java.lang.String newSubtitle)
newSubtitle
- the subtitle as a Stringpublic java.lang.String getBody()
public java.lang.String getContent()
getContent
in class Content
public void setBody(java.lang.String newBody)
newBody
- the body as a Stringpublic java.util.Date getDate()
public java.util.Date getLastModified()
public void setDate(java.util.Date newDate)
newDate
- a java.util.Date instancepublic java.lang.String getAuthor()
public PebbleUserDetails getUser()
public void setAuthor(java.lang.String newAuthor)
newAuthor
- the author as a Stringpublic boolean isAggregated()
public java.lang.String getOriginalPermalink()
public void setOriginalPermalink(java.lang.String newPermalink)
newPermalink
- an absolute URL as a Stringpublic java.lang.String getPermalink()
public abstract java.lang.String getLocalPermalink()
public Blog getBlog()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isPersistent()
public void setPersistent(boolean persistent)
public boolean isPublished()
public boolean isUnpublished()
public void setPublished(boolean published)
published
- true if this content is published, false if unpublished
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |