import java.util.List;\r
\r
import com.indexdata.pz2utils4jsf.controls.ResultsPager;\r
-import com.indexdata.pz2utils4jsf.pazpar2.TargetFilter;\r
+import com.indexdata.pz2utils4jsf.errors.ErrorInterface;\r
import com.indexdata.pz2utils4jsf.pazpar2.data.ByTarget;\r
import com.indexdata.pz2utils4jsf.pazpar2.data.RecordResponse;\r
import com.indexdata.pz2utils4jsf.pazpar2.data.ShowResponse;\r
* @return pazpar2 'show' response object\r
*/\r
public ShowResponse getShow();\r
- \r
+ \r
/**\r
* Returns the 'stat' data as retrieved from pazpar2 by the most \r
* recent update request\r
* @param key corresponding to browsers hash string\r
*/\r
public void setCurrentStateKey(String key);\r
+ \r
+ /** \r
+ * @return true if any errors encountered so far\r
+ */\r
+ public boolean hasErrors();\r
+ \r
+ /**\r
+ * \r
+ * @return true if errors encountered during execution of commands\r
+ */\r
+ public boolean hasCommandErrors();\r
+ \r
+ /**\r
+ * \r
+ * @return true if errors encountered when configuring the service\r
+ */\r
+ public boolean hasConfigurationErrors();\r
+ \r
+ /**\r
+ * Returns one (of possibly multiple) errors encountered during execution of commands\r
+ * Will prefer to show the search errors - if any - as the search command is usually \r
+ * executed first. \r
+ * \r
+ * @return\r
+ */\r
+ public ErrorInterface getCommandError();\r
+ \r
+ /**\r
+ * Returns all errors encountered during configuration of the application, in particular\r
+ * the Pazpar2 client. \r
+ * \r
+ * @return\r
+ */\r
+ public List<ErrorInterface> getConfigurationErrors();\r
+\r
+ void setRecordId(String recId);\r
+\r
+ String getRecordId();\r
+ \r
}\r