Adds windowid parameter to applicable commands
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / sp / ShowCommandSp.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.ShowCommand;\r
7 \r
8 public class ShowCommandSp implements Serializable, ServiceProxyCommand{\r
9 \r
10   ShowCommand command = null;\r
11   /**\r
12    * \r
13    */\r
14   private static final long serialVersionUID = -4563427833820559878L;\r
15 \r
16   public ShowCommandSp(ShowCommand showCommand) {\r
17       this.command=showCommand;\r
18   }\r
19   \r
20   /**\r
21    * Sets the <code>windowid</code> parameter. See Service Proxy documentation for details.\r
22    */  \r
23   public void setWindowid (String windowid) {\r
24     command.setParameterInState(new CommandParameter("windowid","=",windowid));\r
25   }\r
26   \r
27   /** \r
28    * Returns the <code>windowid</code> parameter value.\r
29    */\r
30   public String getWindowid () {\r
31     return command.getParameterValue("windowid");\r
32   }\r
33 \r
34 \r
35   @Override\r
36   public boolean spOnly() {\r
37     return false;\r
38   }\r
39 \r
40 }\r