Adds support for target category command - 'categories'
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / sp / ServiceProxyCommands.java
index cac8100..8c4fefa 100644 (file)
@@ -10,6 +10,7 @@ import com.indexdata.mkjsf.utils.Utils;
 public class ServiceProxyCommands implements Serializable {\r
 \r
   public static final String AUTH = "auth";\r
+  public static final String CATEGORIES = "categories";\r
   private static final long serialVersionUID = 6223527018096841188L;\r
   private static Logger logger = Logger.getLogger(ServiceProxyCommands.class);\r
   private StateManager stateMgr = null; \r
@@ -18,11 +19,14 @@ public class ServiceProxyCommands implements Serializable {
     logger.info("Initializing ServiceProxyCommands [" + Utils.objectId(this) + "]");\r
     this.stateMgr = stateMgr;\r
   }\r
-\r
   \r
   public AuthCommand getAuth() {\r
     return (AuthCommand) (stateMgr.getCommand(AUTH));\r
   }\r
+  \r
+  public CategoriesCommand getCategories() {\r
+    return (CategoriesCommand) (stateMgr.getCommand(CATEGORIES));\r
+  }\r
 \r
 \r
 }\r