1 package com.indexdata.mkjsf.pazpar2.commands.sp;
\r
3 import java.io.Serializable;
\r
5 import com.indexdata.mkjsf.pazpar2.commands.CommandParameter;
\r
6 import com.indexdata.mkjsf.pazpar2.commands.RecordCommand;
\r
9 * Service Proxy extensions to the Papzar2 <code>record</code> command,
\r
10 * these parameters being accessible by <code>pzreq.record.sp.[parameter]</code>
\r
12 * @author Niels Erik
\r
15 public class RecordCommandSp implements Serializable, ServiceProxyCommand {
\r
17 private static final long serialVersionUID = -3901864271733337221L;
\r
18 private RecordCommand command = null;
\r
20 public RecordCommandSp(RecordCommand command) {
\r
21 this.command = command;
\r
25 * Sets Service Proxy command parameter <code>recordquery</code>. See Service Proxy documentation for details.
\r
27 public void setRecordquery (String recordQuery) {
\r
28 command.setParameter(new CommandParameter("recordquery","=",recordQuery));
\r
32 * Gets parameter value for <code>recordquery</cod>
\r
34 public String getRecordquery() {
\r
35 return command.getParameterValue("recordquery");
\r
39 * Sets Service Proxy command parameter <code>acefilter</code>. See Service Proxy documentation for details.
\r
41 public void setAcefilter (String aceFilter) {
\r
42 command.setParameter(new CommandParameter("acefilter","=",aceFilter));
\r
46 * Gets parameter value for <code>acefilter</cod>
\r
48 public String getAcefilter () {
\r
49 return command.getParameterValue("acefilter");
\r
53 * Sets the <code>windowid</code> parameter. See Service Proxy documentation for details.
\r
55 public void setWindowid (String windowid) {
\r
56 command.setParameterInState(new CommandParameter("windowid","=",windowid));
\r
60 * Returns the <code>windowid</code> parameter value.
\r
62 public String getWindowid () {
\r
63 return command.getParameterValue("windowid");
\r
68 public boolean spOnly() {
\r