| java.lang.Object com.ecyrd.jspwiki.WikiPage
WikiPage | public class WikiPage implements Cloneable,Comparable(Code) | | Simple wrapper class for the Wiki page attributes. The Wiki page
content is moved around in Strings, though.
|
DESCRIPTION | final public static String DESCRIPTION(Code) | | "Summary" is a short summary of the page. It is a String.
|
clone | public Object clone()(Code) | | Creates a deep clone of a WikiPage. Strings are not cloned, since
they're immutable.
|
getAcl | public AccessControlList getAcl()(Code) | | Returns the AccessControlList for this page. May return null,
in case there is no ACL defined for this page, or it has not
yet been received.
|
getAttribute | public Object getAttribute(String key)(Code) | | A WikiPage may have a number of attributes, which might or might not be
available. Typically attributes are things that do not need to be stored
with the wiki page to the page repository, but are generated
on-the-fly. A provider is not required to save them, but they
can do that if they really want.
Parameters: key - The key using which the attribute is fetched The attribute. If the attribute has not been set, returns null. |
getAuthor | public String getAuthor()(Code) | | Returns author name, or null, if no author has been defined.
|
getLastModified | public Date getLastModified()(Code) | | Returns the date when this page was last modified.
|
getSize | public long getSize()(Code) | | since: 2.1.109 |
getVersion | public int getVersion()(Code) | | Returns the version that this WikiPage instance represents.
|
hasMetadata | public boolean hasMetadata()(Code) | | Returns true, if the page has valid metadata, i.e. it has been parsed.
|
invalidateMetadata | public void invalidateMetadata()(Code) | | This method will remove all metadata from the page.
|
removeAttribute | public Object removeAttribute(String key)(Code) | | Removes an attribute from the page, if it exists.
If the attribute existed, returns the object. since: 2.1.111 |
setAcl | public void setAcl(AccessControlList acl)(Code) | | |
setAttribute | public void setAttribute(String key, Object attribute)(Code) | | Sets an metadata attribute.
|
setHasMetadata | public void setHasMetadata()(Code) | | |
setLastModified | public void setLastModified(Date date)(Code) | | |
setSize | public void setSize(long size)(Code) | | since: 2.1.109 |
setVersion | public void setVersion(int version)(Code) | | |
|
|