Package com.pointrlabs.core.management
Interface DataManager.Listener
-
- All Implemented Interfaces:
-
com.pointrlabs.core.management.PTRListener
public interface DataManager.Listener implements PTRListener
-
-
Method Summary
Modifier and Type Method Description Unit
onDataManagerStartDataManagementForSite(Site site, Boolean isOnlineData)
Notifies listeners when Data Manager starts data management for site and/or building Unit
onDataManagerCompleteAllForSite(Site site, Boolean isSuccessful, Boolean isOnlineData, List<ErrorMessage> errors)
Notifies listeners when all data processing (both offline and online) have been completed. 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 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) Unit
onDataManagerReadyForSite(Site site)
Notifies listeners when all data needed for displaying a site is available -
-
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 idsisSuccessful
- Whether all updates have succeeeded or notisOnlineData
- 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 idsdataType
- Type of dataisOnlineData
- 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 idsdataType
- Type of dataisOnlineData
- Whether data is from server (online) or local bundle (offline)isSuccessful
- Whether update has succeeeded or noterrors
- 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
-
-
-
-