pzresp.reset();\r
// resets some record and show command parameters without \r
// changing state or creating state change feedback\r
- pzreq.getRecordInState().removeParametersSilently(); \r
- pzreq.getShowInState().setParameterSilently(new CommandParameter("start","=",0)); \r
- logger.debug(Utils.objectId(this) + " is searching using "+pzreq.getCommandReadOnly("search").getUrlEncodedParameterValue("query"));\r
+ pzreq.getRecord().removeParametersInState(); \r
+ pzreq.getShow().setParameterInState(new CommandParameter("start","=",0)); \r
+ logger.debug(Utils.objectId(this) + " is searching using "+pzreq.getCommand("search").getUrlEncodedParameterValue("query"));\r
doCommand("search"); \r
}\r
\r
List<CommandThread> threadList = new ArrayList<CommandThread>();\r
StringTokenizer tokens = new StringTokenizer(commands,",");\r
while (tokens.hasMoreElements()) { \r
- threadList.add(new CommandThread(pzreq.getCommandReadOnly(tokens.nextToken()),searchClient)); \r
+ threadList.add(new CommandThread(pzreq.getCommand(tokens.nextToken()),searchClient)); \r
}\r
for (CommandThread thread : threadList) {\r
thread.start();\r
\r
public boolean commandsAreValid(String commands) {\r
if (commands.equals("record")) {\r
- if (!pzreq.getCommandReadOnly("record").hasParameterSet("id")) {\r
+ if (!pzreq.getCommand("record").hasParameterSet("id")) {\r
logger.error("Attempt to send record command without the id parameter");\r
return false;\r
}\r
\r
@Override\r
public boolean hasRecord (String recId) {\r
- return pzreq.getCommandReadOnly("record").hasParameters() && pzresp.getRecord().getRecId().equals(recId);\r
+ return pzreq.getCommand("record").hasParameters() && pzresp.getRecord().getRecId().equals(recId);\r
}\r
\r
public String getCurrentStateKey () { \r
\r
\r
protected boolean hasQuery() { \r
- return pzreq.getCommandReadOnly("search").hasParameterSet("query"); \r
+ return pzreq.getCommand("search").hasParameterSet("query"); \r
}\r
\r
\r
if (stateMgr.hasPendingStateChange("record") && ! commands.equals("record")) { \r
logger.debug("Found pending record ID change. Doing record before updating " + commands);\r
stateMgr.hasPendingStateChange("record",false);\r
- if (pzreq.getCommandReadOnly("record").hasParameterSet("id")) {\r
+ if (pzreq.getCommand("record").hasParameterSet("id")) {\r
update("record");\r
} else { \r
pzresp.put("record", new RecordResponse());\r
}\r
\r
protected String doCommand(String commandName) { \r
- logger.debug(pzreq.getCommandReadOnly(commandName).getEncodedQueryString() + ": Results for "+ pzreq.getCommandReadOnly("search").getEncodedQueryString());\r
+ logger.debug(pzreq.getCommand(commandName).getEncodedQueryString() + ": Results for "+ pzreq.getCommand("search").getEncodedQueryString());\r
return update(commandName);\r
}\r
\r