Class BaseReportGenerator

    • Field Detail

      • reportService

        protected ReportService reportService
        report service
      • namespaceService

        protected org.alfresco.service.namespace.NamespaceService namespaceService
        namespace service
      • reportType

        protected org.alfresco.service.namespace.QName reportType
        report type qualified name
    • Constructor Detail

      • BaseReportGenerator

        public BaseReportGenerator()
    • Method Detail

      • setReportService

        public void setReportService​(ReportService reportService)
        Parameters:
        reportService - report service
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
        Parameters:
        namespaceService - namespace service
      • setReportType

        public void setReportType​(org.alfresco.service.namespace.QName reportType)
        Parameters:
        reportType - report type
      • init

        public void init()
        Init method
      • checkReportApplicability

        protected abstract void checkReportApplicability​(org.alfresco.service.cmr.repository.NodeRef reportedUponNodeRef)
        Checks whether the report generator is applicable given the reported upon node reference.

        Throws AlfrescoRuntimeException if applicability fails, with reason.

        Parameters:
        reportedUponNodeRef - reported upon node reference
      • generateReportName

        protected abstract String generateReportName​(org.alfresco.service.cmr.repository.NodeRef reportedUponNodeRef,
                                                     String mimetype)
        Generate the report name
      • generateReportTemplateContext

        protected abstract Map<String,​Serializable> generateReportTemplateContext​(org.alfresco.service.cmr.repository.NodeRef reportedUponNodeRef)
        Generate the report template context.
      • generateReportMetadata

        protected abstract Map<org.alfresco.service.namespace.QName,​Serializable> generateReportMetadata​(org.alfresco.service.cmr.repository.NodeRef reportedUponNodeRef)
        Generate report meta-data
      • generateReportContent

        protected abstract org.alfresco.service.cmr.repository.ContentReader generateReportContent​(org.alfresco.service.cmr.repository.NodeRef reportedUponNodeRef,
                                                                                                   String mimetype,
                                                                                                   Map<String,​Serializable> properties)
        Generate report content