import com.indexdata.mkjsf.pazpar2.state.StateManager;\r
import com.indexdata.mkjsf.utils.Utils;\r
\r
+/**\r
+ * ServiceProxyCommands holds references to all commands that are \r
+ * Service Proxy-only, those that are NOT supported by straight Pazpar2, that is.\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
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
logger.info("Initializing ServiceProxyCommands [" + Utils.objectId(this) + "]");\r
this.stateMgr = stateMgr;\r
}\r
-\r
\r
+ /**\r
+ * auth command - referenced from UI as <code>pzreq.sp.auth</code>\r
+ * \r
+ * @return auth command from current state\r
+ */\r
public AuthCommand getAuth() {\r
return (AuthCommand) (stateMgr.getCommand(AUTH));\r
}\r
+ \r
+ /**\r
+ * categories command - referenced from UI as <code>pzreq.sp.categories</code>\r
+ * \r
+ * @return categories command from current state\r
+ */ \r
+ public CategoriesCommand getCategories() {\r
+ return (CategoriesCommand) (stateMgr.getCommand(CATEGORIES));\r
+ }\r
\r
\r
}\r