1 package com.indexdata.mkjsf.pazpar2.commands.sp;
\r
3 import java.io.Serializable;
\r
5 import org.apache.log4j.Logger;
\r
7 import com.indexdata.mkjsf.pazpar2.state.StateManager;
\r
8 import com.indexdata.mkjsf.utils.Utils;
\r
11 * ServiceProxyCommands holds references to all commands that are
\r
12 * Service Proxy-only, that is, not supported by straight Pazpar2.
\r
14 * @author Niels Erik
\r
17 public class ServiceProxyCommands implements Serializable {
\r
19 public static final String AUTH = "auth";
\r
20 public static final String CATEGORIES = "categories";
\r
21 private static final long serialVersionUID = 6223527018096841188L;
\r
22 private static Logger logger = Logger.getLogger(ServiceProxyCommands.class);
\r
23 private StateManager stateMgr = null;
\r
25 public ServiceProxyCommands(StateManager stateMgr) {
\r
26 logger.info("Initializing ServiceProxyCommands [" + Utils.objectId(this) + "]");
\r
27 this.stateMgr = stateMgr;
\r
30 public AuthCommand getAuth() {
\r
31 return (AuthCommand) (stateMgr.getCommand(AUTH));
\r
34 public CategoriesCommand getCategories() {
\r
35 return (CategoriesCommand) (stateMgr.getCommand(CATEGORIES));
\r