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
10 public class ServiceProxyCommands implements Serializable {
\r
12 public static final String AUTH = "auth";
\r
13 public static final String CATEGORIES = "categories";
\r
14 private static final long serialVersionUID = 6223527018096841188L;
\r
15 private static Logger logger = Logger.getLogger(ServiceProxyCommands.class);
\r
16 private StateManager stateMgr = null;
\r
18 public ServiceProxyCommands(StateManager stateMgr) {
\r
19 logger.info("Initializing ServiceProxyCommands [" + Utils.objectId(this) + "]");
\r
20 this.stateMgr = stateMgr;
\r
23 public AuthCommand getAuth() {
\r
24 return (AuthCommand) (stateMgr.getCommand(AUTH));
\r
27 public CategoriesCommand getCategories() {
\r
28 return (CategoriesCommand) (stateMgr.getCommand(CATEGORIES));
\r