| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.kmelia.export.ODTDocumentBuilder
public class ODTDocumentBuilder
A builder of an ODT document based on a given template and from a specified Kmelia publication.
| Constructor Summary | |
|---|---|
ODTDocumentBuilder()
 | 
|
| Method Summary | |
|---|---|
static String | 
anODTAt(String documentPath)
A convenient method to improve the readability in the call of the method buildFromPublication().  | 
static ODTDocumentBuilder | 
anODTDocumentBuilder()
Gets an instance of a builder of ODT documents.  | 
 File | 
buildFrom(KmeliaPublication publication,
          String documentPath)
Builds an ODT document at the specified path and from the specified Kmelia publication.  | 
 ODTDocumentBuilder | 
forUser(com.stratelia.webactiv.beans.admin.UserDetail user)
Informs this builder the build is for the specified user.  | 
protected  KmeliaBm | 
getKmeliaService()
Gets the Kmelia service.  | 
protected  com.stratelia.webactiv.beans.admin.OrganizationController | 
getOrganizationService()
Gets the organization controller.  | 
 ODTDocumentBuilder | 
inLanguage(String language)
Informs this builder the prefered language to use for the content of the documents to build.  | 
 ODTDocumentBuilder | 
inTopic(String topicId)
Informs explicitly the topic to consider when building a document from publications.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ODTDocumentBuilder()
| Method Detail | 
|---|
public static ODTDocumentBuilder anODTDocumentBuilder()
public ODTDocumentBuilder forUser(com.stratelia.webactiv.beans.admin.UserDetail user)
user - the user for which the build of the documents should be done.
public ODTDocumentBuilder inLanguage(String language)
language - the language in which the text should be displayed in the built documents.
public ODTDocumentBuilder inTopic(String topicId)
topicId - the topic to explicitly consider.
public static String anODTAt(String documentPath)
File odt = builder.buildFrom(mypublication, anODTAt("/tmp/foo.odt"));
documentPath - the path of the document to build.
public File buildFrom(KmeliaPublication publication,
                      String documentPath)
publication - the publication from which an ODT document is built.documentPath - the path of the ODT document to build.
protected KmeliaBm getKmeliaService()
protected com.stratelia.webactiv.beans.admin.OrganizationController getOrganizationService()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||