+ \r
+ public boolean validateUpdateRequest(String commands) {\r
+ if (errors.hasConfigurationErrors()) {\r
+ logger.error("The command(s) " + commands + " are cancelled due to configuration errors.");\r
+ return false;\r
+ } else if (!commands.equals("search") && pzresp.getSearch().hasApplicationError()) {\r
+ logger.error("The command(s) " + commands + " are cancelled because the latest search command had an error.");\r
+ return false;\r
+ } else if (!commandsAreValid(commands)) {\r
+ logger.debug("The command(s) " + commands + " are cancelled because the were not found to be ready/valid.");\r
+ return false;\r
+ } else if (!hasQuery() && !(commands.equals("record") && pzreq.getCommand("record").hasParameterValue("recordquery"))) {\r
+ logger.debug("The command(s) " + commands + " are held off because there's not yet a query.");\r
+ return false;\r
+ } else {\r
+ return true;\r
+ }\r
+ \r
+ \r
+ }\r