Exemplo n.º 1
0
 public void setPathToTerminalDB(String pathToTerminalDB) {
   boolean changed = setValue(PATH_TO_TERMINAL_DB, pathToTerminalDB);
   if (changed) {
     TerminalDB.getRawInstance().closeConnection();
     // reconnect in getInstance
     TerminalDB.getRawInstance().tryConnectToDB();
     if (TerminalDB.getRawInstance().isConnected()) {
       DistancesRegistry.getInstance().refresh();
       TeamsRegistry.getInstance().refresh();
       UsersRegistry.getInstance().refresh();
     }
   }
 }
Exemplo n.º 2
0
 private void updatePrevWithdrawnMembers() {
   if (getCurrentScanPoint() != null && getCurrentTeam() != null) {
     prevWithdrawnMembers.clear();
     prevWithdrawnMembers.addAll(
         TerminalDB.getConnectedInstance()
             .getDismissedMembers(getLevelPointForTeam(), getCurrentTeam()));
   }
 }
Exemplo n.º 3
0
 public void setCurrentRaidId(String currentRaidId) {
   boolean changed = setValue(CURRENT_RAID_ID, currentRaidId);
   if (changed) {
     if (TerminalDB.getConnectedInstance() != null) {
       DistancesRegistry.getInstance().refresh();
       TeamsRegistry.getInstance().refresh();
       UsersRegistry.getInstance().refresh();
     }
   }
 }
Exemplo n.º 4
0
 public void saveCurrWithdrawnToDB(Date recordDateTime) {
   TerminalDB.getConnectedInstance()
       .saveDismissedMembers(
           getLevelPointForTeam(), getCurrentTeam(), currWithdrawnMembers, recordDateTime);
 }