@Test(expected = ClientException.class) public void testDeleteDataNodeWithoutGraphId() { NodeCacheManager.deleteDataNode(null, "Content_2"); }
public static Object deleteDataNode(String graphId, String id) { validateRequired(graphId, id, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, id, RedisKeysEnum.DATA_NODE.name()); TelemetryManager.log("Deleting data node from cache having identifier: " + id + " in graph: "+ graphId); return dataNodeCache.remove(key); }
NodeCacheManager { public static Object deleteDataNode(String graphId, String id) { validateRequired(graphId, id, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, id, RedisKeysEnum.DATA_NODE.name()); TelemetryManager.log("Deleting data node from cache having identifier: " + id + " in graph: "+ graphId); return dataNodeCache.remove(key); } }
NodeCacheManager { public static Object deleteDataNode(String graphId, String id) { validateRequired(graphId, id, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, id, RedisKeysEnum.DATA_NODE.name()); TelemetryManager.log("Deleting data node from cache having identifier: " + id + " in graph: "+ graphId); return dataNodeCache.remove(key); }  }
NodeCacheManager { public static Object deleteDataNode(String graphId, String id) { validateRequired(graphId, id, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, id, RedisKeysEnum.DATA_NODE.name()); TelemetryManager.log("Deleting data node from cache having identifier: " + id + " in graph: "+ graphId); return dataNodeCache.remove(key); }  static void saveDefinitionNode(String graphId, String objectType, Object node); static Object getDefinitionNode(String graphId, String objectType); static Object deleteDefinitionNode(String graphId, String objectType); static void saveDataNode(String graphId, String id, Object node); static Object getDataNode(String graphId, String id); static Object deleteDataNode(String graphId, String id); }
NodeCacheManager { public static Object deleteDataNode(String graphId, String id) { validateRequired(graphId, id, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, id, RedisKeysEnum.DATA_NODE.name()); TelemetryManager.log("Deleting data node from cache having identifier: " + id + " in graph: "+ graphId); return dataNodeCache.remove(key); }  static void saveDefinitionNode(String graphId, String objectType, Object node); static Object getDefinitionNode(String graphId, String objectType); static Object deleteDefinitionNode(String graphId, String objectType); static void saveDataNode(String graphId, String id, Object node); static Object getDataNode(String graphId, String id); static Object deleteDataNode(String graphId, String id);  }