Adds windowid parameter to applicable commands
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / sp / StatCommandSp.java
1 package com.indexdata.mkjsf.pazpar2.commands.sp;\r
2 \r
3 import java.io.Serializable;\r
4 \r
5 import com.indexdata.mkjsf.pazpar2.commands.CommandParameter;\r
6 import com.indexdata.mkjsf.pazpar2.commands.StatCommand;\r
7 \r
8 public class StatCommandSp implements Serializable, ServiceProxyCommand {\r
9 \r
10   private StatCommand command = null;\r
11   private static final long serialVersionUID = -469324132819092701L;\r
12 \r
13   public StatCommandSp(StatCommand command) {\r
14     this.command = command;\r
15   }\r
16 \r
17   /**\r
18    * Sets the <code>windowid</code> parameter. See Service Proxy documentation for details.\r
19    */  \r
20   public void setWindowid (String windowid) {\r
21     command.setParameterInState(new CommandParameter("windowid","=",windowid));\r
22   }\r
23   \r
24   /** \r
25    * Returns the <code>windowid</code> parameter value.\r
26    */\r
27   public String getWindowid () {\r
28     return command.getParameterValue("windowid");\r
29   }\r
30 \r
31   public boolean spOnly() {\r
32     return false;\r
33   }\r
34 \r
35 }\r