public static void removeAllListener(String clientId) { BerainResult<Boolean> br = BerainHelper.removeAllListener(clientId); renderJSON(br); }
// --------------------------Event-----------------------------// public static void addWatchable(String clientId, String path, int type) { BerainResult<Boolean> br = BerainHelper.addWatchable(clientId, path, type); renderJSON(br); }
public static void removeWatchedEvent(String clientId, String path, int type) { BerainResult<Boolean> br = BerainHelper.removeWatchedEvent(clientId, path, type); renderJSON(br); }
public static void getFull(String path) { BerainResult<Map<String, String>> br = BerainHelper.getFull(path); renderJSON(br); }
public static void exists(String path) { BerainResult<Boolean> br = BerainHelper.exists(path); renderJSON(br); }
public static void get(String path) { BerainResult<String> br = BerainHelper.get(path); renderJSON(br); }
// --------------------------read-----------------------------// public static void nextChildren(String parentPath) { BerainResult<List<Map<String, String>>> br = BerainHelper.nextChildren(parentPath); renderJSON(br); }
public static void copy(String originalPath, String newPath) { BerainResult<Boolean> br = BerainHelper.copy(originalPath, newPath); renderJSON(br); }
public static void delete(String path) { BerainResult<Boolean> br = BerainHelper.delete(path); renderJSON(br); }
public static void create(String path, String value) { BerainResult<Boolean> br = BerainHelper.create(path, value); renderJSON(br); }