Examples of ObjectNode


Examples of org.codehaus.jackson.node.ObjectNode

        loginAs(proxy, TestDataProvider.DEFAULT_USER_ID);
        proxy.execute();

        assertResultOK(proxy);

        ObjectNode obj = getJSON(proxy);

        assertThat(obj.get("count").asInt(), is(10));
        JsonNode ids = obj.get("imageIds");
        for (int i = 0; i < ids.size(); ++i)
            assertThat(ids.get(i).asText(), is(TestDataProvider.IMAGE_OWNED_BY_DEFAULT_USER_ID[i]));
    }
View Full Code Here

Examples of org.codehaus.jackson.node.ObjectNode

        loginAs(proxy, TestDataProvider.DEFAULT_USER_ID);
        proxy.execute();

        assertResultOK(proxy);

        ObjectNode obj = getJSON(proxy);

        assertThat(obj.get("count").asInt(), is(10));
        JsonNode ids = obj.get("imageIds");
        for (int i = 0; i < ids.size(); ++i)
            assertThat(ids.get(i).asText(), is(TestDataProvider.IMAGE_OWNED_BY_DEFAULT_USER_ID[i + 3]));
    }
View Full Code Here

Examples of org.codehaus.jackson.node.ObjectNode

        if (passcode == null)
            passcode = session().get("event:" + eventId);

        EventEx event = new GetTransaction(user, eventId, passcode).execute();

        ObjectNode obj = new ObjectNode(JsonNodeFactory.instance);
        obj.put("event", event.toSafeJSON());
        return renderOK(obj);
    }
View Full Code Here

Examples of org.codehaus.jackson.node.ObjectNode

        return renderOK();
    }

    private Map<UUID, List<String>> convertToMap(String jsonStr) throws PartakeException {
        try {
            ObjectNode map;
            if (jsonStr == null) {
                map = new ObjectNode(JsonNodeFactory.instance);
            } else {
                ObjectMapper mapper = new ObjectMapper();
                map = mapper.readValue(jsonStr, ObjectNode.class);
            }
            return Util.parseEnqueteAnswers(map);
View Full Code Here

Examples of org.codehaus.jackson.node.ObjectNode

            embryo.setEndDate(endDate);
        }

        String eventId = new CreateTransaction(embryo).execute();
        ObjectNode obj = new ObjectNode(JsonNodeFactory.instance);
        obj.put("eventId", eventId);
        return renderOK(obj);
    }
View Full Code Here

Examples of org.codehaus.jackson.node.ObjectNode

        limit = Util.ensureRange(limit, 1, 100);

        List<EventTicketNotification> notifications = new GetNotificationsAccess(user, eventId, offset, limit).execute();
        ArrayNode array = Util.toJSONArray(notifications);

        ObjectNode obj = new ObjectNode(JsonNodeFactory.instance);
        obj.put("notifications", array);
        return renderOK(obj);
    }
View Full Code Here

Examples of org.codehaus.jackson.node.ObjectNode

  if (running.get()) {

      RemoteDependencyDeclaration remoteDep = new RemoteDependencyDeclaration(
        dependency, this.getURLRoot());

      ObjectNode jsonObject = remoteDep.toJson();

      String json = jsonObject.toString();

      Instance instance = createClientProxy(json, client, dependency);

      if (instance == null) {
View Full Code Here

Examples of org.eclipse.uml2.uml.ObjectNode

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated
   */
  public void setBase_ObjectNode(ObjectNode newBase_ObjectNode) {
    ObjectNode oldBase_ObjectNode = base_ObjectNode;
    base_ObjectNode = newBase_ObjectNode;
    if(eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.OVERWRITE__BASE_OBJECT_NODE, oldBase_ObjectNode, base_ObjectNode));
  }
View Full Code Here

Examples of org.jrdf.graph.ObjectNode

        addTriplesToSetForSubject(graph, set, node);
        addTriplesToSetForObject(graph, set, node);
        for (Triple triple : set) {
            final SubjectNode sNode = triple.getSubject();
            addBlankNodeToSet(graph, bSet, sNode);
            final ObjectNode oNode = triple.getObject();
            addBlankNodeToSet(graph, bSet, oNode);
        }
        set.clear();
    }
View Full Code Here

Examples of org.openbp.jaspira.propertybrowser.nodes.ObjectNode

        if (context.isNewItem() && !context.isItemSaved())
        {
          // Make the object name editable if it's a new item

          // Create the property browser tree and clone it
          ObjectNode rootNode = NodeStructureMgr.getInstance().createEditorStructureFor(item.getClass());

          // Set the read-only property of the 'Name' property to false
          changeReadOnlyModeOfPropertyDescriptor(rootNode, "Name", false);
          // TODO Feature 3 Allow for selecting the model for new items; implement setOwningModelQualifier
          // changeReadOnlyModeOfPropertyDescriptor(rootNode, "OwningModelQualifier", false);
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.