Class ReportDO

All Implemented Interfaces:
IBaseDO<Report>

public class ReportDO extends AbstractSimpleEntityDO<Report>
  • Constructor Details

    • ReportDO

      public ReportDO()
  • Method Details

    • delete

      public void delete(Report entity, boolean force) throws ApplicationException
      behavior differs: only delete if not in use
      Overrides:
      delete in class AbstractBaseDO<Report>
      Parameters:
      entity - mandatory
      force - if true delete without usage check, which can result in db constraints error unless references are taken care of
      Throws:
      ApplicationException
    • delete

      public void delete(List<Report> reports) throws ApplicationException
      Throws:
      ApplicationException
    • delete

      public int delete(List<Long> reportIds, Set<Long> usedReportIds) throws ApplicationException
      optimization for cleanup
      Throws:
      ApplicationException
    • getUsedReportIds

      public Set<Long> getUsedReportIds()
      optimization for cleanup: collect all used reportIds
    • getReportItems

      public List<ReportItem> getReportItems(Report report, Integer maxCount)
      since from mc7.4 the report items of the version reports are stored in lucene index they must be retrieved by this method instead of calling getReport().getReportItems
    • getReportItemCount

      public int getReportItemCount(Report report)
    • sendEvent

      public void sendEvent(ReportItem item)
      send event for item to report data store