Package org.cyclos.security.system
Class ReportServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.system.ReportServiceSecurity
-
- All Implemented Interfaces:
Service,ReportService
@Security public class ReportServiceSecurity extends BaseServiceSecurity implements ReportService
Security layer forReportService
-
-
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 ReportServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemReportDatagetSystemReportData()Gets the data for system reports.SerializableInputStreamreadSystemReport(SystemReportQuery query)Generates a PDF content for a system report, showing reports on the complete system.protected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonevoidvalidate(SystemReportQuery query)Validates the system reports.-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
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
-
getSystemReportData
public SystemReportData getSystemReportData()
Description copied from interface:ReportServiceGets the data for system reports.- Specified by:
getSystemReportDatain interfaceReportService
-
readSystemReport
public SerializableInputStream readSystemReport(SystemReportQuery query) throws EntityNotFoundException, ValidationException
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- Throws:
EntityNotFoundExceptionValidationException
-
validate
public void validate(SystemReportQuery query) throws ValidationException, FrameworkException
Description copied from interface:ReportServiceValidates the system reports. this must be called before callingReportService.readSystemReport(SystemReportQuery).- Specified by:
validatein interfaceReportService- Throws:
ValidationExceptionFrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-