|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.app.template.TemplateBean
org.liquidsite.app.template.LiquidSiteBean
A LiquidSite template bean. This class is used to insert the "liquidsite" namespace into the template data model.
| Method Summary | |
int |
countDocuments(java.lang.String path)
Returns the number of documents in the specified section and any subsections. |
DocumentBean |
findDocument(java.lang.String path)
Returns the document corresponding to the specified path. |
java.util.ArrayList |
findDocuments(java.lang.String path,
int offset,
int count)
Returns all documents in the specified section path. |
java.util.ArrayList |
findDocuments(java.lang.String path,
java.lang.String sorting,
int offset,
int count)
Returns all document in the specified section path. |
SectionBean |
findSection(java.lang.String path)
Returns the section corresponding to the specified path. |
UserBean |
findUser(java.lang.String name)
Returns the user corresponding to the specified name. |
UserBean |
findUserByEmail(java.lang.String email)
Returns the user corresponding to the specified email address. |
java.lang.String |
getDate()
Returns the build date. |
DocumentBean |
getDoc()
Returns the document bean. |
ForumBean |
getForum()
Returns the forum bean. |
PluginBean |
getPlugin()
Returns the plugin bean. |
RequestBean |
getRequest()
Returns the request bean. |
SectionBean |
getSection()
Returns the section bean. |
SessionBean |
getSession()
Returns the user session bean. |
SiteBean |
getSite()
Returns the site bean. |
TopicBean |
getTopic()
Returns the topic bean. |
UserBean |
getUser()
Returns the user bean for the current user. |
UtilBean |
getUtil()
Returns the utility bean. |
java.lang.String |
getVersion()
Returns the build version name. |
java.lang.String |
linkTo(java.lang.String path)
Returns a relative link to an object in the same site. |
boolean |
mailTo(java.lang.String receiver,
java.lang.String subject,
java.lang.String text)
Sends an email to the specified receiver. |
boolean |
mailToGroup(java.lang.String receiver,
java.lang.String subject,
java.lang.String text)
Sends an email to all members of a group. |
| Methods inherited from class org.liquidsite.app.template.TemplateBean |
getContext, getContextRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getVersion()
public java.lang.String getDate()
public PluginBean getPlugin()
public RequestBean getRequest()
public SessionBean getSession()
public SiteBean getSite()
public SectionBean getSection()
public DocumentBean getDoc()
public ForumBean getForum()
public TopicBean getTopic()
public UserBean getUser()
public UtilBean getUtil()
public java.lang.String linkTo(java.lang.String path)
path - the site- or page-relative link path
public boolean mailTo(java.lang.String receiver,
java.lang.String subject,
java.lang.String text)
receiver - the message recipient addresssubject - the message subject linetext - the message text
public boolean mailToGroup(java.lang.String receiver,
java.lang.String subject,
java.lang.String text)
receiver - the message recipient group namesubject - the message subject linetext - the message text
public int countDocuments(java.lang.String path)
path - the section path
public DocumentBean findDocument(java.lang.String path)
path - the document (and section) path
public java.util.ArrayList findDocuments(java.lang.String path,
int offset,
int count)
path - the section pathoffset - the number of documents to skipcount - the maximum number of documents
public java.util.ArrayList findDocuments(java.lang.String path,
java.lang.String sorting,
int offset,
int count)
path - the section pathsorting - the sorting informationoffset - the number of documents to skipcount - the maximum number of documents
public SectionBean findSection(java.lang.String path)
path - the section path
public UserBean findUser(java.lang.String name)
name - the user name
public UserBean findUserByEmail(java.lang.String email)
email - the user email address
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||