Package org.cyclos.services.banking
Interface VoucherTemplateService
-
- All Superinterfaces:
CRUDService<VoucherTemplateDTO,VoucherTemplateData,VoucherTemplateVO>,Service
- All Known Subinterfaces:
VoucherTemplateServiceLocal
public interface VoucherTemplateService extends CRUDService<VoucherTemplateDTO,VoucherTemplateData,VoucherTemplateVO>
Service for managing voucher templates
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileInfoexportHTML(@NotNull VoucherTemplateDTO dto)Exports the voucher template in a single HTML to aid developmentFileInfoexportTemplate(@NotNull Long id)Exports the voucher template with the given idLongimportTemplate(SerializableInputStream in)Imports a template from fileList<VoucherTemplateVO>list()Returns a list with all voucher templatesSerializableInputStreampreview(@NotNull VoucherTypeVO type, @NotNull VoucherTemplateDTO dto)Previews a voucher printing with a given template-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
-
-
-
Method Detail
-
exportHTML
FileInfo exportHTML(@NotNull @NotNull VoucherTemplateDTO dto) throws FrameworkException
Exports the voucher template in a single HTML to aid development- Throws:
FrameworkException
-
exportTemplate
FileInfo exportTemplate(@NotNull @NotNull Long id) throws FrameworkException
Exports the voucher template with the given id- Throws:
FrameworkException
-
importTemplate
Long importTemplate(SerializableInputStream in) throws FrameworkException, FileParsingException
Imports a template from file
-
list
List<VoucherTemplateVO> list() throws FrameworkException
Returns a list with all voucher templates- Throws:
FrameworkException
-
preview
SerializableInputStream preview(@NotNull @NotNull VoucherTypeVO type, @NotNull @NotNull VoucherTemplateDTO dto) throws FrameworkException
Previews a voucher printing with a given template- Throws:
FrameworkException
-
-