Class ReportableObjectHelper

    • Method Detail

      • addReport

        public static void addReport​(ModifiableModelLessDataHolder unversionedDataHolder)
        Add a report to the object
        Parameters:
        unversionedDataHolder - the unversioned data holder
      • setReportsCount

        public static void setReportsCount​(ModifiableModelLessDataHolder unversionedDataHolder,
                                           long reportsCount)
        Sets the number of reports on the object
        Parameters:
        unversionedDataHolder - the unversioned data holder
        reportsCount - the number of reports to set
      • clearReports

        public static void clearReports​(ModifiableModelLessDataHolder unversionedMetadataHolder)
        Remove all reports on the object
        Parameters:
        unversionedMetadataHolder - the unversioned data holder
      • getReportsCount

        public static long getReportsCount​(ModelLessDataHolder unversionedDataHolder)
        Retrieves the number of reports on the object
        Parameters:
        unversionedDataHolder - the unversioned data holder
        Returns:
        the number of reports