Package org.cyclos.impl.system
Class PDFExportHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.system.PDFExportHandlerImpl
-
- All Implemented Interfaces:
ExportHandler,PDFReportHandler
@Component public class PDFExportHandlerImpl extends BaseNetworkedHandlerImpl implements ExportHandler, PDFReportHandler
Handles exporting of data as PDF documents
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPDFExportHandlerImpl.SystemMonitorFormatter-
Nested classes/interfaces inherited from interface org.cyclos.impl.system.ExportHandler
ExportHandler.ExportParameters
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description PDFExportHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializableInputStreamexport(ExportHandler.ExportParameters params)Exports the given data to fileBuiltInExportFormatgetBuiltInFormat()Returns the built-in format handled by this type, or null if handles custom typesSerializableInputStreampreviewVoucher(VoucherType type, VoucherTemplateDTO dto)Generates a preview of a voucher templateSerializableInputStreamsystemMonitorReport(SystemMonitorSnapshot snapshot)Generates a report containing information about the status of the server: server memory, OS, recurring tasks, etcSerializableInputStreamsystemReport(ReportParams report)Generates a report containing information about the accounts, transfer types, user groups, etc.-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
export
public SerializableInputStream export(ExportHandler.ExportParameters params)
Description copied from interface:ExportHandlerExports the given data to file- Specified by:
exportin interfaceExportHandler
-
getBuiltInFormat
public BuiltInExportFormat getBuiltInFormat()
Description copied from interface:ExportHandlerReturns the built-in format handled by this type, or null if handles custom types- Specified by:
getBuiltInFormatin interfaceExportHandler
-
previewVoucher
public SerializableInputStream previewVoucher(VoucherType type, VoucherTemplateDTO dto)
Description copied from interface:PDFReportHandlerGenerates a preview of a voucher template- Specified by:
previewVoucherin interfacePDFReportHandler
-
systemMonitorReport
public SerializableInputStream systemMonitorReport(SystemMonitorSnapshot snapshot)
Description copied from interface:PDFReportHandlerGenerates a report containing information about the status of the server: server memory, OS, recurring tasks, etc- Specified by:
systemMonitorReportin interfacePDFReportHandler
-
systemReport
public SerializableInputStream systemReport(ReportParams report)
Description copied from interface:PDFReportHandlerGenerates a report containing information about the accounts, transfer types, user groups, etc.- Specified by:
systemReportin interfacePDFReportHandler
-
-