/** * Delete an item, requires root user/password * * @param ID The ID of the item to delete * @param rootID The ID of the root user attempting to delete the item. * @param rootPassWd The password of the root user attempting to delete the item. */ public static void removeItem(String ID, String rootID, String rootPassWd) { if (passwordsEqual(rootID, rootPassWd)) { itemDatabase.deleteEntry(ID); } }
/** * Remove the specified product * * @param ID The barcode or name of the product to be removed * @throws IOException * @throws InterruptedException */ public static void removeItem(String ID) throws IOException, InterruptedException { itemDatabase.deleteEntry(ID); }