/* * Server data */ public static void saveServerData(String key, String subKey, Object data) { // Remove the data if it exists already ServerData.Util.remove(key, subKey); // Create and save the timed data ServerData serverData = new ServerData(); serverData.generateId(); serverData.setKey(key); serverData.setSubKey(subKey); serverData.setData(data.toString()); DataManager.serverData.put(serverData.getId(), serverData); }
public static Object getServerDataValue(String key, String subKey) { return ServerData.Util.find(key, subKey).getData(); }
public static boolean hasServerData(String key, String subKey) { return ServerData.Util.find(key, subKey) != null; }
public static void removeServerData(String key, String subKey) { ServerData.Util.remove(key, subKey); }