Class ReportsPersistenceImpl

java.lang.Object
io.jmix.reports.impl.ReportsPersistenceImpl
All Implemented Interfaces:
ReportsPersistence

@Component("report_ReportsPersistence") public class ReportsPersistenceImpl extends Object implements ReportsPersistence
  • Field Details

    • REPORT_EDIT_FETCH_PLAN_NAME

      public static final String REPORT_EDIT_FETCH_PLAN_NAME
      See Also:
    • IDX_SEPARATOR

      protected static final String IDX_SEPARATOR
      See Also:
    • transaction

      @Autowired protected org.springframework.transaction.support.TransactionTemplate transaction
    • metadata

      @Autowired protected Metadata metadata
    • secureOperations

      @Autowired protected SecureOperations secureOperations
    • policyStore

      @Autowired protected PolicyStore policyStore
    • dataManager

      @Autowired protected DataManager dataManager
    • entityStates

      @Autowired protected EntityStates entityStates
    • fetchPlanRepository

      @Autowired protected FetchPlanRepository fetchPlanRepository
  • Constructor Details

    • ReportsPersistenceImpl

      public ReportsPersistenceImpl()
  • Method Details

    • save

      public Report save(Report report)
      Description copied from interface: ReportsPersistence
      Saves Report entity to the database.
      Specified by:
      save in interface ReportsPersistence
      Parameters:
      report - report entity instance
      Returns:
      saved instance
    • saveReport

      @NotNull protected @NotNull Report saveReport(Report report)
    • manageGroup

      protected void manageGroup(Report report, SaveContext saveContext)
      Manages report group: sets existent or creates completely new or based on deleted one.
      Parameters:
      report - incoming report
      saveContext - save context
    • manageReport

      @Nullable protected Report manageReport(Report report)
      Manages local attributes of incoming report: fills index fields, merges incoming report with existent (if exists)
      Parameters:
      report - incoming report
      Returns:
      Existing report with the same id
    • manageTemplates

      @Nullable protected ReportTemplate manageTemplates(Report report, @Nullable List<ReportTemplate> incomingTemplates, @Nullable ReportTemplate incomingDefaultTemplate, @Nullable Report existingReport, SaveContext saveContext)
      Manages templates:
      • Removes unnecessary templates of existent report
      • Creates or updates actual templates
      • Evaluate actual default template
      Parameters:
      report - incoming report
      incomingTemplates - templates of incoming report
      incomingDefaultTemplate - default template
      existingReport - existing report with the same id
      saveContext - save context
      Returns:
      Actual default template
    • checkPermission

      protected void checkPermission(Report report)
    • storeIndexFields

      protected void storeIndexFields(Report report)