protected ErrorHelper errorHelper = null;\r
\r
protected List<ErrorInterface> configurationErrors = null;\r
- protected SearchClient searchClient = null; \r
- protected SingleTargetFilter singleTargetFilter = null; \r
+ protected SearchClient searchClient = null; \r
protected ResultsPager pager = null; \r
\r
public Pz2Session () {\r
+++ /dev/null
-package com.indexdata.pz2utils4jsf.pazpar2;\r
-\r
-import java.io.Serializable;\r
-\r
-import com.indexdata.pz2utils4jsf.pazpar2.SingleTargetFilter;\r
-\r
-public class SingleTargetFilter implements Serializable {\r
-\r
- private static final long serialVersionUID = 2389085467202526537L;\r
-\r
- private String targetName;\r
- private String targetId;\r
- \r
- public SingleTargetFilter (String targetId, String targetName) {\r
- this.targetId = targetId;\r
- this.targetName = targetName;\r
- }\r
- \r
- public String getTargetName () {\r
- return targetName;\r
- }\r
- \r
- public String getTargetId () {\r
- return targetId; \r
- }\r
- \r
- public String getFilterExpression () {\r
- return "pz:id="+targetId;\r
- }\r
- \r
- @Override\r
- public boolean equals(Object o) {\r
- if (o instanceof SingleTargetFilter) {\r
- return targetName.equals(((SingleTargetFilter) o).getTargetName()) && \r
- targetId.equals(((SingleTargetFilter) o).getTargetId());\r
- } else {\r
- return false;\r
- }\r
- }\r
- \r
- @Override\r
- public int hashCode () {\r
- return (targetId+targetName).hashCode();\r
- }\r
- \r
- \r
-}\r
\r
public String getRecordId () {\r
return getParameterValue("id");\r
- }\r
- \r
- \r
+ } \r
\r
@Override\r
public RecordCommand copy () {\r
import org.apache.log4j.Logger;\r
\r
import com.indexdata.pz2utils4jsf.pazpar2.Expression;\r
-import com.indexdata.pz2utils4jsf.pazpar2.SingleTargetFilter;\r
import com.indexdata.pz2utils4jsf.pazpar2.state.StateManager;\r
\r
@SessionScoped\r
--- /dev/null
+package com.indexdata.pz2utils4jsf.pazpar2.commands;\r
+\r
+import java.io.Serializable;\r
+\r
+import com.indexdata.pz2utils4jsf.pazpar2.commands.SingleTargetFilter;\r
+\r
+public class SingleTargetFilter implements Serializable {\r
+\r
+ private static final long serialVersionUID = 2389085467202526537L;\r
+\r
+ private String targetName;\r
+ private String targetId;\r
+ \r
+ public SingleTargetFilter (String targetId, String targetName) {\r
+ this.targetId = targetId;\r
+ this.targetName = targetName;\r
+ }\r
+ \r
+ public String getTargetName () {\r
+ return targetName;\r
+ }\r
+ \r
+ public String getTargetId () {\r
+ return targetId; \r
+ }\r
+ \r
+ public String getFilterExpression () {\r
+ return "pz:id="+targetId;\r
+ }\r
+ \r
+ @Override\r
+ public boolean equals(Object o) {\r
+ if (o instanceof SingleTargetFilter) {\r
+ return targetName.equals(((SingleTargetFilter) o).getTargetName()) && \r
+ targetId.equals(((SingleTargetFilter) o).getTargetId());\r
+ } else {\r
+ return false;\r
+ }\r
+ }\r
+ \r
+ @Override\r
+ public int hashCode () {\r
+ return (targetId+targetName).hashCode();\r
+ }\r
+ \r
+ \r
+}\r