org.liquidsite.app.template
Class DocumentBean

java.lang.Object
  extended byorg.liquidsite.app.template.ContentBean
      extended byorg.liquidsite.app.template.DocumentBean

public class DocumentBean
extends ContentBean

A document template bean. This class is used to access document content from the template data model.


Method Summary
 DocumentDataBean getData()
          Returns the document data.
 java.util.ArrayList getFiles()
          Returns a list of all the document files.
 java.lang.String getName()
          Returns the name of the document.
 
Methods inherited from class org.liquidsite.app.template.ContentBean
getContent, getContext, getCreated, getDate, getId, getLock, getOnline, getParent, getPath, getRevision, getUser, hasAccess, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the document.

Overrides:
getName in class ContentBean
Returns:
the document name, or an empty string for a non-existing document

getData

public DocumentDataBean getData()
Returns the document data.

Returns:
the document data object, or an empty data object for a non-existing document

getFiles

public java.util.ArrayList getFiles()
Returns a list of all the document files.

Returns:
the document file list, or an empty list of a non-existing document