Examples of toJSONString()


Examples of com.denormans.facebookgwt.api.client.ui.options.StreamPublishOptions.toJSONString()

            .setMessage(streamPublishMessageTextBox.getText())
            .setAttachment(Attachment.createAttachment().setName("FacebookGWT").setCaption("Facebook API for GWT").setDescription("Facebook GWT is a Java API of the Facebook JavaScript API for use with Google Web Toolkit.").setHref("http://denormans.github.com/FacebookGWT/"))
            .setActionLinks(Link.createLink("Code", "https://github.com/denormans/FacebookGWT"), Link.createLink("Issues", "https://github.com/denormans/FacebookGWT/issues"))
            .setUserMessagePrompt("Share your thoughts about FacebookGWT");

    Log.info("Stream publish options: " + streamPublishOptions.toJSONString());

    FBGWT.UI.publishToStream(DisplayFormats.Dialog, streamPublishOptions, new AsyncCallback<StreamPublishCallbackResponse>() {
      @Override
      public void onFailure(final Throwable caught) {
        handleError("Error publishing to stream", caught);
View Full Code Here

Examples of com.denormans.facebookgwt.api.client.ui.options.StreamShareOptions.toJSONString()

  @UiHandler ("streamShareButton")
  public void handleStreamShareButtonClick(final ClickEvent event) {
    StreamShareOptions streamShareOptions =
        StreamShareOptions.createStreamShareOptions(streamShareLinkTextBox.getText());

    Log.info("Stream share options: " + streamShareOptions.toJSONString());

    FBGWT.UI.shareLinkToStream(DisplayFormats.Dialog, streamShareOptions, new AsyncCallback<Boolean>() {
      @Override
      public void onFailure(final Throwable caught) {
        handleError("Error sharing link to stream", caught);
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance.toJSONString()

    if(findApps!=null && findApps.size() >0 ){
      this.setEchoValue(I18n.instance().get("分享的应用必须原创APP,该应用已经分享到AppShare,不能重复分享!"));
      return NO_FORWARD;
    }

    sb.append("<app>").append(selectApp.toJSONString()).append("</app>\n");

    DOService findBP = DOService
        .getService("DO_BusiPackage_byapplicationuid");

    DOService findBO = DOService.getService("DO_BO_FindByBPUid_Form");
View Full Code Here

Examples of com.goodow.realtime.json.JsonArray.toJsonString()

    VertxAssert.assertEquals(4, map.size());
    VertxAssert.assertEquals("v1", map.get("k1"));
    VertxAssert.assertEquals(4d, map.<Double> get("k2"), 0d);
    VertxAssert.assertEquals(false, map.get("k3"));
    VertxAssert.assertTrue(v4.toJsonString().equals(map.<JsonArray> get("k4").toJsonString()));

    VertxAssert.assertEquals("v1", map.set("k1", ""));
    VertxAssert.assertEquals(4.0, map.set("k2", null));
    VertxAssert.assertEquals(false, map.set("k3", null));
    VertxAssert.assertEquals(2, map.size());
View Full Code Here

Examples of com.google.devtools.moe.client.database.FileDb.toJsonString()

    dbStorage.addEquivalence(new Equivalence(new Revision("1", "int"), new Revision("1", "pub")));
    dbStorage.addMigration(new SubmittedMigration(
        new Revision("migrated_from", "int"), new Revision("migrated_to", "pub")));
    FileDb expectedDb = new FileDb(dbStorage);

    assertEquals(expectedDb.toJsonString(), fileSystem.fileToString(DB_FILE));
  }

  /**
   * Bookkeeping for codebases different at head and migrated revs.
   */
 
View Full Code Here

Examples of com.google.gwt.query.client.Properties.toJsonString()

      if (o != null) {
        for (int i = 0, l = o.length(); i < l ; i++) {
          ret += i > 0 ? "&" : "";
          Properties p = o.<JsCache>cast().getJavaScriptObject(i);
          if (p != null) {
            ret += k + "[]=" + p.toJsonString();
          } else {
            ret += k + "[]=" + o.getString(i) ;
          }
        }
      } else {
View Full Code Here

Examples of com.ibm.sbt.services.client.base.JsonEntity.toJsonString()

        if (!subscriptionList.isEmpty()) {
          JsonEntity subscription = subscriptionList.get(0);
          long id = subscription.getAsLong("Id");
         
          subscription = subscriptionManagement.getSubscriptionById("" + id);
          System.out.println(subscription.toJsonString(false));
          Assert.assertNotNull("Unable to retrieve subscription: "+id, subscription);
          Assert.assertEquals(""+id, getSubscriptionManagementService().getSubscriptionId(subscription.getJsonObject()));
        }
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

Examples of com.ibm.sbt.services.client.base.JsonEntity.toJsonString()

       
        SubscriptionManagementService subscriptionManagement = getSubscriptionManagementService();
       
        JsonEntity jsonEntity = subscriptionManagement.getSubscriptionById(subscriptionId);
      Assert.assertNotNull("Unable to retrieve subscription: "+subscriptionId, jsonEntity);
      System.out.println(jsonEntity.toJsonString());
     
      Assert.assertEquals(subscriptionId, subscriptionManagement.getSubscriptionId(jsonEntity.getJsonObject()));

      JsonJavaObject rootObject = jsonEntity.getJsonObject();
      Assert.assertNotNull("Unable to retrieve subscription: "+subscriptionId, rootObject);
View Full Code Here

Examples of com.ibm.sbt.services.client.base.JsonEntity.toJsonString()

        setCustomerId(null);

        // Step 2. Add Subscriber
      String subscriberId = addAdministrator(customerId);
        JsonEntity administrator = getSubscriberById(subscriberId);
        System.out.println(administrator.toJsonString());
        String loginName = administrator.getAsString("Subscriber/Person/EmailAddress");
        setPassword(loginName, "onet1me!", "passw0rd");
        System.out.println(loginName);

        // Step 3. Create "IBM SmartCloud Connections" Subscription
View Full Code Here

Examples of com.ibm.sbt.services.client.base.JsonEntity.toJsonString()

        }
        long duration = System.currentTimeMillis() - start;
        System.out.println("Wait for seat took: " + duration);

      subscriber = getSubscriberManagementService().getSubscriberById(subscriberId);
      System.out.println(subscriber.toJsonString());
     
      } catch (BssException be) {
        JsonJavaObject jsonObject = be.getResponseJson();
        System.err.println(jsonObject);
        Assert.fail("Error retrieving roles caused by: "+jsonObject);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.