Renames class, removes obsolete, javadoc
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / sp / RecordCommandSp.java
index 2775ccb..0b40381 100644 (file)
@@ -5,6 +5,13 @@ import java.io.Serializable;
 import com.indexdata.mkjsf.pazpar2.commands.CommandParameter;\r
 import com.indexdata.mkjsf.pazpar2.commands.RecordCommand;\r
 \r
+/**\r
+ * Service Proxy extensions to the Papzar2 <code>record</code> command, \r
+ * these parameters being accessible by <code>pzreq.record.sp.[parameter]</code>\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
 public class RecordCommandSp  implements Serializable, ServiceProxyCommand {\r
 \r
   private static final long serialVersionUID = -3901864271733337221L;\r
@@ -14,13 +21,39 @@ public class RecordCommandSp  implements Serializable, ServiceProxyCommand {
     this.command = command;\r
   }\r
   \r
+  /**\r
+   * Sets Service Proxy command parameter <code>recordquery</code>. See Service Proxy documentation for details. \r
+   */\r
   public void setRecordquery (String recordQuery) {\r
     command.setParameter(new CommandParameter("recordquery","=",recordQuery));\r
   }\r
   \r
+  /**\r
+   * Gets parameter value for <code>recordquery</cod>\r
+   */\r
   public String getRecordquery() {\r
     return command.getParameterValue("recordquery");\r
   }\r
+  \r
+  /**\r
+   * Sets Service Proxy command parameter <code>acefilter</code>. See Service Proxy documentation for details.\r
+   */\r
+  public void setAcefilter (String aceFilter) {\r
+    command.setParameter(new CommandParameter("acefilter","=",aceFilter));\r
+  }\r
+  \r
+  /**\r
+   * Gets parameter value for <code>acefilter</cod>\r
+   */\r
+  public String getAcefilter () {\r
+    return command.getParameterValue("acefilter");\r
+  }\r
 \r
+  @Override\r
+  public boolean spOnly() {\r
+    return true;\r
+  }\r
+\r
+  \r
 \r
 }\r