Package org.cyclos.impl.system
Class ReportServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.system.ReportServiceImpl
-
- All Implemented Interfaces:
ReportServiceLocal,Service,ReportService
@Service public class ReportServiceImpl extends BaseServiceImpl implements ReportServiceLocal
Service implementation for reports
-
-
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, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description ReportServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemReportDatagetSystemReportData()Gets the data for system reports.voidinitialize()SerializableInputStreamreadSystemReport(SystemReportQuery query)Generates a PDF content for a system report, showing reports on the complete system.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidvalidate(SystemReportQuery query)Validates the system reports.-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
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, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getSystemReportData
public SystemReportData getSystemReportData()
Description copied from interface:ReportServiceGets the data for system reports.- Specified by:
getSystemReportDatain interfaceReportService
-
initialize
@PostConstruct public void initialize()
-
readSystemReport
public SerializableInputStream readSystemReport(SystemReportQuery query)
Description copied from interface:ReportServiceGenerates a PDF content for a system report, showing reports on the complete system. Note that if the query has no groups selected, the method assumes that all visible groups are to be selected.- Specified by:
readSystemReportin interfaceReportService
-
validate
public void validate(SystemReportQuery query)
Description copied from interface:ReportServiceValidates the system reports. this must be called before callingReportService.readSystemReport(SystemReportQuery).- Specified by:
validatein interfaceReportService
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-