Interface DataManager.Listener

    • Constructor Detail

    • Method Detail

      • onDataManagerStartDataManagementForSite

         Unit onDataManagerStartDataManagementForSite(Site site, Boolean isOnlineData)

        Notifies listeners when Data Manager starts data management for site and/or building

        Parameters:
        site - site where this data belongs specific).
        isOnlineData - Whether data is from server (online) or local bundle (offline)
      • onDataManagerCompleteAllForSite

         Unit onDataManagerCompleteAllForSite(Site site, Boolean isSuccessful, Boolean isOnlineData, List<ErrorMessage> errors)

        Notifies listeners when all data processing (both offline and online) have been completed.

        Parameters:
        site - site where this data belongs Will never be null, if not found by SiteManager it will only have internal ids
        isSuccessful - Whether all updates have succeeeded or not
        isOnlineData - Whether data is from server (online) or local bundle (offline)
        errors - A dictionary containing error messages (if any), mapped by data type
      • onDataManagerBeginProcessingDataForSite

         Unit onDataManagerBeginProcessingDataForSite(Site site, DataType dataType, Boolean isOnlineData)

        Notifies listeners when a specific type of data (either offline or online) has started to be processed

        Parameters:
        site - site where this data belongs Will never be null, if not found by SiteManager it will only have internal ids
        dataType - Type of data
        isOnlineData - Whether data is from server (online) or local bundle (offline)
      • onDataManagerEndProcessingDataForSite

         Unit onDataManagerEndProcessingDataForSite(Site site, DataType dataType, Boolean isOnlineData, Boolean isSuccessful, List<ErrorMessage> errors)

        Notifies listeners when a specific type of data (either offline or online) has completed processing (whether successful or not)

        Parameters:
        site - site where this data belongs Will never be null, if not found by SiteManager it will only have internal ids
        dataType - Type of data
        isOnlineData - Whether data is from server (online) or local bundle (offline)
        isSuccessful - Whether update has succeeeded or not
        errors - A list of error message (if any)
      • onDataManagerReadyForSite

         Unit onDataManagerReadyForSite(Site site)

        Notifies listeners when all data needed for displaying a site is available

        Parameters:
        site - site where this data belongs to