1 package com.indexdata.mkjsf.pazpar2.commands.sp;
\r
3 import com.indexdata.mkjsf.pazpar2.commands.CommandParameter;
\r
4 import com.indexdata.mkjsf.pazpar2.commands.Pazpar2Command;
\r
6 public class AuthCommand extends Pazpar2Command implements ServiceProxyCommand {
\r
8 private static final long serialVersionUID = 5487611235664162578L;
\r
10 public AuthCommand() {
\r
14 public void setAction (String action) {
\r
15 setParameterInState(new CommandParameter("action","=",action));
\r
18 public String getAction () {
\r
19 return getParameterValue("action");
\r
22 public void setUsername(String username) {
\r
23 setParameterInState(new CommandParameter("username","=",username));
\r
26 public String getUsername () {
\r
27 return getParameterValue("username");
\r
30 public void setPassword (String password) {
\r
31 setParameterInState(new CommandParameter("password","=",password));
\r
34 public String getPassword () {
\r
35 return getParameterValue("password");
\r
38 public AuthCommand copy () {
\r
39 AuthCommand newCommand = new AuthCommand();
\r
40 for (String parameterName : parameters.keySet()) {
\r
41 newCommand.setParameterInState(parameters.get(parameterName).copy());
\r
47 public ServiceProxyCommand getSp() {
\r
52 public boolean spOnly() {
\r