Class DefaultDocumentTemplateRepository

  • All Implemented Interfaces:
    DocumentTemplateRepository

    @Repository
    public class DefaultDocumentTemplateRepository
    extends Object
    implements DocumentTemplateRepository
    This DocumentTemplateRepository implementation registers the document templates into $SILVERPEAS_HOME_DATA/documentTemplateRepository folder.

    Data about a document template are registered using JSON structure.

    A document template is registered with two files :

    • One file is representing the template content. The base name part of file is the identifier (an UUID) and the extension part is corresponding to the extension of the file to create
    • An other file (a descriptor), a JSON one, contains additional data such as the name into different user languages. The base name part of file is the identifier (an UUID) and the extension is '.json'

    Author:
    silveryocha