public interface TemplaterService
Byte array is returned from the server which will be a docx, xlsx, text or a 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 identifiable)
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 identifiable)
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 identifiable)
file
populated with aggregate.T - identifiable domain typefile - template documentidentifiable - data to populate with<T extends Identifiable> java.util.concurrent.Future<byte[]> populatePdf(java.lang.String file, T identifiable)
file
populated with aggregate and converted to PDF format.T - identifiable domain typefile - template documentidentifiable - 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.T - searchable typemanifest - data to populate withfile - template document<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.T - searchable typemanifest - data to populate withfile - template document<T extends Searchable> java.util.concurrent.Future<byte[]> populate(java.lang.String file, Specification<T> specification)
file
populated with data which satisfies search predicate.T - searchable typefile - 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.T - searchable typefile - template documentspecification - search predicate