コード例 #1
0
ファイル: ServiceCaller.java プロジェクト: pminich/kunagi
  public void onServiceCallSuccess(DataTransferObject data) {
    lastSuccessfullServiceCallTime = Tm.getCurrentTimeMillis();

    if (data.conversationNumber != null) {
      conversationNumber = data.conversationNumber;
      log.info("conversatioNumber received:", conversationNumber);
    }
    Scope.get().getComponent(Dao.class).handleDataFromServer(data);

    ScrumGwtApplication app = ScrumGwtApplication.get();
    if (data.applicationInfo != null) {
      app.applicationInfo = data.applicationInfo;
      log.debug("applicationInfo:", data.applicationInfo);
      // Scope.get().putComponent(data.applicationInfo);
    } else {
      assert app.applicationInfo != null;
    }

    new ServerDataReceivedEvent(data).fireInCurrentScope();
  }