public interface TemplaterService
Byte array is returned from the server which represents docx, xlsx, text or converted pdf file.
More info about Templater library can be found at http://templater.info/
| Modifier and Type | Method and Description |
|---|---|
<T extends Searchable> |
populate(java.lang.Class<T> manifest,
java.lang.String file)
Returns a document generated from template named
file
populated with aggregate. |
<T extends Searchable> |
populate(java.lang.String file,
Specification<T> specification)
Returns a document generated from template named
file
populated with data which satisfies search predicate. |
<T extends Identifiable> |
populate(java.lang.String file,
T aggregate)
Returns a document generated from template named
file
populated with aggregate. |
<T extends Searchable> |
populatePdf(java.lang.Class<T> manifest,
java.lang.String file)
Returns a document generated from template named
file
populated with manifest and converted to PDF format. |
<T extends Searchable> |
populatePdf(java.lang.String file,
Specification<T> specification)
Returns a document generated from template named
file
populated with data described with search predicate
and converted to PDF format. |
<T extends Identifiable> |
populatePdf(java.lang.String file,
T aggregate)
Returns a document generated from template named
file
populated with aggregate and converted to PDF format. |
<T extends Identifiable> java.util.concurrent.Future<byte[]> populate(java.lang.String file, T aggregate)
file
populated with aggregate.file - template documentaggregate - data to populate with<T extends Identifiable> java.util.concurrent.Future<byte[]> populatePdf(java.lang.String file, T aggregate)
file
populated with aggregate and converted to PDF format.file - template documentaggregate - data to populate with<T extends Searchable> java.util.concurrent.Future<byte[]> populate(java.lang.Class<T> manifest, java.lang.String file)
file
populated with aggregate.file - template documentmanifest - data to populate with<T extends Searchable> java.util.concurrent.Future<byte[]> populatePdf(java.lang.Class<T> manifest, java.lang.String file)
file
populated with manifest and converted to PDF format.file - template documentmanifest - data to populate with<T extends Searchable> java.util.concurrent.Future<byte[]> populate(java.lang.String file, Specification<T> specification)
file
populated with data which satisfies search predicate.file - template documentspecification - search predicate<T extends Searchable> java.util.concurrent.Future<byte[]> populatePdf(java.lang.String file, Specification<T> specification)
file
populated with data described with search predicate
and converted to PDF format.file - template documentspecification - search predicate