Class Report

All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity, IEntity, ISortableEntity

@Entity public class Report extends SimpleEntity
Entity representing a report in the system. Report consist of a list of ReportItems ordered by their timestamp. ReportItems are stored in DB (legacy) and (since MC7.4) in external lucene index.
See Also:
  • Constructor Details

    • Report

      public Report()
    • Report

      public Report(Principal owner)
  • Method Details

    • getDateOfCreation

      public Calendar getDateOfCreation()
    • setDateOfCreation

      public void setDateOfCreation(Calendar dateOfCreation)
    • getOwner

      public Principal getOwner()
    • setOwner

      public void setOwner(Principal owner)
    • getReportItems

      public List<ReportItem> getReportItems()
      WARNING: do not call this method for version reports, because since mc7.4 report items are stored in lucene index. Use CCAPI.reportGetItems(Report) instead.
    • setReportItems

      public void setReportItems(List<ReportItem> reportItems)
    • addReportItem

      public void addReportItem(ReportItem reportItem)
      use with caution! if report is persistent and report item is not, you will get transient exception on flush. same if report item is persistent and report not. take care to insert report first and items second.
      Parameters:
      reportItem -
    • isStoreInIndex

      public boolean isStoreInIndex()
    • setStoreInIndex

      public void setStoreInIndex(boolean inIndex)
    • getReportLevel

      public ReportItem.ReportItemLevel getReportLevel()
    • setReportLevel

      public void setReportLevel(ReportItem.ReportItemLevel reportLevel)
    • getName

      public Resource getName()
      Specified by:
      getName in interface IEntity
      Overrides:
      getName in class EntityBase
      Returns:
      Name of entity in multiple locales. Might be null.
    • getDescription

      public Resource getDescription()
      Specified by:
      getDescription in interface IEntity
      Overrides:
      getDescription in class EntityBase
      Returns:
      Description of entity in multiple locales. Might be null.