--- /dev/null
+/**\r
+ * UI controls - a configurable pager component for browsing through search results a page at a time\r
+ */\r
+package com.indexdata.mkjsf.controls;
\ No newline at end of file
--- /dev/null
+/**\r
+ * Error reporting, error diagnostics, and exception classes\r
+ */\r
+package com.indexdata.mkjsf.errors;
\ No newline at end of file
* ResponseParser found in this package, the output being response data\r
* objects accessible to the UI. \r
* \r
- * <p>The most recent responses from each command are accessible to the UI\r
- * through the class Responses which is exposed to the UI as <code>pzresp</code></p>\r
+ * <p>The most recent response from each command is accessible to the UI\r
+ * through the class Responses, which is exposed to the UI as <code>pzresp</code></p>\r
* \r
* <p>Examples:</p>\r
* <ul>\r
\r
import com.indexdata.mkjsf.pazpar2.data.ResponseDataObject;\r
\r
+/**\r
+ * Base class for Service Proxy-only response data\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
public class SpResponseDataObject extends ResponseDataObject {\r
\r
private static final long serialVersionUID = -3098556883153269199L; \r
\r
+ /**\r
+ * <p>Returns true if the command was not recognized by the Service Proxy,\r
+ * passed on to Pazpar2, and then also not recognized by Pazpar2.</p> \r
+ * <p>This results in an error no 3 from Pazpar2 which is passed back through \r
+ * the Service Proxy.</p> \r
+ * <p>This would normally be caused by issuing a Service Proxy-only command that \r
+ * the given Service Proxy is not configured for, or which the given \r
+ * Service Proxy has mapped to a different command name - in both cases it will \r
+ * just fall through.</p> \r
+ * \r
+ * @return\r
+ */\r
public boolean unsupportedCommand() {\r
if (hasServiceError() \r
&& getServiceError().getCode().equals("3")\r
\r
import com.indexdata.mkjsf.pazpar2.data.Responses;\r
\r
+/**\r
+ * Provides references to all current Service Proxy-only data objects.\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
public class SpResponses implements Serializable {\r
\r
private static final long serialVersionUID = -3831357590639961167L;\r
responses.put("auth", new AuthResponse());\r
resetInitAndBeyond(includePazpar2Responses); \r
}\r
+\r
\r
public AuthResponse getAuth () {\r
return ((AuthResponse) responses.getResponseObject("auth"));\r
--- /dev/null
+/**\r
+ * Service Proxy responses produced by Service Proxy commands.\r
+ * \r
+ * <p>The most recent respons from each command is accessible to the UI\r
+ * through the class SpResponses, which is exposed to the UI as <code>pzresp.sp</code></p>\r
+ * \r
+ * <p>Examples:</p>\r
+ * <ul>\r
+ * <li><code>pzresp.sp.auth.status<code> returns the status of the most recent authentication request</li>\r
+ * <li><code>pzresp.sp.categories.tagetCategories</code> returns target categories for filtering by category</li>\r
+ * </ul> \r
+ * \r
+ */\r
+package com.indexdata.mkjsf.pazpar2.data.sp;
\ No newline at end of file
--- /dev/null
+/**\r
+ * Tracks the state of commands, parameter settings and \r
+ * command execution - primarily used for handling browser\r
+ * history navigation. \r
+ */\r
+package com.indexdata.mkjsf.pazpar2.state;
\ No newline at end of file
import org.apache.log4j.Logger;\r
import org.apache.myfaces.custom.fileupload.UploadedFile;\r
\r
+/**\r
+ * Helper class for file uploads.\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
public abstract class FileUpload implements Serializable {\r
\r
private static Logger logger = Logger.getLogger(FileUpload.class);\r
\r
import com.indexdata.mkjsf.pazpar2.data.ResponseDataObject;\r
\r
+/**\r
+ * UI utilities \r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
@Named("pzui")\r
@ApplicationScoped\r
public class UiUtils {\r
package com.indexdata.mkjsf.utils;\r
\r
-import javax.enterprise.context.ApplicationScoped;\r
-import javax.inject.Named;\r
-\r
+/**\r
+ * A few utilities, mostly for logging\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
public class Utils {\r
\r
public static String nl = System.getProperty("line.separator"); \r
--- /dev/null
+/**\r
+ * Utility classes for file upload, string and list manipulation in UI, logging \r
+ */\r
+package com.indexdata.mkjsf.utils;
\ No newline at end of file