protected EntityResult extractEntityResult(ObjectNode response) throws AtlasServiceException { return EntityResult.fromString(response.toString()); }
protected EntityResult extractEntityResult(ObjectNode response) throws AtlasServiceException { return EntityResult.fromString(response.toString()); }
protected EntityResult extractEntityResult(JSONObject response) throws AtlasServiceException { return EntityResult.fromString(response.toString()); }
/** * Deserializes the given json into an instance of * CreateUpdateEntitiesResult. * * @param json * the (unmodified) json that comes back from Atlas. * @return * @throws AtlasServiceException */ public static CreateUpdateEntitiesResult fromJson(String json) throws AtlasServiceException { GuidMapping guidMapping = AtlasType.fromJson(json, GuidMapping.class); EntityResult entityResult = EntityResult.fromString(json); CreateUpdateEntitiesResult result = new CreateUpdateEntitiesResult(); result.setEntityResult(entityResult); result.setGuidMapping(guidMapping); return result; }
/** * Deserializes the given json into an instance of * CreateUpdateEntitiesResult. * * @param json * the (unmodified) json that comes back from Atlas. * @return * @throws AtlasServiceException */ public static CreateUpdateEntitiesResult fromJson(String json) throws AtlasServiceException { GuidMapping guidMapping = AtlasType.fromJson(json, GuidMapping.class); EntityResult entityResult = EntityResult.fromString(json); CreateUpdateEntitiesResult result = new CreateUpdateEntitiesResult(); result.setEntityResult(entityResult); result.setGuidMapping(guidMapping); return result; }
/** * Deserializes the given json into an instance of * CreateUpdateEntitiesResult. * * @param json * the (unmodified) json that comes back from Atlas. * @return * @throws AtlasServiceException */ public static CreateUpdateEntitiesResult fromJson(String json) throws AtlasServiceException { GuidMapping guidMapping = AtlasType.fromJson(json, GuidMapping.class); EntityResult entityResult = EntityResult.fromString(json); CreateUpdateEntitiesResult result = new CreateUpdateEntitiesResult(); result.setEntityResult(entityResult); result.setGuidMapping(guidMapping); return result; }